qemu-patch-raspberry4/include/hw/i386
Michael S. Tsirkin 68a27b208a virtio-pci: fix migration for pci bus master
Current support for bus master (clearing OK bit) together with the need to
support guests which do not enable PCI bus mastering, leads to extra state in
VIRTIO_PCI_FLAG_BUS_MASTER_BUG bit, which isn't robust in case of cross-version
migration for the case when guests use the device before setting DRIVER_OK.

Rip out this code, and replace it:
-   Modern QEMU doesn't need VIRTIO_PCI_FLAG_BUS_MASTER_BUG
    so just drop it for latest machine type.
-   For compat machine types, set PCI_COMMAND if DRIVER_OK
    is set.

As this is needed for 2.1 for both pc and ppc, move PC_COMPAT macros from pc.h
to a new common header.

Cc: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
2014-11-02 12:03:03 +02:00
..
apic-msidef.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
apic.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
apic_internal.h apic: use emulated lapic version 0x14 on pc machines >= 2.1 2014-05-07 18:36:37 +03:00
ich9.h ich: get rid of spaces in type name 2014-06-19 16:41:53 +03:00
intel_iommu.h intel-iommu: add IOTLB using hash table 2014-08-28 23:10:22 +02:00
ioapic.h pc: move IO_APIC_DEFAULT_ADDRESS to include/hw/i386/ioapic.h 2013-07-29 19:33:32 -05:00
ioapic_internal.h ioapic: QOM'ify ioapic 2013-12-24 18:02:18 +01:00
pc.h virtio-pci: fix migration for pci bus master 2014-11-02 12:03:03 +02:00
smbios.h SMBIOS: Fix type 17 field sizes 2014-05-21 15:47:50 +03:00