Maxim Levitsky 055f37f84e 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>
2022-10-28 06:10:29 -04:00
..
2022-10-10 09:27:46 -07:00
2022-04-11 18:04:27 +02:00
2022-04-14 14:09:43 +02:00
2022-10-04 13:38:03 -07:00
2022-10-09 08:56:54 -07:00
2022-09-26 10:13:16 -07:00
2022-10-12 14:39:38 -07:00
2022-07-25 10:32:32 +02:00
2021-12-11 09:09:45 +01:00
2022-10-10 12:00:45 -07:00