提交 6621fbc2 编写于 作者: A Avi Kivity

KVM: Move #endif KVM_CAP_IRQ_ROUTING to correct place

The symbol only controls irq routing, not MSI-X.
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 52c7847d
...@@ -2236,6 +2236,7 @@ static long kvm_vm_ioctl(struct file *filp, ...@@ -2236,6 +2236,7 @@ static long kvm_vm_ioctl(struct file *filp,
vfree(entries); vfree(entries);
break; break;
} }
#endif /* KVM_CAP_IRQ_ROUTING */
#ifdef __KVM_HAVE_MSIX #ifdef __KVM_HAVE_MSIX
case KVM_ASSIGN_SET_MSIX_NR: { case KVM_ASSIGN_SET_MSIX_NR: {
struct kvm_assigned_msix_nr entry_nr; struct kvm_assigned_msix_nr entry_nr;
...@@ -2258,7 +2259,6 @@ static long kvm_vm_ioctl(struct file *filp, ...@@ -2258,7 +2259,6 @@ static long kvm_vm_ioctl(struct file *filp,
break; break;
} }
#endif #endif
#endif /* KVM_CAP_IRQ_ROUTING */
case KVM_IRQFD: { case KVM_IRQFD: {
struct kvm_irqfd data; struct kvm_irqfd data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册