From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH 0/3] virtio: Clean up scatterlists and use the DMA API Date: Wed, 27 Aug 2014 14:58:55 -0400 Message-ID: <20140827185855.GB6568@laptop.dumpdata.com> References: <20140827172716.GA5379@laptop.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org List-Archive: List-Post: To: Stefan Hajnoczi Cc: linux-s390 , "Michael S. Tsirkin" , Linux Virtualization , linux390@de.ibm.com, Andy Lutomirski , virtio-dev@lists.oasis-open.org List-ID: On Wed, Aug 27, 2014 at 07:10:20PM +0100, Stefan Hajnoczi wrote: > On Wed, Aug 27, 2014 at 6:27 PM, Konrad Rzeszutek Wilk > wrote: > > On Wed, Aug 27, 2014 at 07:46:46AM +0100, Stefan Hajnoczi wrote: > >> On Tue, Aug 26, 2014 at 10:16 PM, Andy Lutomirski wrote: > >> > There are two outstanding issues. virtio_net warns if DMA debugging > >> > is on because it does DMA from the stack. (The warning is correct.) > >> > This also is likely to do something unpleasant to s390. > >> > (Maintainers are cc'd -- I don't know what to do about it.) > >> > >> This changes the semantics of vring and breaks existing guests when > >> bus address != physical address. > > > > Isn't that what this is suppose to fix? Right now the semantics of the > > vring is that bus address == physical address. > > Today the assumption is that the device emulation code has access to > guest physical memory (no translation necessary). Right. > > Changing the semantics breaks today's guests. You need to make this > change in a way so that existing guests don't break. Well, the DMA API will preserve that semantic as under KVM it will return phys == bus. But that is a side-effect of the DMA API implementation preserving this semantic so I understand your point. > > Stefan