]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commit
Allow a test to raise privilege back to kernel level
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 24 Dec 2015 23:22:48 +0000 (23:22 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 5 Jan 2016 20:32:48 +0000 (20:32 +0000)
commitde21d6fd9f3a67168438c42d6f1413e7c7d637d2
treeffed9e7ba821b78da4622b4c0dabfba3bd5e8d64
parente86ce90b84b9a9d47da22e6d0250822db44ee60d
Allow a test to raise privilege back to kernel level

to facilitate tests which switches privilege during the course of its run.

This is achieved by providing a dpl3 IDT entry which restores %esp and jumps
to the %eip found in the exception frame.

Therefore, 'int $0x20' acts as function call which returns at the kernels cpl.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/entry_32.S
arch/x86/entry_64.S
arch/x86/hvm/traps.c
arch/x86/pv/traps.c