• Jeremy Fitzhardinge's avatar
    xen64: add pvop for swapgs · 952d1d70
    Jeremy Fitzhardinge authored
    swapgs is a no-op under Xen, because the hypervisor makes sure the
    right version of %gs is current when switching between user and kernel
    modes.  This means that the swapgs "implementation" can be inlined and
    used when the stack is unsafe (usermode).  Unfortunately, it means
    that disabling patching will result in a non-booting kernel...
    Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    Cc: Stephen Tweedie <sct@redhat.com>
    Cc: Eduardo Habkost <ehabkost@redhat.com>
    Cc: Mark McLoughlin <markmc@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    952d1d70
enlighten.c 37.9 KB