mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
5e76d84e69
commit
b2e78fac6f
2 changed files with 0 additions and 10 deletions
|
@ -1639,10 +1639,8 @@ static int kvm_init(MachineState *ms)
|
|||
s->irq_set_ioctl = KVM_IRQ_LINE_STATUS;
|
||||
}
|
||||
|
||||
#ifdef KVM_CAP_READONLY_MEM
|
||||
kvm_readonly_mem_allowed =
|
||||
(kvm_check_extension(s, KVM_CAP_READONLY_MEM) > 0);
|
||||
#endif
|
||||
|
||||
kvm_eventfds_allowed =
|
||||
(kvm_check_extension(s, KVM_CAP_IOEVENTFD) > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue