summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlauber Costa <glommer@redhat.com>2009-07-15 02:19:34 -0400
committerMarcelo Tosatti <mtosatti@redhat.com>2009-07-21 17:07:39 -0300
commitda8b8a30eac93e242bd9452d3523b615dfbd36c9 (patch)
treed594efb7cb5e2297f3f5a29513d95edd77862aea /qemu-kvm-x86.c
parentreuse kvm_ioctl (diff)
downloadqemu-kvm-da8b8a30eac93e242bd9452d3523b615dfbd36c9.tar.gz
qemu-kvm-da8b8a30eac93e242bd9452d3523b615dfbd36c9.tar.bz2
qemu-kvm-da8b8a30eac93e242bd9452d3523b615dfbd36c9.zip
check extension
use upstream check_extension code Signed-off-by: Glauber Costa <glommer@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qemu-kvm-x86.c')
-rw-r--r--qemu-kvm-x86.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 428e83146..e4ae58293 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -348,7 +348,7 @@ int kvm_has_pit_state2(kvm_context_t kvm)
int r = 0;
#ifdef KVM_CAP_PIT_STATE2
- r = kvm_check_extension(kvm, KVM_CAP_PIT_STATE2);
+ r = kvm_check_extension(kvm_state, KVM_CAP_PIT_STATE2);
#endif
return r;
}
@@ -702,7 +702,7 @@ uint32_t kvm_get_supported_cpuid(kvm_context_t kvm, uint32_t function, int reg)
uint32_t ret = 0;
uint32_t cpuid_1_edx;
- if (!kvm_check_extension(kvm, KVM_CAP_EXT_CPUID)) {
+ if (!kvm_check_extension(kvm_state, KVM_CAP_EXT_CPUID)) {
return -1U;
}
@@ -1234,7 +1234,7 @@ static int get_para_features(kvm_context_t kvm_context)
int i, features = 0;
for (i = 0; i < ARRAY_SIZE(para_features)-1; i++) {
- if (kvm_check_extension(kvm_context, para_features[i].cap))
+ if (kvm_check_extension(kvm_state, para_features[i].cap))
features |= (1 << para_features[i].feature);
}