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>
diff --git a/kvm.h b/kvm.h
index 25b120c..4cf7549 100644
--- a/kvm.h
+++ b/kvm.h
@@ -120,6 +120,9 @@
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)