Re: [PATCH] x86/vIO-APIC: make use of xmalloc_flex_struct()

2020-12-07 Thread Andrew Cooper
On 07/12/2020 10:49, Jan Beulich wrote: > ... 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 Acked-by: Andrew Cooper

[PATCH] x86/vIO-APIC: make use of xmalloc_flex_struct()

2020-12-07 Thread Jan Beulich
... 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 --- a/xen/arch/x86/hvm/vioapic.c +++ b/xen/arch/x86/hvm/vioapic.c @@ -622,9 +622,9 @@ void vioap