On Tue, 04 Apr 2023 11:25:02 +0800, Binbin Wu wrote: > 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. Applied to kvm-x86 vmx, thanks! I'm still dumbfounded that ENCLS is allowed in compatibility mode :-) [1/1] KVM: VMX: Use is_64_bit_mode() to check 64-bit mode in SGX handler https://github.com/kvm-x86/linux/commit/548bd27428b9 -- https://github.com/kvm-x86/linux/tree/next https://github.com/kvm-x86/linux/tree/fixes