aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaliy Gusev <gusev.vitaliy@gmail.com>2023-05-15 14:28:45 +0000
committerCorvin Köhne <corvink@FreeBSD.org>2023-08-18 07:04:26 +0000
commit51e32fe73405a20caed05cd24310d4e6bb718507 (patch)
treeecae8bad4201774716efb8dcf5b109bfcde45a06
parent5573404166b090ccf8556888efd9657657b54032 (diff)
downloadsrc-51e32fe73405a20caed05cd24310d4e6bb718507.tar.gz
src-51e32fe73405a20caed05cd24310d4e6bb718507.zip
-rw-r--r--usr.sbin/bhyve/pci_emul.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c
index 47ddf3f1809c..f52bf94b7c3d 100644
--- a/usr.sbin/bhyve/pci_emul.c
+++ b/usr.sbin/bhyve/pci_emul.c
@@ -1023,7 +1023,8 @@ pci_emul_init(struct vmctx *ctx, struct pci_devemu *pde, int bus, int slot,
pdi->pi_lintr.pirq_pin = 0;
pdi->pi_lintr.ioapic_irq = 0;
pdi->pi_d = pde;
- snprintf(pdi->pi_name, PI_NAMESZ, "%s-pci-%d", pde->pe_emu, slot);
+ snprintf(pdi->pi_name, PI_NAMESZ, "%s@pci.%d.%d.%d", pde->pe_emu, bus,
+ slot, func);
/* Disable legacy interrupts */
pci_set_cfgdata8(pdi, PCIR_INTLINE, 255);