]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: avoid effectively open-coding xzalloc_flex_struct()
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Apr 2021 07:24:23 +0000 (09:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Apr 2021 07:24:23 +0000 (09:24 +0200)
commit23eda45f12ec98638d0175b615d3bc3428fd2eda
tree16764c23174806f629e3ea71e53743638c4be7b3
parent4bd1811dcab1145e7ff7652d9ba6800cbf7234a9
x86/HVM: avoid effectively open-coding xzalloc_flex_struct()

Drop hvm_irq_size(), which exists for just this purpose.

There is a difference in generated code: xzalloc_bytes() forces
SMP_CACHE_BYTES alignment. I think we not only don't need this here, but
actually don't want it.

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