summaryrefslogtreecommitdiff
path: root/include/linux/bits.h
diff options
context:
space:
mode:
authorMaxim Levitsky <mlevitsk@redhat.com>2022-10-25 15:47:29 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-10 17:46:56 +0100
commited7ae7ccf2c9776e62c4987bc1ff8d5f43683cad (patch)
tree3af052b171f7f6ec3391ef99c503e2552595e64b /include/linux/bits.h
parent4e3cd22fa220155a2f0d2048dd34cfb8ba539cec (diff)
KVM: x86: emulator: introduce emulator_recalc_and_set_mode
commit d087e0f79fa0dd336a9a6b2f79ec23120f5eff73 upstream. Some instructions update the cpu execution mode, which needs to update the emulation mode. Extract this code, and make assign_eip_far use it. assign_eip_far now reads CS, instead of getting it via a parameter, which is ok, because callers always assign CS to the same value before calling this function. No functional change is intended. Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Message-Id: <20221025124741.228045-12-mlevitsk@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/bits.h')
0 files changed, 0 insertions, 0 deletions