xen: Disallow variable length arrays
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Sep 2018 14:49:14 +0000 (15:49 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Sep 2018 10:59:32 +0000 (11:59 +0100)
commit0ace362c8a8854b2256631d4edebb61d4238ddc3
tree335c053bad5452165d5ce33f5e2957335d25962f
parente70934f44ad63e5433756f785ab4bcb316f860f2
xen: Disallow variable length arrays

Variable length arrays result in excess stack utilisation, with a risk
of stack overflow if the length is too large.  It also results in fairly
poor asm generation, because of requiring a divide as part of the space
calcuation.

Xen no longer has any variable length arrays, so take the opportunity to
formally disallow them.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Rules.mk