diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-21 10:09:56 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-08-23 18:46:25 +0200 |
commit | b2e78fac6f27c36938353e477354778896adc08f (patch) | |
tree | e1157478d8f49fe629aa7335b0d36bd39f159d03 /target/i386/kvm.c | |
parent | 5e76d84e690954d79af357fafb1903113a00b32e (diff) | |
download | qemu-b2e78fac6f27c36938353e477354778896adc08f.zip qemu-b2e78fac6f27c36938353e477354778896adc08f.tar.gz qemu-b2e78fac6f27c36938353e477354778896adc08f.tar.bz2 |
KVM: cleanup unnecessary #ifdef KVM_CAP_...
The capability macros are always defined, since they come from kernel
headers that are copied into the QEMU tree. Remove the unnecessary #ifdefs.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/kvm.c')
-rw-r--r-- | target/i386/kvm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 9313602..0b2a07d 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -1381,17 +1381,9 @@ int kvm_arch_init(MachineState *ms, KVMState *s) int ret; struct utsname utsname; -#ifdef KVM_CAP_XSAVE has_xsave = kvm_check_extension(s, KVM_CAP_XSAVE); -#endif - -#ifdef KVM_CAP_XCRS has_xcrs = kvm_check_extension(s, KVM_CAP_XCRS); -#endif - -#ifdef KVM_CAP_PIT_STATE2 has_pit_state2 = kvm_check_extension(s, KVM_CAP_PIT_STATE2); -#endif hv_vpindex_settable = kvm_check_extension(s, KVM_CAP_HYPERV_VP_INDEX); |