From: Jan Beulich Date: Fri, 15 Oct 2021 09:19:11 +0000 (+0200) Subject: x86/HVM: fix xsm_op for 32-bit guests X-Git-Tag: archive/raspbian/4.14.3+32-g9de3671772-1_deb11u1+rpi1^2^2~48^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=37ea2893e978ab311107f3e8cfdb8aaf8523f9fd;p=xen.git x86/HVM: fix xsm_op for 32-bit guests Like for PV, 32-bit guests need to invoke the compat handler, not the native one. Fixes: db984809d61b ("hvm: wire up domctl and xsm hypercalls") Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper master commit: b6b672e8a925ff4b71a1a67bc7d213ef445af74f master date: 2021-10-11 10:58:44 +0200 --- diff --git a/xen/arch/x86/hvm/hypercall.c b/xen/arch/x86/hvm/hypercall.c index b6ccaf4457..f75285de51 100644 --- a/xen/arch/x86/hvm/hypercall.c +++ b/xen/arch/x86/hvm/hypercall.c @@ -137,7 +137,7 @@ static const hypercall_table_t hvm_hypercall_table[] = { HYPERCALL(event_channel_op), COMPAT_CALL(sched_op), COMPAT_CALL(set_timer_op), - HYPERCALL(xsm_op), + COMPAT_CALL(xsm_op), HYPERCALL(hvm_op), HYPERCALL(sysctl), HYPERCALL(domctl),