From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMXsG-0005DI-98 for qemu-devel@nongnu.org; Tue, 17 May 2011 23:56:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMXsE-0002p2-GK for qemu-devel@nongnu.org; Tue, 17 May 2011 23:56:40 -0400 Received: from ozlabs.org ([203.10.76.45]:57043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMXsE-0002oi-6c for qemu-devel@nongnu.org; Tue, 17 May 2011 23:56:38 -0400 Date: Wed, 18 May 2011 13:27:45 +1000 From: David Gibson Message-ID: <20110518032745.GB3015@yookeroo.fritz.box> References: <1305614826-1815-1-git-send-email-david@gibson.dropbear.id.au> <1305614826-1815-4-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 3/3] powerpc-virtio: virtio support introduced (block, network, serial, balloon, 9p-fs), both fullemu and power-kvm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "Michael S. Tsirkin" , Alexey Kardashevskiy , Rusty Russell , "qemu-devel@nongnu.org Developers" , virtualization@lists.linux-foundation.org, Paul Mackerras On Tue, May 17, 2011 at 09:06:41AM +0200, Alexander Graf wrote: > On 17.05.2011, at 08:47, David Gibson wrote: > > From: Alexey Kardashevskiy > > > > The recently added pseries machine does not currently support PCI > > emulation. For the (upcoming) kvm case, this is quite difficult to do > > because the preferred HV mode for the host kernel does not allow MMIO > > emulation (a hardware limitation). > > > > Therefore, to support virtio devices, we implement a new virtio setup > > protocol for PAPR guests. This is based loosely on the s390 and lguest > > methods, using the PAPR hcalls for the virtio primitive operations, > > and the PAPR device tree to advertise the virtio device resources to the > > guest. > > > > This patch includes support for the virtio block, network, serial, and > > balloon devices, and the 9p filesystem. [snip] > > Before including such a patch, we should really discuss the desired > interface for virtio on sPAPR. I personally would prefer if we could > have a generic MMIO hypercall that the guest issues, so that we can > simply use virtio-pci on sPAPR (and all the other PCI hardware). Hrm. I'm not thrilled at that idea. We would still need to advertise in the device tree to use the MMIO hypercall, instead of going direct - since we will be going direct for things like passthrough PCI devices under KVM. > But at the end of the day, the steps should be as follows: > > 1) Discuss this on the virtualization ML Ok, which list do you mean here? > 2) Send patches for the virtio documentation so the protocol has a spec (which we're lacking for s390 still) > 3) Implement Linux side, upstream it I don't see why the Linux guest side needs to go before the qemu side. You can't use one without the other, so there's no clear order. > 4) Upstream Qemu side > > Since I haven't seen 1-3, I'd like to defer this patch until the > other points are good :) Hmm. I'll see what I can do. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson