From b6b672e8a925ff4b71a1a67bc7d213ef445af74f Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 11 Oct 2021 10:58:44 +0200 Subject: [PATCH] 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 --- xen/arch/x86/hvm/hypercall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/hypercall.c b/xen/arch/x86/hvm/hypercall.c index 261d8ee8a4..122abf80de 100644 --- a/xen/arch/x86/hvm/hypercall.c +++ b/xen/arch/x86/hvm/hypercall.c @@ -138,7 +138,7 @@ static const struct { 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), -- 2.30.2