virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* virtio DMA API?
@ 2014-08-25 17:18 Andy Lutomirski
  2014-08-25 18:54 ` Konrad Rzeszutek Wilk
  2014-08-27 11:10 ` Rusty Russell
  0 siblings, 2 replies; 10+ messages in thread
From: Andy Lutomirski @ 2014-08-25 17:18 UTC (permalink / raw)
  To: Rusty Russell, Michael S. Tsirkin, virtualization,
	Konrad Rzeszutek Wilk

Currently, a lot of the virtio code assumes that bus (i.e. hypervisor)
addresses are the same as physical address.  This is false on Xen, so
virtio is completely broken.  I wouldn't be surprised if it also
becomes a problem the first time that someone sticks a physical
"virtio" device on a 32-bit bus on an ARM SOC with more than 4G RAM.

Would you accept patches to convert virtio_ring and virtio_pci to use
the DMA APIs?  I think that the only real catch will be that
virtio_ring's approach to freeing indirect blocks is currently
incompatible with the DMA API -- it assumes that knowing the bus
address is enough to call kfree, and I don't think that the DMA API
provides a reverse mapping like that.

--Andy

-- 
Andy Lutomirski
AMA Capital Management, LLC

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

end of thread, other threads:[~2014-08-29 15:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-25 17:18 virtio DMA API? Andy Lutomirski
2014-08-25 18:54 ` Konrad Rzeszutek Wilk
2014-08-25 19:20   ` Andy Lutomirski
2014-08-27 11:10 ` Rusty Russell
2014-08-27 11:52   ` Michael S. Tsirkin
2014-08-27 19:49     ` Konrad Rzeszutek Wilk
2014-08-27 21:32     ` Benjamin Herrenschmidt
2014-08-27 14:55   ` Andy Lutomirski
2014-08-27 21:31   ` Benjamin Herrenschmidt
2014-08-29 15:06     ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).