[PATCH] x86/HVM: fix xsm_op for 32-bit guests

Jan Beulich posted 1 patch 2 weeks ago

[PATCH] x86/HVM: fix xsm_op for 32-bit guests

Posted by Jan Beulich 2 weeks ago
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>

--- 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),


Re: [PATCH] x86/HVM: fix xsm_op for 32-bit guests

Posted by Andrew Cooper 1 week, 6 days ago
On 08/10/2021 14:06, Jan Beulich wrote:
> 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>