CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2023/01/29 19:32:01

Modified files:
        sys/arch/amd64/amd64: vmm.c 
        sys/arch/amd64/include: cpufunc.h vmmvar.h 

Log message:
vmm(4): save and restore guest pkru.

Take a simple approach for saving and restoring PKRU if the host
has PKE support enabled. Uses explicit rdpkru/wrpkru instructions
for now instead of xsave.

This functionality is still gated behind amd64 pmap checking for
operation under a hypervisor as well as vmm masking the cpuid bit
for PKU.

"if your diff is good, then commit it" -deraadt@

Reply via email to