diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2022-10-25 14:47:30 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-10-28 12:10:29 +0200 |
commit | 055f37f84e304e59c046d1accfd8f08462f52c4c (patch) | |
tree | c57290148e006a4dad37d1277ed3e1f24dea5c6c /drivers/usb | |
parent | KVM: x86: emulator: introduce emulator_recalc_and_set_mode (diff) | |
download | linux-055f37f84e304e59c046d1accfd8f08462f52c4c.tar.xz linux-055f37f84e304e59c046d1accfd8f08462f52c4c.zip |
KVM: x86: emulator: update the emulation mode after rsm
Update the emulation mode after RSM so that RIP will be correctly
written back, because the RSM instruction can switch the CPU mode from
32 bit (or less) to 64 bit.
This fixes a guest crash in case the #SMI is received while the guest
runs a code from an address > 32 bit.
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20221025124741.228045-13-mlevitsk@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions