summaryrefslogtreecommitdiff
path: root/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-05-03 17:04:01 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-08 15:42:52 -0500
commitc6d5f3b1f71ea19f0ac2ac866e1aea27ea7f1f0a (patch)
treea7188b5c2cee1d41925b6b2c141016300ff2cfe3 /kvm.h
parentcb16cf5468eb3535dd0b048fb89d5b00a1e4e1d6 (diff)
downloadqemu-c6d5f3b1f71ea19f0ac2ac866e1aea27ea7f1f0a.tar.gz
qemu-c6d5f3b1f71ea19f0ac2ac866e1aea27ea7f1f0a.tar.bz2
qemu-c6d5f3b1f71ea19f0ac2ac866e1aea27ea7f1f0a.zip
kvm: Add support for querying supported cpu features
kvm does not support all cpu features; add support for dunamically querying the supported feature set. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'kvm.h')
-rw-r--r--kvm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvm.h b/kvm.h
index 25b120cba6..4cf754962a 100644
--- a/kvm.h
+++ b/kvm.h
@@ -120,6 +120,9 @@ void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg);
int kvm_check_extension(KVMState *s, unsigned int extension);
+uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function,
+ int reg);
+
/* generic hooks - to be moved/refactored once there are more users */
static inline void cpu_synchronize_state(CPUState *env, int modified)