pcie: pass pcie window size to pcie_host_mmcfg_update()
This allows q35 to pass/set the size of the pcie window in its update routine.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Jason Baron <jbaron@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
pcie: Convert PCIExpressHost to use the QOM.
Let's use PCIExpressHost with QOM.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Acked-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Jason Baron <jbaron@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
pci-assign: Use msi_get_message()
pci-assign only uses a subset of the flexibility msi_get_message()provides, but it's still worthwhile to use it.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
pci: Return PCI_INTX_DISABLED when no bus INTx routing support
Rather than assert, simply return PCI_INTX_DISABLED when we don'thave a pci_route_irq_fn. PIIX already returns DISABLED for aninvalid pin, so users already deal with this state. Users of this...
qemu: enable PV EOI for qemu 1.3
Enable KVM PV EOI by default. You can still disable it with-kvm_pv_eoi cpu flag. To avoid breaking cross-version migration,enable only for qemu 1.3 (or in the future, newer) machine type.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
pci: make each capability DWORD aligned
PCI spec (see e.g. 6.7 Capabilities List in spec rev 3.0)requires that each capability is DWORD aligned.Ensure this when allocating space by rounding size up to 4.
pci: pci capability must be in PCI space
pci capability must be in PCI space.It can't lay in PCIe extended config space.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>Signed-off-by: Jason Baron <jbaron@redhat.com>...
pci_ids: add intel 82801BA pci-to-pci bridge id
Adds pci id constants which will be used by q35.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>Signed-off-by: Jason Baron <jbaron@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
pci: introduce pci_swizzle_map_irq_fn() for standardized interrupt pin swizzle
Introduce pci_swizzle_map_irq_fn() for interrupt pin swizzle which isstandardized. PCI bridge swizzle is common logic, by introducingthis function duplicated swizzle logic will be avoided later....
pci: Add class 0xc05 as 'SMBus'
[jbaron@redhat.com: add PCI_CLASS_SERIAL_SMBUS definition]Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Jason Baron <jbaron@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
View revisions
Also available in: Atom