Skip to contentSkip to conversation

x86/HVM: fix xsm_op for 32-bit guests

PATCH In review Jan Beulich 2 participants 2 messages Oct 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
xen/arch/x86/hvm/hypercall.c +1 -1
@@ -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),