]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kvm: nVMX: Check "load IA32_PAT" VM-entry control on vmentry
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Mon, 8 Apr 2019 21:35:12 +0000 (17:35 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Apr 2019 13:39:03 +0000 (15:39 +0200)
commitde2bc2bfdf419ad9078736d88cae72beae972a59
treeee3fc5cfef8b92a9dc281978709da961995d346e
parentf6b0db1fdafad5fdbe10a4a3559da42d286435e6
kvm: nVMX: Check "load IA32_PAT" VM-entry control on vmentry

According to section "Checking and Loading Guest State" in Intel SDM vol
3C, the following check is performed on vmentry:

    If the "load IA32_PAT" VM-entry control is 1, the value of the field
    for the IA32_PAT MSR must be one that could be written by WRMSR
    without fault at CPL 0. Specifically, each of the 8 bytes in the
    field must have one of the values 0 (UC), 1 (WC), 4 (WT), 5 (WP),
    6 (WB), or 7 (UC-).

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c