Until now a hypervisor in a guest (L1) had to set "CR8-load exiting" and
"CR8-store exiting" for its guests (L2). A hypervisor that lets its
guest use the local APIC of the CPU does not set them.
The host needs the VM exits, because CR8 is the task priority of L1's
local APIC, which the host emulates. So the two controls are now among
the ones that vmcs02 always has: when L1 has not asked for the VM exit,
the host emulates the MOV to or from CR8 for L2 as it does for L1.
AI assistance: as D61708, this change was developed with an AI assistant (Anthropic's Claude) under my direction. The assistant wrote the code and this description. The tests in the test plan were run on real hardware.
Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>
Sponsored by: keelos.dev