mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: vpci: rename ptdev_config to pci_dev_config
pci_dev_config in VM configure stores all the PCI devices for a VM. Besides PT devices, there're other type devices, like virtual host bridge. So rename ptdev to pci_dev for these configure. Tracked-On: #3475 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
83e887dbb3
commit
adbaaaf6cb
@@ -229,7 +229,7 @@ Enable partition mode in ACRN hypervisor
|
||||
|
||||
PCI devices that are available to the privileged VMs
|
||||
are hardcoded in the source file ``hypervisor/arch/x86/configs/up2/pt_dev.c``.
|
||||
You need to review and modify the ``vm0_pci_ptdevs`` and ``vm1_pci_ptdevs``
|
||||
You need to review and modify the ``vm0_pci_devs`` and ``vm1_pci_devs``
|
||||
structures in the source code to match the PCI BDF addresses of the SATA
|
||||
controller and the USB controller noted in step 1:
|
||||
|
||||
@@ -238,7 +238,7 @@ Enable partition mode in ACRN hypervisor
|
||||
:caption: hypervisor/arch/x86/configs/up2/pt_dev.c
|
||||
|
||||
...
|
||||
struct acrn_vm_pci_ptdev_config vm0_pci_ptdevs[2] = {
|
||||
struct acrn_vm_pci_dev_config vm0_pci_devs[2] = {
|
||||
{
|
||||
.vbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U},
|
||||
.pbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U},
|
||||
@@ -250,7 +250,7 @@ Enable partition mode in ACRN hypervisor
|
||||
};
|
||||
|
||||
...
|
||||
struct acrn_vm_pci_ptdev_config vm1_pci_ptdevs[3] = {
|
||||
struct acrn_vm_pci_dev_config vm1_pci_devs[3] = {
|
||||
{
|
||||
.vbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U},
|
||||
.pbdf.bits = {.b = 0x00U, .d = 0x00U, .f = 0x00U},
|
||||
|
Reference in New Issue
Block a user