From 82181f4cdc6760487570e10aa3835ef9ecbc1764 Mon Sep 17 00:00:00 2001 From: Victor Sun Date: Thu, 18 Apr 2019 09:51:44 +0800 Subject: [PATCH] HV: remove ifndef on vpci_set_ptdev_intr_info The function vpci_set_ptdev_intr_info() is not compiled for CONFIG_SHARING_MODE only any more so the #ifndef here is useless. Tracked-On: #2291 Signed-off-by: Victor Sun Acked-by: Eddie Dong --- hypervisor/common/hypercall.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hypervisor/common/hypercall.c b/hypervisor/common/hypercall.c index 4cfb785d4..6fa08ff4e 100644 --- a/hypervisor/common/hypercall.c +++ b/hypervisor/common/hypercall.c @@ -969,9 +969,7 @@ int32_t hcall_set_ptdev_intr_info(struct acrn_vm *vm, uint16_t vmid, uint64_t pa ret = -1; } else { /* Inform vPCI about the interupt info changes */ -#ifndef CONFIG_PARTITION_MODE vpci_set_ptdev_intr_info(target_vm, irq.virt_bdf, irq.phys_bdf); -#endif if (irq.type == IRQ_INTX) { ret = ptirq_add_intx_remapping(target_vm, irq.is.intx.virt_pin, @@ -1026,9 +1024,7 @@ hcall_reset_ptdev_intr_info(struct acrn_vm *vm, uint16_t vmid, uint64_t param) * Inform vPCI about the interupt info changes * TODO: Need to add bdf info for IRQ_INTX type in devicemodel */ -#ifndef CONFIG_PARTITION_MODE vpci_reset_ptdev_intr_info(target_vm, irq.virt_bdf, irq.phys_bdf); -#endif ptirq_remove_msix_remapping(target_vm, irq.virt_bdf,