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
commitb827df585be820c228fa91f9d05a80db4e32a357 (patch)
treea7188b5c2cee1d41925b6b2c141016300ff2cfe3 /kvm.h
parentad7b8b33108a6bf610b9492b1f204e660e488e99 (diff)
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)