public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: nVMX: Don't update vmcs12->xss_exit_bitmap on nested VM-exit
@ 2017-06-01 19:43 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:43 UTC (permalink / raw)
  To: kvm; +Cc: Jim Mattson

The XSS-exiting bitmap is a VMCS control field that does not change
while the CPU is in non-root mode. Transferring the unchanged value
from vmcs02 to vmcs12 is unnecessary.

Signed-off-by: Jim Mattson <jmattson@google.com>
---
 arch/x86/kvm/vmx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 60fa010d3fa1..c12336087850 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -10736,8 +10736,6 @@ static void sync_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12)
 	vmcs12->guest_sysenter_eip = vmcs_readl(GUEST_SYSENTER_EIP);
 	if (kvm_mpx_supported())
 		vmcs12->guest_bndcfgs = vmcs_read64(GUEST_BNDCFGS);
-	if (nested_cpu_has_xsaves(vmcs12))
-		vmcs12->xss_exit_bitmap = vmcs_read64(XSS_EXIT_BITMAP);
 }
 
 /*
-- 
2.13.0.219.gdb65acc882-goog

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: nVMX: Don't update vmcs12->xss_exit_bitmap on nested VM-exit
  2017-06-01 19:43 [PATCH] KVM: nVMX: Don't update vmcs12->xss_exit_bitmap 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

2017-06-01 12:43-0700, Jim Mattson:
> The XSS-exiting bitmap is a VMCS control field that does not change
> while the CPU is in non-root mode. Transferring the unchanged value
> from vmcs02 to vmcs12 is unnecessary.
> 
> 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:43 [PATCH] KVM: nVMX: Don't update vmcs12->xss_exit_bitmap 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