Skip to contentSkip to conversation

Add support for mapping grant references into HVM guests (+ some cleanup)

PATCH Justin T. Gibbs 2 participants 3 messages Dec 18, 2009 – Jan 8, 2010

lore
Share & tools
lore
#0 lore raw

Was any consensus reached on how to cleanly allow an HVM guest to map grant references? I'm in need of this feature for a FreeBSD x86_64 HVM driver domain. FreeBSD x86_64 does not support full PV, and I need the ability to run backends in these domains for my application. The patches from this thread would likely work for me, but like the author of them, I'd rather use a publicly supported Xen interface than to have a locally maintained solution.

--
Justin

#1 lore raw

Support is already in the tree and will be part of Xen 4.0. See xen-unstable changeset 19932:c0cb307d927f.

-- Keir

Quoted 16 lines · Justin T. Gibbs

Was any consensus reached on how to cleanly allow an HVM guest to map grant references? I'm in need of this feature for a FreeBSD x86_64 HVM driver domain. FreeBSD x86_64 does not support full PV, and I need the ability to run backends in these domains for my application. The patches from this thread would likely work for me, but like the author of them, I'd rather use a publicly supported Xen interface than to have a locally maintained solution.

--
Justin

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 5 lines · Keir Fraser

Support is already in the tree and will be part of Xen 4.0. See xen-unstable changeset 19932:c0cb307d927f.

-- Keir

I have successfully integrated the 4.0 change into my 3.4.1 test system. The changes works as expected so long as the I/O is serviced via a copy from memory owned by the device domain. However, iommu mappings are not updated for HVM grant table updates so it is not possible to use DMA. I am experimenting with changes to update the iommu for p2m_grant_map* types but wonder is some overarching architectural consideration I'm missing that would explain why the iommu was not updated in the original changes?

--
Justin