From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161880AbbKTC5r (ORCPT ); Thu, 19 Nov 2015 21:57:47 -0500 Received: from gate.crashing.org ([63.228.1.57]:50017 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161124AbbKTC5p (ORCPT ); Thu, 19 Nov 2015 21:57:45 -0500 Message-ID: <1447988199.3016.2.camel@kernel.crashing.org> Subject: Re: [PATCH v3 0/3] virtio DMA API core stuff From: Benjamin Herrenschmidt To: David Woodhouse , Andy Lutomirski , "Michael S. Tsirkin" Cc: Christian Borntraeger , Paolo Bonzini , "linux-kernel@vger.kernel.org" , Martin Schwidefsky , Sebastian Ott , linux-s390 , Cornelia Huck , Joerg Roedel , Linux Virtualization , Christoph Hellwig , KVM Date: Fri, 20 Nov 2015 13:56:39 +1100 In-Reply-To: <1447976286.145626.122.camel@infradead.org> References: <20151119153821-mutt-send-email-mst@redhat.com> <1447976286.145626.122.camel@infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.1 (3.18.1-1.fc23) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2015-11-19 at 23:38 +0000, David Woodhouse wrote: > > I understand that POWER and other platforms don't currently have a > clean way to indicate that certain device don't have translation. And I > understand that we may end up with a *quirk* which ensures that the DMA > API does the right thing (i.e. nothing) in certain cases. > > But we should *NOT* be involving the virtio device drivers in that > quirk, in any way. And putting a feature bit in the virtio device > itself doesn't seem at all sane either. > > Bear in mind that qemu-system-x86_64 currently has the *same* problem > with assigned physical devices. It's claiming they're translated, and > they're not. It's not that clear but yeah ... as I mentioned, I can't find a way to do that quirk that won't break when we want to actually use the iommu...  Ben.