diff options
author | Avi Kivity <avi@redhat.com> | 2009-05-03 17:04:01 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-08 15:42:52 -0500 |
commit | b827df585be820c228fa91f9d05a80db4e32a357 (patch) | |
tree | a7188b5c2cee1d41925b6b2c141016300ff2cfe3 /kvm.h | |
parent | ad7b8b33108a6bf610b9492b1f204e660e488e99 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |