Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756270Ab0KCSRg (ORCPT ); Wed, 3 Nov 2010 14:17:36 -0400 Received: from mail-iw0-f174.google.com ([209.85.214.174]:47949 "EHLO mail-iw0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753458Ab0KCSRf (ORCPT ); Wed, 3 Nov 2010 14:17:35 -0400 Message-ID: <4CD1A73B.2010406@codemonkey.ws> Date: Wed, 03 Nov 2010 13:17:31 -0500 From: Anthony Liguori User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10 MIME-Version: 1.0 To: Ian Molton CC: Alon Levy , QEMU Developers , linux-kernel@vger.kernel.org, virtualization@lists.osdl.org, Avi Kivity , virtualization@lists.linux-foundation.org, Rusty Russell Subject: Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport References: <1097264455.965471288612409433.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> <4CCEC090.3050009@codemonkey.ws> <4CD1A406.3090909@collabora.co.uk> In-Reply-To: <4CD1A406.3090909@collabora.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2278 Lines: 55 On 11/03/2010 01:03 PM, Ian Molton wrote: > > The virtio driver enfoces the PID field and understands the packet > format used. Its better than using serial. Its also just one driver - > which doesnt have any special interdependencies and can be extended or > got rid of in future if and when better things come along. Why is it better than using virtio-serial? > >> In the very, very short term, I think an external backend to QEMU also >> makes a lot of sense because that's something that Just Works today. > > Whos written that? The 2007 patch I've been working on and updating > simply fails to work altogether without huge alterations on current qemu. > > My current patch touches a tiny part of the qemu sources. It works today. But it's not at all mergable in the current form. If you want to do the work of getting it into a mergable state (cleaning up the coding style, moving it to hw/, etc.) than I'm willing to consider it. But I don't think a custom virtio transport is the right thing to do here. However, if you want something that Just Works with the least amount of code possible, just split it into a separate process and we can stick it in a contrib/ directory or something. > >> I >> think we can consider integrating it into QEMU (or at least simplifying >> the execution of the backend) but integrating into QEMU is going to >> require an awful lot of the existing code to be rewritten. Keeping it >> separate has the advantage of allowing something to Just Work as an >> interim solution as we wait for proper support in Spice. > > I dont know why you think integrating it into qemu is hard? I've > already done it. Adding a file that happens to compile as part of qemu even though it doesn't actually integrate with qemu in any meaningful way is not integrating. That's just build system manipulation. Regards, Anthony Liguori > I added one virtio driver and a seperate offscreen renderer. it > touches the qemu code in *one* place. There should be no need to > rewrite anything. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/