]> xenbits.xensource.com Git - xen.git/commit
x86: limit number of hypercall parameters to 5
authorJuergen Gross <jgross@suse.com>
Fri, 3 Dec 2021 10:18:38 +0000 (11:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:18:38 +0000 (11:18 +0100)
commit2f531c122e957d56d214b4ba04856e6172772309
treeac9772337cb934ec54c6ae5b4a903300075668b8
parent3c42cc803c2163daa199021852224b9ca476e9c5
x86: limit number of hypercall parameters to 5

Today there is no hypercall with more than 5 parameters, while the ABI
allows up to 6 parameters. Especially for the X86 32-bit case using
6 parameters would require to run without frame pointer, which isn't
very fortunate. Note that for Arm the limit is 5 parameters already.

So limit the maximum number of parameters to 5 for x86, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hypercall.c
xen/arch/x86/pv/hypercall.c
xen/common/trace.c
xen/include/asm-x86/hypercall.h