x86emul: avoid using _PRE_EFLAGS() in a few cases
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Jun 2021 10:33:37 +0000 (12:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Jun 2021 10:33:37 +0000 (12:33 +0200)
commitf004fd7cbbba9f3d58b399d5becfe4e8c5230fb6
tree252a5e2f59d04fa705ea44ecd535b12d087c5b67
parentf8582da0417660269bec69e399f8667f761e886b
x86emul: avoid using _PRE_EFLAGS() in a few cases

The macro expanding to quite a few insns, replace its use by simply
clearing the status flags when the to be executed insn doesn't depend
on their initial state, in cases where this is easily possible. (There
are more cases where the uses are hidden inside macros, and where some
of the users of the macros want guest flags put in place before running
the insn, i.e. the macros can't be updated as easily.)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c