• Rusty Russell's avatar
    [PATCH] i386: Descriptor and trap table cleanups. · 522e93e3
    Rusty Russell authored
    The implementation comes from Zach's [RFC, PATCH 10/24] i386 Vmi
    descriptor changes:
    
    Descriptor and trap table cleanups.  Add cleanly written accessors for
    IDT and GDT gates so the subarch may override them.  Note that this
    allows the hypervisor to transparently tweak the DPL of the descriptors
    as well as the RPL of segments in those descriptors, with no unnecessary
    kernel code modification.  It also allows the hypervisor implementation
    of the VMI to tweak the gates, allowing for custom exception frames or
    extra layers of indirection above the guest fault / IRQ handlers.
    Signed-off-by: default avatarZachary Amsden <zach@vmware.com>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    522e93e3
traps.c 33.2 KB