]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/emulator: Move the unhandled outer privilege level logic of far return into...
authorHou Wenlong <houwenlong.hwl@antgroup.com>
Tue, 8 Feb 2022 09:34:05 +0000 (17:34 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Mar 2022 13:50:49 +0000 (08:50 -0500)
commit763beee6c8219c28fc2f77ae138a8a8581dfbf15
tree329080be832ad360024958c604bee37ee9b2df8c
parenta0a9c589e8827a0282031138b10e425e1435b43e
KVM: x86/emulator: Move the unhandled outer privilege level logic of far return into __load_segment_descriptor()

Outer-privilege level return is not implemented in emulator,
move the unhandled logic into __load_segment_descriptor to
make it easier to understand why the checks for RET are
incomplete.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Message-Id: <5b7188e6388ac9f4567d14eab32db9adf3e00119.1644292363.git.houwenlong.hwl@antgroup.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c