From: "Jan Beulich" Subject: Re: [PATCH v3 5/5] x86/MSI: drop workaround for insecure Dom0 kernels Date: Thu, 10 Apr 2014 11:26:27 +0100 Message-ID: <53468DF302000078000078BD@nat28.tlf.novell.com> References: <534293A90200007800006102@nat28.tlf.novell.com> <534295F50200007800006152@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WYCBk-0003EG-Vh for xen-devel@lists.xenproject.org; Thu, 10 Apr 2014 10:26:33 +0000 In-Reply-To: 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: Kevin Tian Cc: xen-devel , Keir Fraser , Eddie Dong , Jun Nakajima , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 10.04.14 at 11:02, wrote: >> From: Jan Beulich >> Sent: Monday, April 07, 2014 6:12 PM >> >> Considering that >> - the workaround is expensive (iterating through the entire P2M space >> of a domain), >> - the planned elimination of the expensiveness (by propagating the type >> change step by step to the individual P2M leaves) wouldn't address >> the IOMMU side of things (as for it to obey to the changed >> permissions the adjustments must be pushed down immediately through >> the entire tree) >> - the proper solution (PHYSDEVOP_msix_prepare) should by now be >> implemented by all security conscious Dom0 kernels >> remove the workaround, killing eventual guests that would be known to >> become a security risk instead. >> > > above looks reasonable to me... but I'm not familiar with original security > issue on MSI. Could you give me a link to previous conversation? That'll be hard to locate, because it had been taking ages until we settled on a reasonable strategy and implemented all the pieces here and there. Hence perhaps it's best if you just looked at the respective commits: http://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=b5aadd4248d64249ed6d1f98659a3b35ca9e91bd http://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=4245d331e0e75de8d1bddbbb518f3a8ce6d0bb7e Jan