[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel][PATCH][VT-d] Dis-allow PCI device assignment if PoD is enabled
On Thu, Jan 21, 2010 at 6:02 PM, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx> wrote: > In many/most cases the device will not be in use that early in boot, so it's > a bit annoying to have to do maintain the IOMMU pagetables through PoD, but > unavoidable. The key thing is that we only have to do it for domains that > actually have devices passed-through. At the moment, I can't imagine how IOMMU/VT-d can interact well with PoD during boot, before the balloon driver gets in and does its thing. It's guaranteed during that time that a high percentage of the memory which the guest thinks it has free will be not-present in the p2m. There's no way we can predict which gfns will be passed to the device; having been zeroed (and thus populated) is no help, since a non-negligible percentage of zeroed pages will need to be reclaimed for the PoD pool again anyway. If it really is true that devices aren't used during boot, then we could simply have the balloon driver / the tools do a final "sync" once the "target" has been reached (and outstanding PoD entries == size of PoD memory pool). Doing more than that (say, syncing on every p2m update) doesn't solve the problem (although I suppose it may be necessary to prevent corruption). -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |