diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-10-17 11:20:14 -0600 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2012-10-17 11:20:14 -0600 |
commit | d9f0e63898d639629bb7eb914786529185334635 (patch) | |
tree | f56685f6d036f4c9736175c4e63cdafe6cfe52a9 /hw | |
parent | a011b10e0c385c58469e654595801a592fb4137a (diff) |
vfio-pci: Mark non-migratable
We haven't magically fixed this yet. Toss in a description too.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/vfio_pci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c index 0619af4854..d5ff367c1b 100644 --- a/hw/vfio_pci.c +++ b/hw/vfio_pci.c @@ -1946,6 +1946,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) { @@ -1954,6 +1958,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; |