I don't mind either - this will fix the tracepoint I recently added to report the- if (!vcpu->arch.apicv_active)Hmm, my preference would be to keep the "return -1" even though apicv_active must
- return -1;
-
+ /*
+ * Below, we have to handle anyway the case of AVIC being disabled
+ * in the middle of this function, and there is hardly any overhead
+ * if AVIC is disabled. So, we do not bother returning -1 and handle
+ * the kick ourselves for disabled APICv.
be rechecked. That would help highlight that returning "failure" after this point
is not an option as it would result in kvm_lapic_set_irr() being called twice.
number of interrupts that were delivered by AVIC/APICv - with this patch,
all of them count as such.