]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: determine if an exception has an error code only when injecting it.
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 25 Feb 2021 15:41:32 +0000 (17:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Jul 2021 06:19:37 +0000 (08:19 +0200)
commit8c9f14ae823ccc1def5b78c559daf6490c6a16e3
tree99e717a34b23be2bcd7b4262e952d89194df764a
parent8a1fb6bba7a9ca8ae7efa857e80823732d8615b2
KVM: x86: determine if an exception has an error code only when injecting it.

commit b97f074583736c42fb36f2da1164e28c73758912 upstream.

A page fault can be queued while vCPU is in real paged mode on AMD, and
AMD manual asks the user to always intercept it
(otherwise result is undefined).
The resulting VM exit, does have an error code.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210225154135.405125-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Zubin Mithra <zsm@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/x86.c