[PATCH v3 0/3] hw/usb: Always expect 'dma' link property to be set to simplify

Philippe Mathieu-Daudé posted 3 patches 2 years, 7 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210826200720.2196827-1-philmd@redhat.com
hw/usb/hcd-xhci.h        |  2 +-
include/hw/pci/pci.h     |  5 +++++
hw/i386/microvm.c        |  2 ++
hw/usb/hcd-xhci-pci.c    |  5 +++--
hw/usb/hcd-xhci-sysbus.c | 13 ++++++-------
hw/usb/hcd-xhci.c        | 20 ++++++++++----------
6 files changed, 27 insertions(+), 20 deletions(-)
[PATCH v3 0/3] hw/usb: Always expect 'dma' link property to be set to simplify
Posted by Philippe Mathieu-Daudé 2 years, 7 months ago
Simplify the XHCI based devices by always passing a MemoryRegion
property to the device.  Doing so we can move the AddressSpace
field to the device struct, removing need for heap allocation.

Since v2:
- Use &error_abort (Eduardo)

Philippe Mathieu-Daudé (3):
  hw/pci: Introduce pci_dma_memory_region() helper
  hw/usb/hcd-xhci-pci: Abort if setting link property failed
  hw/usb/xhci: Always expect 'dma' link property to be set

 hw/usb/hcd-xhci.h        |  2 +-
 include/hw/pci/pci.h     |  5 +++++
 hw/i386/microvm.c        |  2 ++
 hw/usb/hcd-xhci-pci.c    |  5 +++--
 hw/usb/hcd-xhci-sysbus.c | 13 ++++++-------
 hw/usb/hcd-xhci.c        | 20 ++++++++++----------
 6 files changed, 27 insertions(+), 20 deletions(-)

-- 
2.31.1