Skip to content

Commit

Permalink
Merge remote-tracking branch 'awilliam/tags/vfio-pci-for-qemu-2012101…
Browse files Browse the repository at this point in the history
…7.0' into staging

* awilliam/tags/vfio-pci-for-qemu-20121017.0:
  vfio-pci: Mark non-migratable
  vfio-pci: Fix debug build
  • Loading branch information
Anthony Liguori committed Oct 22, 2012
2 parents da124e6 + d9f0e63 commit 248bbe7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions hw/vfio_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,8 @@ static void vfio_disable_msix(VFIODevice *vdev)

vfio_disable_msi_common(vdev);

DPRINTF("%s(%04x:%02x:%02x.%x, msi%s)\n", __func__,
vdev->host.domain, vdev->host.bus, vdev->host.slot,
vdev->host.function, msix ? "x" : "");
DPRINTF("%s(%04x:%02x:%02x.%x)\n", __func__, vdev->host.domain,
vdev->host.bus, vdev->host.slot, vdev->host.function);
}

static void vfio_disable_msi(VFIODevice *vdev)
Expand Down Expand Up @@ -1917,6 +1916,10 @@ static Property vfio_pci_dev_properties[] = {
DEFINE_PROP_END_OF_LIST(),
};

static const VMStateDescription vfio_pci_vmstate = {
.name = "vfio-pci",
.unmigratable = 1,
};

static void vfio_pci_dev_class_init(ObjectClass *klass, void *data)
{
Expand All @@ -1925,6 +1928,8 @@ static void vfio_pci_dev_class_init(ObjectClass *klass, void *data)

dc->reset = vfio_pci_reset;
dc->props = vfio_pci_dev_properties;
dc->vmsd = &vfio_pci_vmstate;
dc->desc = "VFIO-based PCI device assignment";
pdc->init = vfio_initfn;
pdc->exit = vfio_exitfn;
pdc->config_read = vfio_pci_read_config;
Expand Down

0 comments on commit 248bbe7

Please sign in to comment.