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>tags/v1.20.1
|
|
||
44 |
|
44 |
|
45 |
|
45 |
|
46 |
|
46 |
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
51 |
|
51 |
|
52 |
|
52 |
|
53 |
|
53 |
|