Skip to content

Commit 82181f4

Browse files
jsun26intelwenlingz
authored andcommitted
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 <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent aef5a4f commit 82181f4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

hypervisor/common/hypercall.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,7 @@ int32_t hcall_set_ptdev_intr_info(struct acrn_vm *vm, uint16_t vmid, uint64_t pa
969969
ret = -1;
970970
} else {
971971
/* Inform vPCI about the interupt info changes */
972-
#ifndef CONFIG_PARTITION_MODE
973972
vpci_set_ptdev_intr_info(target_vm, irq.virt_bdf, irq.phys_bdf);
974-
#endif
975973

976974
if (irq.type == IRQ_INTX) {
977975
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)
10261024
* Inform vPCI about the interupt info changes
10271025
* TODO: Need to add bdf info for IRQ_INTX type in devicemodel
10281026
*/
1029-
#ifndef CONFIG_PARTITION_MODE
10301027
vpci_reset_ptdev_intr_info(target_vm, irq.virt_bdf, irq.phys_bdf);
1031-
#endif
10321028

10331029
ptirq_remove_msix_remapping(target_vm,
10341030
irq.virt_bdf,

0 commit comments

Comments
 (0)