Skip to content

rwhandler: introduce and switch pci_host to it

Michael S. Tsirkin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest0 of 3 patches 4 repliesIn review

Patches in v2 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCHv2 0/3] rwhandler: introduce and switch pci_host to it

Alexander, so I assume the following patchset should be enough for you to implement u3 support, simply by creating your own rwhandler, and using pci_data_read/write directly there. I have pushed it to a temporary branch in my tree:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git rwhandler

Paul, any comments on this approach?

I'll push this to my pci tree if this turns out to be helpful. Hope this helps, and sorry about the churn.

Michael S. Tsirkin (3):
bwap: add qemu_bswap helper
rwhandler: simplified way to register for mem/io
pci_host: rewrite using rwhandler

 Makefile.target        |    1 +
 bswap.h                |    6 ++
 hw/pci_host.c          |  172 +++++++++++++++++++----------------------------
 hw/pci_host.h          |    4 +
 hw/pci_host_template.h |  109 ------------------------------
 rwhandler.c            |   91 +++++++++++++++++++++++++
 rwhandler.h            |   27 ++++++++
 7 files changed, 199 insertions(+), 211 deletions(-)
 delete mode 100644 hw/pci_host_template.h
 create mode 100644 rwhandler.c
 create mode 100644 rwhandler.h