From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fg7ZT-0005ph-Es for qemu-devel@nongnu.org; Thu, 19 Jul 2018 07:58:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fg7ZP-0003xL-8t for qemu-devel@nongnu.org; Thu, 19 Jul 2018 07:58:11 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54360 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fg7ZP-0003ww-1S for qemu-devel@nongnu.org; Thu, 19 Jul 2018 07:58:07 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 72AE172622 for ; Thu, 19 Jul 2018 11:58:06 +0000 (UTC) References: <20180717120414.5852-1-quintela@redhat.com> <87601dztj3.fsf@secure.mitica> <2767a97a-006d-46cd-ce16-7cfedc93ef29@redhat.com> <20180719134522.5de53f8f.cohuck@redhat.com> From: Thomas Huth Message-ID: <5f6e1882-93ff-717b-5a00-24b36c7df432@redhat.com> Date: Thu, 19 Jul 2018 13:58:02 +0200 MIME-Version: 1.0 In-Reply-To: <20180719134522.5de53f8f.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 00/14] More patches to disable stuff List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: quintela@redhat.com, lvivier@redhat.com, qemu-devel@nongnu.org, peterx@redhat.com, dgilbert@redhat.com On 19.07.2018 13:45, Cornelia Huck wrote: > On Thu, 19 Jul 2018 13:06:59 +0200 > Thomas Huth wrote: > >> On 17.07.2018 19:00, Juan Quintela wrote: > >>> So far so good, but look at virtio-pci.c: >>> >>> static void virtio_rng_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp) >>> { >>> ... >>> } >>> >>> static void virtio_rng_pci_class_init(ObjectClass *klass, void *data) >>> { >>> .... >>> } >>> >>> static void virtio_rng_initfn(Object *obj) >>> { >>> ... >>> } >>> >>> static const TypeInfo virtio_rng_pci_info = { >>> .name = TYPE_VIRTIO_RNG_PCI, >>> .parent = TYPE_VIRTIO_PCI, >>> .instance_size = sizeof(VirtIORngPCI), >>> .instance_init = virtio_rng_initfn, >>> .class_init = virtio_rng_pci_class_init, >>> }; >>> >>> static void virtio_pci_register_types(void) >>> { >>> type_register_static(&virtio_rng_pci_info); >>> ... >>> } >>> >>> See, we have defined the device "virtio-rng-pci", but there is no >>> implementation. WHen I run device-intronspection-test on that qemu with >>> CONFIG_VIRTIO_RNG, it fails to run. If we can agree that something is >>> wrong, then we can search for a solution. >> >> I agree with you that the current situation with virtio-pci. c is bad. I >> think we should split it up into individual files instead >> (virtio-pci-rng.c etc.). > > We should then do the same thing for virtio-ccw as well. Yes. I can do that if you like. Thomas