From 20ecf77258a56a618ad2c42a7b29ee6e60aa77a1 Mon Sep 17 00:00:00 2001 From: Haiwei Li Date: Wed, 14 Aug 2024 16:53:39 +0800 Subject: [PATCH] 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 --- hypervisor/arch/x86/configs/pci_dev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hypervisor/arch/x86/configs/pci_dev.c b/hypervisor/arch/x86/configs/pci_dev.c index 0a1f4286d..06e1ae77f 100644 --- a/hypervisor/arch/x86/configs/pci_dev.c +++ b/hypervisor/arch/x86/configs/pci_dev.c @@ -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;