From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] amd iommu: Do not adjust paging mode for dom0 devices Date: Sun, 06 Feb 2011 16:58:18 +0000 Message-ID: References: <201102011834.02121.wei.wang2@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <201102011834.02121.wei.wang2@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Wei Wang2 Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 01/02/2011 17:34, "Wei Wang2" wrote: > Keir > Here is another small patch to fix consistency issue of paging mode when > return passthru devices back to dom0. In this case, paging mode should no= t be > adjusted, since dom0->max_pages =3D ~0U. The call to get_paging_mode() in amd_iommu_domain_init() looks sensible enough. Why is a call needed in reassign_device() at all? Checking for dom0 in reassign_device just looks like a fragile hack. -- Keir > Thanks, > Wei > Signed-off-by: Wei Wang > -- > Advanced Micro Devices GmbH > Sitz: Dornach, Gemeinde Aschheim, > Landkreis M=FCnchen Registergericht M=FCnchen, > HRB Nr. 43632 > WEEE-Reg-Nr: DE 12919551 > Gesch=E4ftsf=FChrer: > Alberto Bozzo, Andrew Bowd > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel