]> xenbits.xensource.com Git - xen.git/commit
x86/pv-shim: fix grant table operations for 32-bit guests
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Oct 2023 11:34:24 +0000 (12:34 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 31 Oct 2023 16:10:14 +0000 (16:10 +0000)
commit93ec30bc545f15760039c23ee4b97b80c0b3b3b3
tree8f615ec9adc0ab7e137d40f47c7ea9d6b1de0cdf
parent23eb39acf011ef9bbe02ed4619c55f208fbcd39b
x86/pv-shim: fix grant table operations for 32-bit guests

When switching to call the shim functions from the normal handlers, the
compat_grant_table_op() function was omitted, leaving it calling the
real grant table operations in !PV_SHIM_EXCLUSIVE builds. This leaves a
32-bit shim guest failing to set up its real grant table with the parent
hypervisor.

Fixes: e7db635f4428 ("x86/pv-shim: Don't modify the hypercall table")
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/compat/grant_table.c