]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/xen/enlighten.c
xen64: add pvop for swapgs
[linux-2.6-omap-h63xx.git] / arch / x86 / xen / enlighten.c
index 9d94483b3b5e9c1877438c091a2a637b67b1460d..8b60982e457aeb0e4bd73f85e86433f8c56fa05f 100644 (file)
@@ -1076,6 +1076,9 @@ static const struct pv_cpu_ops xen_cpu_ops __initdata = {
        .set_iopl_mask = xen_set_iopl_mask,
        .io_delay = xen_io_delay,
 
+       /* Xen takes care of %gs when switching to usermode for us */
+       .swapgs = paravirt_nop,
+
        .lazy_mode = {
                .enter = paravirt_enter_lazy_cpu,
                .leave = xen_leave_lazy,