device-assignment: PCI option ROM fixes
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | device-assignment: Fix slow option ROM mappinghw/ | +3 | 1 reply | |
| 2/3 | device-assignment: Always use slow mapping for PCI option ROMhw/ | +2 | 1 reply | |
| 3/3 | device-assignment: Byte-wise ROM readhw/ | +5 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Chris Wright |
|---|---|
| 1/3 | A-b |
| 2/3 | A-b |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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(-)