KVM: nVMX: Update vmcs12->guest_linear_address on nested VM-exit
authorJim Mattson <jmattson@google.com>
Thu, 1 Jun 2017 19:44:46 +0000 (12:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:48:23 +0000 (19:48 +0200)
commit4933e9f2a0d98d3e53597c421e5945c9e9d1ce5b
tree5dd5ab9f62da602fbf8085eafdc996df146adad1
parent4aae4388165a2611fa4206363ccb243c1622446c
KVM: nVMX: Update vmcs12->guest_linear_address on nested VM-exit

[ Upstream commit d281e13b0bfe745a21061a194e386a949784393f ]

The guest-linear address field is set for VM exits due to attempts to
execute LMSW with a memory operand and VM exits due to attempts to
execute INS or OUTS for which the relevant segment is usable,
regardless of whether or not EPT is in use.

Fixes: 119a9c01a5922 ("KVM: nVMX: pass valid guest linear-address to the L1")
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c