summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/pci.c
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2017-08-10 17:11:47 +0000
committermlarkin <mlarkin@openbsd.org>2017-08-10 17:11:47 +0000
commit2806c66a9d441383efffb63f0e5bde0f478cdaaf (patch)
tree0abc918c190c43e442e74875af609717fe6fb735 /usr.sbin/vmd/pci.c
parentTreat backspace as printable in sanitize() for non-UTF8 locales. (diff)
downloadwireguard-openbsd-2806c66a9d441383efffb63f0e5bde0f478cdaaf.tar.xz
wireguard-openbsd-2806c66a9d441383efffb63f0e5bde0f478cdaaf.zip
vmd: partially back out a change committed yesterday regarding guest
changing IRQs. After discussing with kettenis, that wasn't the right way to do things, and this diff fixes that. ok kettenis
Diffstat (limited to 'usr.sbin/vmd/pci.c')
-rw-r--r--usr.sbin/vmd/pci.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/vmd/pci.c b/usr.sbin/vmd/pci.c
index bbf69b55c6b..4c2dfe8a7e3 100644
--- a/usr.sbin/vmd/pci.c
+++ b/usr.sbin/vmd/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.19 2017/08/09 21:42:44 mlarkin Exp $ */
+/* $OpenBSD: pci.c,v 1.20 2017/08/10 17:11:47 mlarkin Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -353,16 +353,6 @@ pci_handle_data_reg(struct vm_run_params *vrp)
get_input_data(vei,
&pci.pci_devices[d].pd_cfg_space[o / 4]);
- if (o == PCI_INTLINE) {
- /* Guest reassigned IRQ */
-
- pci.pci_devices[d].pd_irq =
- pci.pci_devices[d].pd_cfg_space[o / 4];
-
- log_debug("%s: reassigned pci irq for device %d "
- "to 0x%x", __func__, d, pci.pci_devices[d].pd_irq);
- }
-
/* IOBAR registers must have bit 0 set */
if (o == 0x10)
pci.pci_devices[d].pd_cfg_space[o / 4] |= 1;