From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753545AbcBAVYP (ORCPT ); Mon, 1 Feb 2016 16:24:15 -0500 Received: from smtp.citrix.com ([66.165.176.89]:12464 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751722AbcBAVYN (ORCPT ); Mon, 1 Feb 2016 16:24:13 -0500 X-IronPort-AV: E=Sophos;i="5.22,381,1449532800"; d="scan'208";a="329001186" Date: Mon, 1 Feb 2016 21:22:57 +0000 From: Wei Liu To: Andy Lutomirski CC: Wei Liu , Andy Lutomirski , "Michael S. Tsirkin" , Cornelia Huck , "Joerg Roedel" , KVM , linux-s390 , Benjamin Herrenschmidt , Stefano Stabellini , Sebastian Ott , "linux-kernel@vger.kernel.org" , Christoph Hellwig , "Christian Borntraeger" , David Vrabel , "xen-devel@lists.xenproject.org" , , Paolo Bonzini , "Linux Virtualization" , David Woodhouse , "David S. Miller" , "Martin Schwidefsky" Subject: Re: [Xen-devel] [PATCH v5 00/10] virtio DMA API, yet again Message-ID: <20160201212257.GA9803@citrix.com> References: <20160201110057.GC10990@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2016 at 10:04:07AM -0800, Andy Lutomirski wrote: > On Mon, Feb 1, 2016 at 3:00 AM, Wei Liu wrote: > > Nice work, Andy. > > > > On Thu, Jan 28, 2016 at 06:31:13PM -0800, Andy Lutomirski wrote: > >> This switches virtio to use the DMA API on Xen and if requested by > >> module option. > >> > >> This fixes virtio on Xen, and it should break anything because it's > >> off by default on everything except Xen PV on x86. > >> > > > > What is your setup? My understanding is that virtio doesn't work on PV > > guest as of now because a suitable transport is missing. > > I cheated and ran Xen under KVM with the virtio-pci device provided by > QEMU. If you have virtme > (https://git.kernel.org/cgit/utils/kernel/virtme/virtme.git/), you can > do: > Thanks for the clarification. This is exactly what I needed to know. In that case virtio-pci transport is used. All virtio devices are exposed as PCI devices. Wei. > virtme-run --kdir=. --pwd --xen xen-4.5.2 --qemu-opts -smp 3 -m 1024 > > where xen-4.5.2 is the gunzipped Xen binary. (Other versions work, too.) > > --Andy From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [Xen-devel] [PATCH v5 00/10] virtio DMA API, yet again Date: Mon, 1 Feb 2016 21:22:57 +0000 Message-ID: <20160201212257.GA9803@citrix.com> References: <20160201110057.GC10990@citrix.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: Andy Lutomirski Cc: linux-s390 , sparclinux@vger.kernel.org, Joerg Roedel , Wei Liu , KVM , "Michael S. Tsirkin" , Benjamin Herrenschmidt , Stefano Stabellini , Sebastian Ott , "linux-kernel@vger.kernel.org" , Linux Virtualization , Christian Borntraeger , "David S. Miller" , David Vrabel , Andy Lutomirski , Paolo Bonzini , "xen-devel@lists.xenproject.org" , David Woodhouse , Christoph Hellwig , Martin Schwidefsky List-ID: On Mon, Feb 01, 2016 at 10:04:07AM -0800, Andy Lutomirski wrote: > On Mon, Feb 1, 2016 at 3:00 AM, Wei Liu wrote: > > Nice work, Andy. > > > > On Thu, Jan 28, 2016 at 06:31:13PM -0800, Andy Lutomirski wrote: > >> This switches virtio to use the DMA API on Xen and if requested by > >> module option. > >> > >> This fixes virtio on Xen, and it should break anything because it's > >> off by default on everything except Xen PV on x86. > >> > > > > What is your setup? My understanding is that virtio doesn't work on PV > > guest as of now because a suitable transport is missing. > > I cheated and ran Xen under KVM with the virtio-pci device provided by > QEMU. If you have virtme > (https://git.kernel.org/cgit/utils/kernel/virtme/virtme.git/), you can > do: > Thanks for the clarification. This is exactly what I needed to know. In that case virtio-pci transport is used. All virtio devices are exposed as PCI devices. Wei. > virtme-run --kdir=. --pwd --xen xen-4.5.2 --qemu-opts -smp 3 -m 1024 > > where xen-4.5.2 is the gunzipped Xen binary. (Other versions work, too.) > > --Andy From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Date: Mon, 01 Feb 2016 21:22:57 +0000 Subject: Re: [Xen-devel] [PATCH v5 00/10] virtio DMA API, yet again Message-Id: <20160201212257.GA9803@citrix.com> List-Id: References: <20160201110057.GC10990@citrix.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andy Lutomirski Cc: linux-s390 , sparclinux@vger.kernel.org, Joerg Roedel , Wei Liu , KVM , "Michael S. Tsirkin" , Benjamin Herrenschmidt , Stefano Stabellini , Sebastian Ott , "linux-kernel@vger.kernel.org" , Linux Virtualization , Christian Borntraeger , "David S. Miller" , David Vrabel , Andy Lutomirski , Paolo Bonzini , "xen-devel@lists.xenproject.org" , David Woodhouse , Christoph Hellwig , Martin Schwidefsky On Mon, Feb 01, 2016 at 10:04:07AM -0800, Andy Lutomirski wrote: > On Mon, Feb 1, 2016 at 3:00 AM, Wei Liu wrote: > > Nice work, Andy. > > > > On Thu, Jan 28, 2016 at 06:31:13PM -0800, Andy Lutomirski wrote: > >> This switches virtio to use the DMA API on Xen and if requested by > >> module option. > >> > >> This fixes virtio on Xen, and it should break anything because it's > >> off by default on everything except Xen PV on x86. > >> > > > > What is your setup? My understanding is that virtio doesn't work on PV > > guest as of now because a suitable transport is missing. > > I cheated and ran Xen under KVM with the virtio-pci device provided by > QEMU. If you have virtme > (https://git.kernel.org/cgit/utils/kernel/virtme/virtme.git/), you can > do: > Thanks for the clarification. This is exactly what I needed to know. In that case virtio-pci transport is used. All virtio devices are exposed as PCI devices. Wei. > virtme-run --kdir=. --pwd --xen xen-4.5.2 --qemu-opts -smp 3 -m 1024 > > where xen-4.5.2 is the gunzipped Xen binary. (Other versions work, too.) > > --Andy