diff options
author | 2023-04-05 16:45:56 -0700 | |
---|---|---|
committer | 2023-06-02 10:12:03 -0700 | |
commit | c3a1e119a343a70a9f49689b8f18bb43f236d681 (patch) | |
tree | e985d5e2b4ecec89a550925ef416b22ace6bc4d5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: VMX: Inject #GP on ENCLS if vCPU has paging disabled (CR0.PG==0) (diff) | |
download | wireguard-linux-c3a1e119a343a70a9f49689b8f18bb43f236d681.tar.xz wireguard-linux-c3a1e119a343a70a9f49689b8f18bb43f236d681.zip |
KVM: VMX: Inject #GP, not #UD, if SGX2 ENCLS leafs are unsupported
Per Intel's SDM, unsupported ENCLS leafs result in a #GP, not a #UD.
SGX1 is a special snowflake as the SGX1 flag is used by the CPU as a
"soft" disable, e.g. if software disables machine check reporting, i.e.
having SGX but not SGX1 is effectively "SGX completely unsupported" and
and thus #UDs.
Fixes: 9798adbc04cf ("KVM: VMX: Frame in ENCLS handler for SGX virtualization")
Cc: Binbin Wu <binbin.wu@linux.intel.com>
Cc: Kai Huang <kai.huang@intel.com>
Tested-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20230405234556.696927-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions