diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-05-30 01:21:47 +0300 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-06-03 15:34:47 +0300 |
| commit | f43caad54cc0d7ab8c3a08092687fad515ce8da6 (patch) | |
| tree | 56c390c87c9fed43babb4a4258756f0fb2f7a1b5 /scripts/objdiff | |
| parent | 9377016c2f9e2e25dca5788ac109190daf116134 (diff) | |
| download | linux-f43caad54cc0d7ab8c3a08092687fad515ce8da6.tar.xz | |
KVM: VMX: Read 32-bit GPR values for ENCLS instructions outside of 64-bit mode
When getting register values for ENCLS emulation, use kvm_register_read()
instead of kvm_<reg>_read() so that bits 63:32 of the register are dropped
if the guest is in 32-bit mode.
Note, the misleading/surprising behavior of kvm_<reg>_read() being "raw"
variants under the hood will be addressed once all non-benign bugs are
fixed.
Fixes: 70210c044b4e ("KVM: VMX: Add SGX ENCLS[ECREATE] handler to enforce CPUID restrictions")
Fixes: b6f084ca5538 ("KVM: VMX: Add ENCLS[EINIT] handler to support SGX Launch Control (LC)")
Acked-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Link: https://patch.msgid.link/20260529222223.870923-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
