target/i386: Add support for save/load IA32_PKRS MSR
commit6aa4228bd68cb251ccb5f802c015b494c6a10f19
authorChenyi Qiang <chenyi.qiang@intel.com>
Fri, 5 Feb 2021 08:33:24 +0000 (5 16:33 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Feb 2021 14:15:32 +0000 (8 15:15 +0100)
tree889b4bf17d4c2bd8a7e9133abacee2de2e140215
parent735754aaa15a6ed46db51fd731e88331c446ea54
target/i386: Add support for save/load IA32_PKRS MSR

PKS introduces MSR IA32_PKRS(0x6e1) to manage the supervisor protection
key rights. Page access and writes can be managed via the MSR update
without TLB flushes when permissions change.

Add the support to save/load IA32_PKRS MSR in guest.

Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Message-Id: <20210205083325.13880-2-chenyi.qiang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/kvm.c