Files
acrn-hypervisor/hypervisor/arch/x86
Zide Chen 11c2f3eabb hv: check bitmap before calling bitmap_test_and_clear_lock()
The locked btr instruction is expensive.  This patch changes the
logic to ensure that the bitmap is non-zero before executing
bitmap_test_and_clear_lock().

The VMX transition time gets significant improvement.  SOS running
on TGL, the CPUID roundtrip reduces from ~2400 cycles to ~2000 cycles.

Tracked-On: #6289
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2021-09-02 16:09:33 +08:00
..
2021-08-26 09:24:50 +08:00
2021-08-10 16:36:15 +08:00
2021-09-02 09:15:39 +08:00
2021-05-12 16:50:34 +08:00
2021-06-01 08:22:20 +08:00
2021-05-14 09:18:00 +08:00