]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[pcbios] Do not switch to real mode to check for timer interrupt
authorMichael Brown <mcb30@ipxe.org>
Mon, 28 Apr 2014 19:20:44 +0000 (20:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 29 Apr 2014 17:24:10 +0000 (18:24 +0100)
commite4593909a8a21c4a9d5766bf6a0770bcf6ee6911
tree4831a67764ab2ea8e9aa5210b3c9c0d3bd7e7f3a
parentaaf276ccd4819de791d7a1295f26f36f29fb3cb6
[pcbios] Do not switch to real mode to check for timer interrupt

The currticks() function is called at least once per TCP packet, and
so is performance-critical.  Switching to real mode just to allow the
timer interrupt to fire is expensive when running inside a virtual
machine, and imposes a significant performance cost.

Fix by enabling interrupts without switching to real mode.  This
results in an approximately 100% increase in download speed when
running under KVM.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/interface/pcbios/bios_timer.c