public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Optimize ds/es reload
@ 2012-05-13 16:53 Avi Kivity
  2012-05-13 16:53 ` [PATCH 1/2] KVM: VMX: Fix %ds/%es clobber Avi Kivity
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Avi Kivity @ 2012-05-13 16:53 UTC (permalink / raw)
  To: Marcelo Tosatti, kvm

The lightweight exit path needlessly reloads %ds and %es (and clobbers the
user supplied values as well, a minor ABI bug).  This patchset fixes the bug
and moves the reload to the heavyweight exit path (potentially skipping it
completely on x86_64), reducing the vmexit cost by about 70 cycles.

Avi Kivity (2):
  KVM: VMX: Fix %ds/%es clobber
  KVM: VMX: Optimize %ds, %es reload

 arch/x86/kvm/vmx.c |   32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

-- 
1.7.10.1


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

end of thread, other threads:[~2012-05-16 19:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-13 16:53 [PATCH 0/2] Optimize ds/es reload Avi Kivity
2012-05-13 16:53 ` [PATCH 1/2] KVM: VMX: Fix %ds/%es clobber Avi Kivity
2012-05-13 16:53 ` [PATCH 2/2] KVM: VMX: Optimize %ds, %es reload Avi Kivity
2012-05-16 19:04 ` [PATCH 0/2] Optimize ds/es reload Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox