All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen: Add GS base to HVM VCPU context
@ 2012-04-21  0:58 Aravindh Puthiyaparambil
  2012-04-23  7:41 ` Jan Beulich
  0 siblings, 1 reply; 7+ messages in thread
From: Aravindh Puthiyaparambil @ 2012-04-21  0:58 UTC (permalink / raw)
  To: xen-devel

Add GS base to the HVM VCPU context returned by xc_vcpu_getcontext()

Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>

diff -r e62ab14d44af -r babbb3e0f4d3 xen/arch/x86/domctl.c
--- a/xen/arch/x86/domctl.c	Fri Apr 20 11:36:02 2012 -0700
+++ b/xen/arch/x86/domctl.c	Fri Apr 20 17:55:49 2012 -0700
@@ -1592,6 +1592,12 @@ void arch_get_info_guest(struct vcpu *v,
         c.nat->user_regs.fs = sreg.sel;
         hvm_get_segment_register(v, x86_seg_gs, &sreg);
         c.nat->user_regs.gs = sreg.sel;
+#ifdef __x86_64__
+        if ( ring_0(&c.nat->user_regs) )
+            c.nat->gs_base_kernel = sreg.base;
+        else
+            c.nat->gs_base_user = sreg.base;
+#endif
     }
     else
     {

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

end of thread, other threads:[~2012-04-23 22:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-21  0:58 [PATCH] xen: Add GS base to HVM VCPU context Aravindh Puthiyaparambil
2012-04-23  7:41 ` Jan Beulich
2012-04-23  7:47   ` Aravindh Puthiyaparambil
2012-04-23  7:53     ` Jan Beulich
2012-04-23 19:11       ` Aravindh Puthiyaparambil
2012-04-23 21:04         ` Keir Fraser
2012-04-23 22:11           ` Aravindh Puthiyaparambil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.