mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-02 01:16:50 +00:00
HV: remove all CONFIG_PARTITION_MODE from dm/vpci code
Instead of using CONFIG_PARTITION_MODE at compile time to compile in and call the partition mode/sharing mode specific functions, always compile in all sharing mode and partition code, then calling the corresponding functions dynamically based on vm type (PRE_LAUNCHED_VM and SOS_VM) at runtime. Some misra c fix: Add @pre for functions Add const to function parameters Add ASSERT in pci_cfgdata_io_read and pci_cfgdata_io_write Tracked-On: #2534 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
691468a361
commit
c6a60dd29c
@@ -220,14 +220,13 @@ C_SRCS += dm/vpci/vdev.c
|
||||
C_SRCS += dm/vpci/vpci.c
|
||||
ifeq ($(CONFIG_PARTITION_MODE),y)
|
||||
C_SRCS += dm/vmptable.c
|
||||
endif
|
||||
C_SRCS += dm/vpci/partition_mode.c
|
||||
C_SRCS += dm/vpci/hostbridge.c
|
||||
C_SRCS += dm/vpci/pci_pt.c
|
||||
else
|
||||
C_SRCS += dm/vpci/sharing_mode.c
|
||||
C_SRCS += dm/vpci/msi.c
|
||||
C_SRCS += dm/vpci/msix.c
|
||||
endif
|
||||
|
||||
C_SRCS += bsp/firmware_wrapper.c
|
||||
C_SRCS += bsp/firmware_sbl.c
|
||||
|
Reference in New Issue
Block a user