All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] device-assignment: PCI option ROM fixes
@ 2010-07-30 19:40 Alex Williamson
  2010-07-30 19:40 ` [PATCH 1/3] device-assignment: Fix slow option ROM mapping Alex Williamson
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Alex Williamson @ 2010-07-30 19:40 UTC (permalink / raw)
  To: kvm; +Cc: ddutile, chrisw, gleb, alex.williamson

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(-)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-17  9:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-30 19:40 [PATCH 0/3] device-assignment: PCI option ROM fixes Alex Williamson
2010-07-30 19:40 ` [PATCH 1/3] device-assignment: Fix slow option ROM mapping Alex Williamson
2010-07-31 16:54   ` Chris Wright
2010-07-30 19:40 ` [PATCH 2/3] device-assignment: Always use slow mapping for PCI option ROM Alex Williamson
2010-07-31 16:55   ` Chris Wright
2010-07-30 19:40 ` [PATCH 3/3] device-assignment: Byte-wise ROM read Alex Williamson
2010-07-31 17:08   ` Chris Wright
2010-08-17  9:49 ` [PATCH 0/3] device-assignment: PCI option ROM fixes Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.