From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH RFC] fixup! virtio: convert to use DMA api Date: Tue, 19 Apr 2016 20:49:48 +0300 Message-ID: <20160419204907-mutt-send-email-mst@redhat.com> References: <1460994701.3765.23.camel@infradead.org> <20160418190203-mutt-send-email-mst@redhat.com> <1461004173.3765.73.camel@infradead.org> <20160419130732-mutt-send-email-mst@redhat.com> <20160419190520-mutt-send-email-mst@redhat.com> <20160419191914-mutt-send-email-mst@redhat.com> <1461083204.20056.8.camel@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Kevin Wolf , Wei Liu , Andy Lutomirski , qemu-block@nongnu.org, Christian Borntraeger , Jason Wang , "linux-kernel@vger.kernel.org" , peterx@redhat.com, "qemu-devel@nongnu.org Developers" , Amit Shah , Alex Williamson , Stefan Hajnoczi , kvm list , Cornelia Huck , Paolo Bonzini , Andy Lutomirski , Linux Virtualization To: David Woodhouse Return-path: Content-Disposition: inline In-Reply-To: <1461083204.20056.8.camel@infradead.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-block-bounces+gceqb-qemu-block=m.gmane.org@nongnu.org Sender: "Qemu-block" List-Id: kvm.vger.kernel.org On Tue, Apr 19, 2016 at 12:26:44PM -0400, David Woodhouse wrote: > On Tue, 2016-04-19 at 19:20 +0300, Michael S. Tsirkin wrote: > >=20 > > > I thought that PLATFORM served that purpose.=A0 Woudn't the host > > > advertise PLATFORM support and, if the guest doesn't ack it, the ho= st > > > device would skip translation?=A0 Or is that problematic for vfio? > >=20 > > Exactly that's problematic for security. > > You can't allow guest driver to decide whether device skips security. >=20 > Right. Because fundamentally, this *isn't* a property of the endpoint > device, and doesn't live in virtio itself. >=20 > It's a property of the platform IOMMU, and lives there. It's a property of the hypervisor virtio implementation, and lives there. --=20 MST