Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-03-09 Thread Paolo Bonzini
On 09/03/2017 10:40, Wanpeng Li wrote: > 2017-03-09 9:23 GMT+08:00 Wanpeng Li : >> 2016-12-20 0:17 GMT+08:00 Paolo Bonzini : >>> Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU >>> is blocked", 2015-09-18) the posted interrupt

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-03-09 Thread Paolo Bonzini
On 09/03/2017 10:40, Wanpeng Li wrote: > 2017-03-09 9:23 GMT+08:00 Wanpeng Li : >> 2016-12-20 0:17 GMT+08:00 Paolo Bonzini : >>> Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU >>> is blocked", 2015-09-18) the posted interrupt descriptor is checked >>> unconditionally for

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-03-09 Thread Wanpeng Li
2017-03-09 9:23 GMT+08:00 Wanpeng Li : > 2016-12-20 0:17 GMT+08:00 Paolo Bonzini : >> Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU >> is blocked", 2015-09-18) the posted interrupt descriptor is checked >> unconditionally for

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-03-09 Thread Wanpeng Li
2017-03-09 9:23 GMT+08:00 Wanpeng Li : > 2016-12-20 0:17 GMT+08:00 Paolo Bonzini : >> Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU >> is blocked", 2015-09-18) the posted interrupt descriptor is checked >> unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-03-08 Thread Wanpeng Li
2016-12-20 0:17 GMT+08:00 Paolo Bonzini : > Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU > is blocked", 2015-09-18) the posted interrupt descriptor is checked > unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to > trigger the scan

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-03-08 Thread Wanpeng Li
2016-12-20 0:17 GMT+08:00 Paolo Bonzini : > Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU > is blocked", 2015-09-18) the posted interrupt descriptor is checked > unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to > trigger the scan and, if NMIs or SMIs

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-02-09 Thread Radim Krčmář
2017-02-08 17:23+0100, Paolo Bonzini: > On 07/02/2017 20:58, Radim Krčmář wrote: >>> - local_irq_disable(); >>> + if (kvm_lapic_enabled(vcpu)) { >>> + /* >>> +* This handles the case where a posted interrupt was >>> +* notified with kvm_vcpu_kick. >>> +

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-02-09 Thread Radim Krčmář
2017-02-08 17:23+0100, Paolo Bonzini: > On 07/02/2017 20:58, Radim Krčmář wrote: >>> - local_irq_disable(); >>> + if (kvm_lapic_enabled(vcpu)) { >>> + /* >>> +* This handles the case where a posted interrupt was >>> +* notified with kvm_vcpu_kick. >>> +

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-02-08 Thread Paolo Bonzini
On 07/02/2017 20:58, Radim Krčmář wrote: >> -local_irq_disable(); >> +if (kvm_lapic_enabled(vcpu)) { >> +/* >> + * This handles the case where a posted interrupt was >> + * notified with kvm_vcpu_kick. >> + */ >> +if

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-02-08 Thread Paolo Bonzini
On 07/02/2017 20:58, Radim Krčmář wrote: >> -local_irq_disable(); >> +if (kvm_lapic_enabled(vcpu)) { >> +/* >> + * This handles the case where a posted interrupt was >> + * notified with kvm_vcpu_kick. >> + */ >> +if

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-02-07 Thread Radim Krčmář
2016-12-19 17:17+0100, Paolo Bonzini: > Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU > is blocked", 2015-09-18) the posted interrupt descriptor is checked > unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to > trigger the scan and, if NMIs or SMIs are

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-02-07 Thread Radim Krčmář
2016-12-19 17:17+0100, Paolo Bonzini: > Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU > is blocked", 2015-09-18) the posted interrupt descriptor is checked > unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to > trigger the scan and, if NMIs or SMIs are

[PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2016-12-19 Thread Paolo Bonzini
Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU is blocked", 2015-09-18) the posted interrupt descriptor is checked unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to trigger the scan and, if NMIs or SMIs are not involved, we can avoid the complicated

[PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2016-12-19 Thread Paolo Bonzini
Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU is blocked", 2015-09-18) the posted interrupt descriptor is checked unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to trigger the scan and, if NMIs or SMIs are not involved, we can avoid the complicated