From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCHv3 RFC] virtio-pci: flexible configuration layout Date: Wed, 30 Nov 2011 10:10:22 +1030 Message-ID: <87pqgats49.fsf@rustcorp.com.au> References: <20111122183621.GA5235@redhat.com> <87hb1v1scp.fsf@rustcorp.com.au> <20111123084640.GE22734@redhat.com> <87ty5uxso3.fsf@rustcorp.com.au> <20111124070728.GH29994@redhat.com> <87vcq5t69c.fsf@rustcorp.com.au> <1322471731.3577.10.camel@lappy> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1322471731.3577.10.camel@lappy> 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 To: Sasha Levin Cc: Krishna Kumar , kvm@vger.kernel.org, Pawel Moll , "Michael S. Tsirkin" , Alexey Kardashevskiy , Wang Sheng-Hui , lkml - Kernel Mailing List , virtualization@lists.linux-foundation.org, Christian Borntraeger , Amit Shah List-Id: virtualization@lists.linuxfoundation.org On Mon, 28 Nov 2011 11:15:31 +0200, Sasha Levin wrote: > On Mon, 2011-11-28 at 11:25 +1030, Rusty Russell wrote: > > I'd like to see kvmtools remove support for legacy mode altogether, > > but they probably have existing users. > > While we can't simply remove it right away, instead of mixing our > implementation for both legacy and new spec in the same code we can > split the virtio-pci implementation into two: > > - virtio/virtio-pci-legacy.c > - virtio/virtio-pci.c > > At that point we can #ifdef the entire virtio-pci-legacy.c for now and > remove it at the same time legacy virtio-pci is removed from the kernel. Hmm, that might be neat, but we can't tell the driver core to try virtio-pci before virtio-pci-legacy, so we need detection code in both modules (and add a "force" flag to virtio-pci-legacy to tell it to accept the device even if it's not a legacy-only one). Then it should work... Cheers, Rusty.