mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
KVM: x86: simplify conditions with split/kernel irqchip
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8231f50d98
commit
826da32140
@ -400,7 +400,7 @@ int kvm_setup_empty_irq_routing(struct kvm *kvm)
|
||||
|
||||
void kvm_arch_post_irq_routing_update(struct kvm *kvm)
|
||||
{
|
||||
if (ioapic_in_kernel(kvm) || !irqchip_in_kernel(kvm))
|
||||
if (!irqchip_split(kvm))
|
||||
return;
|
||||
kvm_make_scan_ioapic_request(kvm);
|
||||
}
|
||||
|
@ -4027,7 +4027,7 @@ long kvm_arch_vm_ioctl(struct file *filp,
|
||||
}
|
||||
|
||||
r = -ENXIO;
|
||||
if (!irqchip_in_kernel(kvm) || irqchip_split(kvm))
|
||||
if (!irqchip_kernel(kvm))
|
||||
goto get_irqchip_out;
|
||||
r = kvm_vm_ioctl_get_irqchip(kvm, chip);
|
||||
if (r)
|
||||
@ -4051,7 +4051,7 @@ long kvm_arch_vm_ioctl(struct file *filp,
|
||||
}
|
||||
|
||||
r = -ENXIO;
|
||||
if (!irqchip_in_kernel(kvm) || irqchip_split(kvm))
|
||||
if (!irqchip_kernel(kvm))
|
||||
goto set_irqchip_out;
|
||||
r = kvm_vm_ioctl_set_irqchip(kvm, chip);
|
||||
if (r)
|
||||
|
Loading…
Reference in New Issue
Block a user