From: Paolo Bonzini <pbonzini@redhat.com>
To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: jmattson@google.com, wanpeng.li@hotmail.com
Subject: [PATCH 0/2] KVM: nVMX: fixes to nested virt interrupt injection
Date: Fri, 28 Jul 2017 09:03:08 +0200 [thread overview]
Message-ID: <20170728070310.4460-1-pbonzini@redhat.com> (raw)
With these two patches, KVM does not blindly pass the exit interruption
info and exit qualification from the vmcs02 and vmcs12 when injecting
an exception. There were two spots where this was done, namely
nested_vmx_check_exception and vmx_inject_page_fault_nested.
Patch 1 avoids writing the vmcs02's VM_EXIT_INTR_ERROR_CODE field,
which as Jim noticed isn't possible on pre-Haswell machines, but
otherwise has no semantic effect.
Patch 2 is the actual bugfix.
Paolo Bonzini (2):
KVM: nVMX: do not fill vm_exit_intr_error_code in prepare_vmcs12
KVM: nVMX: fixes to nested virt interrupt injection
arch/x86/kvm/svm.c | 10 ++++
arch/x86/kvm/vmx.c | 133 +++++++++++++++++++++++++++++++++++++----------------
2 files changed, 103 insertions(+), 40 deletions(-)
--
1.8.3.1
next reply other threads:[~2017-07-28 7:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 7:03 Paolo Bonzini [this message]
2017-07-28 7:03 ` [PATCH 1/2] KVM: nVMX: do not fill vm_exit_intr_error_code in prepare_vmcs12 Paolo Bonzini
2017-07-28 7:03 ` [PATCH 2/2] KVM: nVMX: fixes to nested virt interrupt injection Paolo Bonzini
2017-07-28 8:24 ` [PATCH 0/2] " Mike Galbraith
2017-07-28 9:07 ` Wanpeng Li
2017-07-28 11:53 ` Paolo Bonzini
2017-07-28 12:03 ` Mike Galbraith
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=20170728070310.4460-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=jmattson@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wanpeng.li@hotmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®