]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
{hyper,multi}call: further limit arguments to just 5
authorJan Beulich <jbeulich@suse.com>
Fri, 2 May 2025 07:43:23 +0000 (09:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 May 2025 07:43:23 +0000 (09:43 +0200)
commite81baffaff115c88f33097d171e5e7262e581c2d
tree614848a4b220f0176d77402db89d040dcb204feb
parent19772b670426f6466b922b42017e818c837a172c
{hyper,multi}call: further limit arguments to just 5

Multicall compat translation and hypercall continuation handling can
also be shrunk to the processing of just (up to) 5 arguments.

Take the opportunity to
- make exceeding the limit noisy in hypercall_create_continuation(),
- use speculation-safe array access in hypercall_create_continuation(),
- avoid a Misra C:2012 Rule 19.1 violation in xlat_multicall_entry(),
- further tidy xlat_multicall_entry() and __trace_multicall_call()
  style-wise.

Amends: 2f531c122e95 ("x86: limit number of hypercall parameters to 5")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org> # arm
xen/arch/arm/domain.c
xen/arch/x86/hypercall.c
xen/common/compat/multicall.c
xen/include/public/xen.h