From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] VT-d: Fix iommu map page for mmio pages Date: Sat, 27 Sep 2008 13:24:31 +0300 Message-ID: <48DE09DF.2050400@redhat.com> References: <0122C7C995D32147B66BF4F440D3016301BE2C10@pdsmsx415.ccr.corp.intel.com> <48DB6777.7070709@redhat.com> <0122C7C995D32147B66BF4F440D3016301C7D0EB@pdsmsx415.ccr.corp.intel.com> <48DB98FD.3000307@redhat.com> <0122C7C995D32147B66BF4F440D3016301C7D0FF@pdsmsx415.ccr.corp.intel.com> <48DBA40A.7030508@redhat.com> <20080925211423.GC6788@il.ibm.com> <48DC07DC.2010201@codemonkey.ws> <20080926235730.GE9118@il.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , kvm@vger.kernel.org, Amit Shah , "Kay, Allen M" , Ben-Ami Yassour1 To: Muli Ben-Yehuda Return-path: Received: from mx2.redhat.com ([66.187.237.31]:41505 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752005AbYI0KZ6 (ORCPT ); Sat, 27 Sep 2008 06:25:58 -0400 In-Reply-To: <20080926235730.GE9118@il.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: Muli Ben-Yehuda wrote: >> MMIO isn't just a register window. It may be an on-device buffer. >> > > Unlikely, but ok. > > It's unlikely in the same ways graphics cards are unlikely :) With a multi-card setup, perhaps it is even reasonable for one card to dma to another. > I strongly disagree. You are advocating something that is potentially > unsafe---for the sake of code simplicity?! I am advocating caution in > what we let an *untrusted* guest do. > Why would it be unsafe? -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.