Skip to content

device-assignment: PCI option ROM fixes

Alex Williamson kvm 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3device-assignment: Fix slow option ROM mappinghw/device-assignment.c+3 -11 reply
2/3device-assignment: Always use slow mapping for PCI option ROMhw/device-assignment.c+2 -61 reply
3/3device-assignment: Byte-wise ROM readhw/device-assignment.c+5 -41 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchChris Wright
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] device-assignment: PCI option ROM fixes

Changeset b4f8c249 in kvm.git makes the mprotects in device assignment produce a "Bad address" hang when a device with an option ROM is assigned. We can avoid this by just using the slow mapping path since ROM access doesn't need to be fast. Apparently nobody has ever mapped a ROM via this path, because passing NULL to cpu_register_io_memory() doesn't work. I also found we're overly restrictive in copying the ROM from the host, I must have been lucky and had a ROM that matched the BAR size when I added this.

Alex

---

Alex Williamson (3):
device-assignment: Byte-wise ROM read
device-assignment: Always use slow mapping for PCI option ROM
device-assignment: Fix slow option ROM mapping

 hw/device-assignment.c |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)