]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Add X86EMUL_F_MSR and X86EMUL_F_DT_LOAD to aid canonical checks
authorMaxim Levitsky <mlevitsk@redhat.com>
Fri, 6 Sep 2024 22:18:22 +0000 (18:18 -0400)
committerSean Christopherson <seanjc@google.com>
Fri, 1 Nov 2024 16:22:25 +0000 (09:22 -0700)
commitc534b37b7584e2abc5d487b4e017f61a61959ca9
tree9e0b480de6bfffc01e38ace5a2a2b9d5c1b253b7
parent16ccadefa295af434ca296e566f078223ecd79ca
KVM: x86: Add X86EMUL_F_MSR and X86EMUL_F_DT_LOAD to aid canonical checks

Add emulation flags for MSR accesses and Descriptor Tables loads, and pass
the new flags as appropriate to emul_is_noncanonical_address().  The flags
will be used to perform the correct canonical check, as the type of access
affects whether or not CR4.LA57 is consulted when determining the canonical
bit.

No functional change is intended.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20240906221824.491834-3-mlevitsk@redhat.com
[sean: split to separate patch, massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/kvm_emulate.h
arch/x86/kvm/x86.c