]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[librm] Speed up protected-mode calls under KVM
authorMichael Brown <mcb30@ipxe.org>
Fri, 2 May 2014 17:45:18 +0000 (18:45 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 2 May 2014 20:00:53 +0000 (21:00 +0100)
commitbcfaf119a7484afe1ccad79a8e48c9aa558e2f51
tree2c36b9f00414ecb3024cda24c0930906ccc02d04
parentc64747db5040d860c9c77f2673c4cce287249bbd
[librm] Speed up protected-mode calls under KVM

When making a call from real mode to protected mode, we save and
restore the global and interrupt descriptor table registers.  The
restore currently takes place after returning to real mode, which
generates two EXCEPTION_NMIs and corresponding VM exits when running
under KVM on an Intel CPU.

Avoid the VM exits by restoring the descriptor table registers inside
prot_to_real, while still running in protected mode.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/transitions/librm.S