mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-31 03:15:42 +00:00
hv: pci: remove unused vhostbridge_ops for service vm
Host bridge is implemented as a type 0 device and it's always passthrough to service vm. So remove the vhostbridge_ops for service vm. Tracked-On: #8697 Signed-off-by: Haiwei Li <haiwei.li@intel.com>
This commit is contained in:
parent
5c351bee0f
commit
20ecf77258
@ -64,8 +64,6 @@ struct acrn_vm_pci_dev_config *init_one_dev_config(struct pci_pdev *pdev)
|
||||
dev_config->emu_type = PCI_DEV_TYPE_SERVICE_VM_EMUL;
|
||||
if (is_bridge(pdev)) {
|
||||
dev_config->vdev_ops = &vpci_bridge_ops;
|
||||
} else if (is_host_bridge(pdev)) {
|
||||
dev_config->vdev_ops = &vhostbridge_ops;
|
||||
} else {
|
||||
/* May have type0 device, E.g. debug pci uart */
|
||||
dev_config = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user