From: Ian Campbell Subject: Re: Question about PLATFORM_QUIRK_DOM0_MAPPING_11 Date: Tue, 3 Sep 2013 13:49:53 +0100 Message-ID: <1378212593.7651.70.camel@kazak.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chen Baozi Cc: "xen-devel@lists.xen.org List" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-09-03 at 20:41 +0800, Chen Baozi wrote: > When porting Xen on OMAP5, we need to add .quirks handler which > returns the PLATFORM_QUIRK_DOM0_MAPPING_11. I have read the related > set_memory_reg() in domain_build.c. And My question is in which case > we don't need to return PLATFORM_QUIRK_DOM0_MAPPING_11 in .quirks and > how Xen handles that case to populate right P2M to dom0? DOM0_MAPPING_11 is a workaround for lack of an iommu, either in hardware (e.g. ARM SMMU) or in software (e.g. Stefano's swiotlb patches). In the short term it seems like Stefano's patches are going to be ready before we have an SMMU driver in the hypervisor. In any case DOM0_MAPPING_11 will hopefully go away before too long. Ian.