* [PATCH] KVM: nVMX: Update vmcs12->guest_linear_address on nested VM-exit
@ 2017-06-01 19:44 Jim Mattson
2017-06-07 14:41 ` Radim Krčmář
0 siblings, 1 reply; 2+ messages in thread
From: Jim Mattson @ 2017-06-01 19:44 UTC (permalink / raw)
To: kvm, Jan Dakinevich; +Cc: Jim Mattson
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>
---
arch/x86/kvm/vmx.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index c12336087850..ae66ebc7fb82 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -10710,8 +10710,7 @@ static void sync_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12)
vmcs12->guest_pdptr3 = vmcs_read64(GUEST_PDPTR3);
}
- if (nested_cpu_has_ept(vmcs12))
- vmcs12->guest_linear_address = vmcs_readl(GUEST_LINEAR_ADDRESS);
+ vmcs12->guest_linear_address = vmcs_readl(GUEST_LINEAR_ADDRESS);
if (nested_cpu_has_vid(vmcs12))
vmcs12->guest_intr_status = vmcs_read16(GUEST_INTR_STATUS);
--
2.13.0.219.gdb65acc882-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: nVMX: Update vmcs12->guest_linear_address on nested VM-exit
2017-06-01 19:44 [PATCH] KVM: nVMX: Update vmcs12->guest_linear_address on nested VM-exit Jim Mattson
@ 2017-06-07 14:41 ` Radim Krčmář
0 siblings, 0 replies; 2+ messages in thread
From: Radim Krčmář @ 2017-06-07 14:41 UTC (permalink / raw)
To: Jim Mattson; +Cc: kvm, Jan Dakinevich
2017-06-01 12:44-0700, Jim Mattson:
> 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>
> ---
Queued, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-07 14:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-01 19:44 [PATCH] KVM: nVMX: Update vmcs12->guest_linear_address on nested VM-exit Jim Mattson
2017-06-07 14:41 ` Radim Krčmář
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).