The VM-entry control "load IA32_PAT" and the VM-exit controls "save
IA32_PAT" and "load IA32_PAT" are offered to L1. Hyper-V does not
start without "load IA32_PAT" on VM exits (event 46 for MSR 0x48F).
bhyve keeps a guest's PAT as data only, for L1 and L2 alike, so the
controls move the value between vmcs12 and the vCPU's PAT. The values
are checked as WRMSR checks them (pat_valid(), now vmx_pat_valid()).
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