Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1731906

Re: [PATCH 2/2] KVM: X86: Don't block vCPU if there is pending exception

From Paolo Bonzini <pbonzini@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] KVM: X86: Don't block vCPU if there is pending exception
Date 2017-09-13 23:40 +0200
Message-ID <upny3-4iM-49@gated-at.bofh.it> (permalink)
References <updIm-6Dr-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 13/09/2017 13:04, Wanpeng Li wrote:
> From: Wanpeng Li <wanpeng.li@hotmail.com>
> 
> Don't block vCPU if there is pending exception.
> 
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: Radim Krčmář <rkrcmar@redhat.com>
> Signed-off-by: Wanpeng Li <wanpeng.li@hotmail.com>
> ---
>  arch/x86/kvm/x86.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index 6069af8..1a0dce4 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -8452,6 +8452,9 @@ static inline bool kvm_vcpu_has_events(struct kvm_vcpu *vcpu)
>  	if (vcpu->arch.pv.pv_unhalted)
>  		return true;
>  
> +	if (vcpu->arch.exception.pending)
> +		return true;
> +
>  	if (kvm_test_request(KVM_REQ_NMI, vcpu) ||
>  	    (vcpu->arch.nmi_pending &&
>  	     kvm_x86_ops->nmi_allowed(vcpu)))
> 

Ok for 4.14-rc.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

Paolo

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] KVM: X86: Don't block vCPU if there is pending exception Wanpeng Li <kernellwp@gmail.com> - 2017-09-13 13:10 +0200
  Re: [PATCH 2/2] KVM: X86: Don't block vCPU if there is pending  exception Paolo Bonzini <pbonzini@redhat.com> - 2017-09-13 23:40 +0200

csiph-web