x86/HVM: fix xsm_op for 32-bit guests
authorJan Beulich <jbeulich@suse.com>
Mon, 11 Oct 2021 08:58:44 +0000 (10:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Oct 2021 08:58:44 +0000 (10:58 +0200)
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 <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hypercall.c

index 261d8ee8a42b488f21e5329d21774389b0ee1559..122abf80de8da13f6cd44c13092f775aa4ff480e 100644 (file)
@@ -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),