]> xenbits.xensource.com Git - xen.git/commitdiff
x86/HVM: fix xsm_op for 32-bit guests
authorJan Beulich <jbeulich@suse.com>
Fri, 15 Oct 2021 09:19:11 +0000 (11:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Oct 2021 09:19:11 +0000 (11:19 +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>
master commit: b6b672e8a925ff4b71a1a67bc7d213ef445af74f
master date: 2021-10-11 10:58:44 +0200

xen/arch/x86/hvm/hypercall.c

index b6ccaf44576772053aa5455f9426d772ecc07f2a..f75285de512e9cf645b8b37d09e25ad4024192a4 100644 (file)
@@ -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),