qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Fix nmi injection failure when vcpu got blocked


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] Fix nmi injection failure when vcpu got blocked
Date: Thu, 25 May 2017 16:12:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0


On 24/05/2017 16:34, Radim Krčmář wrote:
>> -    if (atomic_read(&vcpu->arch.nmi_queued))
>> +    if (vcpu->arch.nmi_pending ||
>> +        atomic_read(&vcpu->arch.nmi_queued))
>>              return true;
> Hm, I think we've been missing '&& kvm_x86_ops->nmi_allowed(vcpu)'.
> 
> The undesired resume if we have suppressed NMI is not making it much
> worse, but wouldn't "kvm_test_request(KVM_REQ_NMI, vcpu)" also work
> here?

Yes, it would be fine (maybe better considering that we have a
KVM_REQ_SMI check just below).  Ying, please use it for v2.

Thanks,

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]