acrn-hypervisor/hypervisor/include/lib
Chenli Wei 022df1fb2e hv: align the MAX_IR_ENTRIES to MAX_PT_IRQ_ENTRIES
The CONFIG_MAX_IR_ENTRIES and CONFIG_MAX_PT_IRQ_ENTRIES are separate
configuration items, and they can be configured through configuration tool

When the number of PT irq entries are more than IR entries, then some
passthrough devices' irqs may failed to be protected by interrupt
remapping or automatically injected by post-interrupt mechanism.
And it waste memory if the CONFIG_MAX_IR_ENTRIES is larger.

This patch replace the CONFIG_MAX_IR_ENTRIES to MAX_IR_ENTRIES and
enforce it align to CONFIG_PT_IRQ_ENTRIES and round up to > 2^n as the
IRTA_REG spec.This way can enforce all PT irqs works with IR or PI
mechanism.

Tracked-On: #6745
Signed-off-by: Chenli Wei <chenli.wei@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
2021-11-15 09:00:27 +08:00
..
crypto hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
efi.h HV: init hv_e820 from efi mmap if boot from uefi 2021-06-11 10:06:02 +08:00
errno.h HV: Reset physical core of lapic_pt vm when shutdown 2019-04-22 19:58:20 +08:00
hash.h hv: Add 64 bits hash function 2020-05-20 16:04:16 +08:00
list.h HV: treewide: fix violations of coding guideline C-PP-04 2021-11-04 18:15:47 +08:00
rtl.h HV: enable multiboot module string as kernel bootargs 2020-06-08 13:30:04 +08:00
sprintf.h fix "Casting operation to a pointer" 2018-11-06 13:37:33 +08:00
types.h hv: support xsave in context switch 2019-12-02 09:31:12 +08:00
util.h hv: align the MAX_IR_ENTRIES to MAX_PT_IRQ_ENTRIES 2021-11-15 09:00:27 +08:00