x86/shim: fix build when !PV32
authorJan Beulich <jbeulich@suse.com>
Mon, 17 May 2021 13:42:00 +0000 (15:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 17 May 2021 13:42:00 +0000 (15:42 +0200)
commitbd1e7b47bac00735a47055e2cba4106b54175138
tree351fe4b29c7e17314333554c39c76db9893f9444
parentaa803ba38a867551917d11059eaa044955556e05
x86/shim: fix build when !PV32

In this case compat headers don't get generated (and aren't needed).
The changes made by 527922008bce ("x86: slim down hypercall handling
when !PV32") also weren't quite sufficient for this case.

Try to limit #ifdef-ary by introducing two "fallback" #define-s.

Fixes: d23d792478db ("x86: avoid building COMPAT code when !HVM && !PV32")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/pv/shim.c