From: "Jan Beulich" Subject: Re: [PATCH V2] ns16550: Add support for UART present in Broadcom TruManage capable NetXtreme chips Date: Tue, 19 Nov 2013 16:47:16 +0000 Message-ID: <528BA4240200007800104A8B@nat28.tlf.novell.com> References: <1384450802-1870-1-git-send-email-Aravind.Gopalakrishnan@amd.com> <5285F7F40200007800103710@nat28.tlf.novell.com> <52865F3D.8000207@amd.com> <5289D8130200007800103E48@nat28.tlf.novell.com> <528B9475.9080809@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VioSQ-0001Ox-1J for xen-devel@lists.xenproject.org; Tue, 19 Nov 2013 16:47:22 +0000 In-Reply-To: <528B9475.9080809@amd.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Aravind Gopalakrioshnan Cc: Thomas Lendacky , keir@xen.org, andrew.cooper3@citrix.com, SuraveeSuthikulpanit , sherry.hurwitz@amd.com, xen-devel , shurd@broadcom.com List-Id: xen-devel@lists.xenproject.org >>> On 19.11.13 at 17:40, Aravind Gopalakrioshnan wrote: > On 11/18/2013 2:04 AM, Jan Beulich wrote: >> But then you'd need to carefully consider what the remainder of >> the MMIO range is used for - if any of that could conflict with >> what Xen needs to fully control the device, then you should also >> hide any PAGE_SIZE chunks from all domains (including Dom0). >> (Unfortunately we can't currently hide sub-page chunks in an >> effective manner.) > > With respect to this, > I am not seeing any untoward side effects to Xen from letting the code > run as-is. > I have tested the patch with the Broadcom 5725 UART chip and a IO based > UART as well > and both seem to function fine.. Sure, because you surely used a well behaved Dom0. But you should (a) protect Xen from a bug in Dom0 and (b) either prevent the device from being assigned to a guest, or make sure a malicious guest can't interfere with Xen's operation. > I did try using 'iomem_deny_access' to hide the MMIO range from dom0. > But I don't see an effect. > Not sure if I am missing something or is there a different way to hide > PAGE_SIZE chunks? No, what you say you did is correct afaict. Jan