mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 17:46:15 +00:00
HV: minor changes on pci devices config
- The pci device config is related to VM configurations, so move the device mapping MACROs from pci_devices.h to vm_configurations.h. Also considering pci_devices.h should be generated by offline parse tool, this code change would decouple the relationship between VM configuration tool and target paser tool; - Another minor change is add post-fix in number for each PCI device subclass name to make target parse tool interface friendly; Tracked-On: #2291 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
307d348721
commit
4bbf946fdd
@@ -15,11 +15,11 @@ struct acrn_vm_pci_ptdev_config vm0_pci_ptdevs[VM0_CONFIG_PCI_PTDEV_NUM] = {
|
||||
},
|
||||
{
|
||||
.vbdf.bits = {.b = 0x00U, .d = 0x01U, .f = 0x00U},
|
||||
STORAGE_CONTROLLER_0
|
||||
VM0_STORAGE_CONTROLLER
|
||||
},
|
||||
{
|
||||
.vbdf.bits = {.b = 0x00U, .d = 0x02U, .f = 0x00U},
|
||||
ETHERNET_CONTROLLER_0
|
||||
VM0_NETWORK_CONTROLLER
|
||||
},
|
||||
};
|
||||
|
||||
@@ -30,10 +30,12 @@ struct acrn_vm_pci_ptdev_config vm1_pci_ptdevs[VM1_CONFIG_PCI_PTDEV_NUM] = {
|
||||
},
|
||||
{
|
||||
.vbdf.bits = {.b = 0x00U, .d = 0x01U, .f = 0x00U},
|
||||
STORAGE_CONTROLLER_1
|
||||
VM1_STORAGE_CONTROLLER
|
||||
},
|
||||
#if defined(VM1_NETWORK_CONTROLLER)
|
||||
{
|
||||
.vbdf.bits = {.b = 0x00U, .d = 0x02U, .f = 0x00U},
|
||||
ETHERNET_CONTROLLER_1
|
||||
VM1_NETWORK_CONTROLLER
|
||||
},
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user