diff options
author | Binbin Wu <[email protected]> | 2023-04-04 11:25:02 +0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-04-05 11:52:19 -0700 |
commit | 548bd27428b924cb725ab7c1418c0203e61f9ed7 (patch) | |
tree | e31954deb6d2fc1a8625c876afc061b8ff68603f /lib/mpi/mpi-mod.c | |
parent | f6cde92083dec5cf424504d7029acdffbe5beed8 (diff) |
KVM: VMX: Use is_64_bit_mode() to check 64-bit mode in SGX handler
sgx_get_encls_gva() uses is_long_mode() to check 64-bit mode, however,
SGX system leaf instructions are valid in compatibility mode, should
use is_64_bit_mode() instead.
Fixes: 70210c044b4e ("KVM: VMX: Add SGX ENCLS[ECREATE] handler to enforce CPUID restrictions")
Signed-off-by: Binbin Wu <[email protected]>
Reviewed-by: Kai Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions