x86/vIO-APIC: make use of xmalloc_flex_struct()
authorJan Beulich <jbeulich@suse.com>
Mon, 7 Dec 2020 13:53:20 +0000 (14:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Dec 2020 13:53:20 +0000 (14:53 +0100)
commitd218fb11884346bb079fa2226ab8786a7bfeee16
tree23b15a419f668f1f7285e6cadec909c5d1175bdd
parentb7c333016e3d6adf38e80b4e6b121950da092405
x86/vIO-APIC: make use of xmalloc_flex_struct()

... instead of effectively open-coding it in a type-unsafe way. Drop
hvm_vioapic_size() altogether, folding the other use in a memset()
invocation into the subsequent loop.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/vioapic.c
xen/include/asm-x86/hvm/vioapic.h