acrn-hypervisor/misc/config_tools/xforms
Yifan Liu 5c9456462b hv && config-tool: Add compilation option to disable all interrupts in HV
This patch adds an option CONFIG_KEEP_IRQ_DISABLED to hv (default n) and
config-tool so that when this option is 'y', all interrupts in hv root
mode will be permanently disabled.

With this option to be 'y', all interrupts received in root mode will be
handled in external interrupt vmexit after next VM entry. The postpone
latency is negligible. This new configuration is a requirement from x86
TEE's secure/non-secure interrupt flow support. Many race conditions can be
avoided when keeping IRQ off.

v5:
Rename CONFIG_ACRN_KEEP_IRQ_DISABLED to CONFIG_KEEP_IRQ_DISABLED

v4:
Change CPU_IRQ_ENABLE/DISABLE to
CPU_IRQ_ENABLE_ON_CONFIG/DISABLE_ON_CONFIG and guard them using
CONFIG_ACRN_KEEP_IRQ_DISABLED

v3:
CONFIG_ACRN_DISABLE_INTERRUPT -> CONFIG_ACRN_KEEP_IRQ_DISABLED
Add more comment in commit message

Tracked-On: #6571
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2021-12-10 09:50:17 +08:00
..
board_info.h.xsl hv: use per platform maximum physical address width 2021-08-20 11:02:21 +08:00
config_common.xsl hv && config-tool: Add compilation option to disable all interrupts in HV 2021-12-10 09:50:17 +08:00
config.h.xsl config-tools: refine MAX_MSIX_TABLE_NUM 2021-08-10 13:16:36 +08:00
config.mk.xsl config-tools: refine MAX_MSIX_TABLE_NUM 2021-08-10 13:16:36 +08:00
ivshmem_cfg.h.xsl hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
lib.xsl config_tools: filled vm to MAX_VM_NUM in vm_configurations.c 2021-11-16 14:42:59 +08:00
misc_cfg.h.xsl config-tools: refine acrn:get-common-clos-max 2021-11-15 13:40:19 +08:00
pci_dev.c.xsl config-tools: enable PTM through config-tools 2021-05-25 11:32:11 +08:00
pt_intx.c.xsl config_tools: allocate interrupt lines among VMs 2021-08-09 09:05:01 +08:00
vm_configurations.c.xsl config_tools: check VM number before filling with dynamic configured VM 2021-12-01 08:44:33 +08:00
vm_configurations.h.xsl config_tools: remove DM_OWNED_GUEST_FLAG_MASK 2021-11-28 14:35:25 +08:00