Messages in this thread | | | Subject | Re: [PATCH v8 10/13] KVM: Update Posted-Interrupts Descriptor when vCPU is preempted | From | Paolo Bonzini <> | Date | Wed, 16 Sep 2015 11:29:04 +0200 |
| |
On 16/09/2015 10:50, Feng Wu wrote: > + > + if (!irq_remapping_cap(IRQ_POSTING_CAP) || > + (!kvm_arch_has_assigned_device(vcpu->kvm))) > + return; > +
Better:
if (!arch_has_assigned_device(vcpu->kvm)) || !irq_remapping_cap(IRQ_POSTING_CAP)) return;
(In the future we might add a static_key here).
Paolo
| |