mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
Add some trace calls to pci.c.
Signed-off-by: Don Koch <dkoch@verizon.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
6ac0d8d44c
commit
7828d75045
2 changed files with 13 additions and 0 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "hw/loader.h"
|
||||
#include "qemu/range.h"
|
||||
#include "qmp-commands.h"
|
||||
#include "trace.h"
|
||||
#include "hw/pci/msi.h"
|
||||
#include "hw/pci/msix.h"
|
||||
#include "exec/address-spaces.h"
|
||||
|
@ -1106,10 +1107,18 @@ static void pci_update_mappings(PCIDevice *d)
|
|||
|
||||
/* now do the real mapping */
|
||||
if (r->addr != PCI_BAR_UNMAPPED) {
|
||||
trace_pci_update_mappings_del(d, pci_bus_num(d->bus),
|
||||
PCI_FUNC(d->devfn),
|
||||
PCI_SLOT(d->devfn),
|
||||
i, r->addr, r->size);
|
||||
memory_region_del_subregion(r->address_space, r->memory);
|
||||
}
|
||||
r->addr = new_addr;
|
||||
if (r->addr != PCI_BAR_UNMAPPED) {
|
||||
trace_pci_update_mappings_add(d, pci_bus_num(d->bus),
|
||||
PCI_FUNC(d->devfn),
|
||||
PCI_SLOT(d->devfn),
|
||||
i, r->addr, r->size);
|
||||
memory_region_add_subregion_overlap(r->address_space,
|
||||
r->addr, r->memory, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue