x86/PV32: fix physdev_op_compat handling
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Oct 2021 09:55:42 +0000 (11:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Oct 2021 09:55:42 +0000 (11:55 +0200)
commit834cb8761051f7d87816785c0d99fe9bd5f0ce30
treeec583808ab7767a1e084dada125c92aa81f1c7cc
parent036432e8b27e1ef21e0f0204ba9b0e3972a031c2
x86/PV32: fix physdev_op_compat handling

The conversion of the original code failed to recognize that the 32-bit
compat variant of this (sorry, two different meanings of "compat" here)
needs to continue to invoke the compat handler, not the native one.
Arrange for this by adding yet another #define.

Affected functions (having existed prior to the introduction of the new
hypercall) are PHYSDEVOP_set_iobitmap and PHYSDEVOP_apic_{read,write}.
For all others the operand struct layout doesn't differ.

Fixes: 1252e2823117 ("x86/pv: Export pv_hypercall_table[] rather than working around it in several ways")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_64/compat.c