summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-04-29 11:05:32 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2011-05-03 16:14:00 -0300
commitd5b727959d40200267a5f8e348f77e2e76e1875e (patch)
tree4b8cb6e7e187abbc3249357365ab1b094a2ec752
parentaa440998aa5c497b2d32c35852a9d239d17a62f4 (diff)
pci-assign: Remove suspicious hunk from assigned_dev_pci_read_config
No one can remember where this came from, and it looks very hacky anyway (we return 0 for config space address 0xfc of _every_ assigned device, not only vga as the comment claims). So better remove it and wait for the underlying issue to reappear. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--hw/device-assignment.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index 8e9573005..cc81e1e1d 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -505,10 +505,6 @@ static uint32_t assigned_dev_pci_read_config(PCIDevice *d, uint32_t address,
return val;
}
- /* vga specific, remove later */
- if (address == 0xFC)
- goto do_log;
-
fd = pci_dev->real_device.config_fd;
again:
@@ -523,7 +519,6 @@ again:
exit(1);
}
-do_log:
DEBUG("(%x.%x): address=%04x val=0x%08x len=%d\n",
(d->devfn >> 3) & 0x1F, (d->devfn & 0x7), address, val, len);