From d5b727959d40200267a5f8e348f77e2e76e1875e Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 29 Apr 2011 11:05:32 +0200 Subject: 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 Acked-by: Alex Williamson Signed-off-by: Marcelo Tosatti --- hw/device-assignment.c | 5 ----- 1 file changed, 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); -- cgit v1.2.3