From: Liran Alon <LIRAN.ALON@ORACLE.COM>
To: Wanpeng Li <kernellwp@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Radim Krcmar <rkrcmar@redhat.com>, kvm <kvm@vger.kernel.org>,
idan.brown@ORACLE.COM,
Konrad Rzeszutek Wilk <konrad.wilk@ORACLE.COM>,
"# v3 . 10+" <stable@vger.kernel.org>
Subject: Re: [PATCH v2 1/3] KVM: x86: Exit to user-mode on #UD intercept when emulator requires
Date: Tue, 07 Nov 2017 10:12:01 +0200 [thread overview]
Message-ID: <5A016AD1.1090804@ORACLE.COM> (raw)
In-Reply-To: <CANRm+Cx0skaJAfTARmGX_jUS2_WbvxJGGOq81Rgn5KAoZ+XdEA@mail.gmail.com>
On 07/11/17 02:47, Wanpeng Li wrote:
> 2017-11-06 22:39 GMT+08:00 Liran Alon <liran.alon@oracle.com>:
>> Signed-off-by: Liran Alon <liran.alon@oracle.com>
>> Reviewed-by: Nikita Leshenko <nikita.leshchenko@oracle.com>
>> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
>> Cc: stable@vger.kernel.org
>
> Except the changelog.
Thanks for the review.
Currently both you and Paolo added "Reviewed-by" to this commit.
Is there anything else you wish me to add to the commit message before
this commit being accepted? Do you have a suggestion? I though the
commit-title explains it enough for this trivial patch and didn't saw
any complain about not having body by ./scripts/checkpatch.pl.
In addition, if I would need to edit commit message body, should I send
the next version of this commit as a standalone or re-send the entire
series?
Thanks,
-Liran
>
> Reviewed-by: Wanpeng Li <wanpeng.li@hotmail.com>
>
>> ---
>> arch/x86/kvm/svm.c | 2 ++
>> arch/x86/kvm/vmx.c | 2 ++
>> 2 files changed, 4 insertions(+)
>>
>> diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
>> index 0e68f0b3cbf7..e0162b20e3c9 100644
>> --- a/arch/x86/kvm/svm.c
>> +++ b/arch/x86/kvm/svm.c
>> @@ -2189,6 +2189,8 @@ static int ud_interception(struct vcpu_svm *svm)
>> int er;
>>
>> er = emulate_instruction(&svm->vcpu, EMULTYPE_TRAP_UD);
>> + if (er == EMULATE_USER_EXIT)
>> + return 0;
>> if (er != EMULATE_DONE)
>> kvm_queue_exception(&svm->vcpu, UD_VECTOR);
>> return 1;
>> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
>> index 95a01609d7ee..2b63d9edc207 100644
>> --- a/arch/x86/kvm/vmx.c
>> +++ b/arch/x86/kvm/vmx.c
>> @@ -5886,6 +5886,8 @@ static int handle_exception(struct kvm_vcpu *vcpu)
>> return 1;
>> }
>> er = emulate_instruction(vcpu, EMULTYPE_TRAP_UD);
>> + if (er == EMULATE_USER_EXIT)
>> + return 0;
>> if (er != EMULATE_DONE)
>> kvm_queue_exception(vcpu, UD_VECTOR);
>> return 1;
>> --
>> 1.9.1
>>
next prev parent reply other threads:[~2017-11-07 8:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-06 14:39 [PATCH v2 0/3] KVM: x86: Various emulator fixes Liran Alon
2017-11-06 14:39 ` [PATCH v2 1/3] KVM: x86: Exit to user-mode on #UD intercept when emulator requires Liran Alon
2017-11-06 14:47 ` Greg KH
2017-11-06 14:50 ` Paolo Bonzini
2017-11-06 15:07 ` Greg KH
2017-11-06 15:19 ` Paolo Bonzini
2017-11-07 0:47 ` Wanpeng Li
2017-11-07 8:12 ` Liran Alon [this message]
2017-11-07 12:22 ` Paolo Bonzini
2017-11-07 14:13 ` Liran Alon
2017-11-06 14:39 ` [PATCH v2 2/3] KVM: x86: emulator: Return to user-mode on L1 CPL=0 emulation failure Liran Alon
2017-11-07 0:49 ` Wanpeng Li
2017-11-06 14:39 ` [PATCH v2 3/3] KVM: x86: Don't re-execute instruction when not passing CR2 value Liran Alon
2017-11-07 0:51 ` Wanpeng Li
2017-11-06 14:47 ` [PATCH v2 0/3] KVM: x86: Various emulator fixes Paolo Bonzini
2017-11-10 21:39 ` Radim Krčmář
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5A016AD1.1090804@ORACLE.COM \
--to=liran.alon@oracle.com \
--cc=idan.brown@ORACLE.COM \
--cc=kernellwp@gmail.com \
--cc=konrad.wilk@ORACLE.COM \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.