From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLMAA-0004e4-Qf for qemu-devel@nongnu.org; Wed, 23 May 2018 01:18:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLMA7-00088o-Ms for qemu-devel@nongnu.org; Wed, 23 May 2018 01:18:14 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60664 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 1fLMA7-00088g-IJ for qemu-devel@nongnu.org; Wed, 23 May 2018 01:18:11 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BE0E2401EF04 for ; Wed, 23 May 2018 05:18:10 +0000 (UTC) References: <20180522195038.25280-1-pbonzini@redhat.com> From: Thomas Huth Message-ID: <76154838-8b84-31d0-c1de-0d36c8259aa5@redhat.com> Date: Wed, 23 May 2018 07:18:08 +0200 MIME-Version: 1.0 In-Reply-To: <20180522195038.25280-1-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH RFC] hw: make virtio devices configurable via default-configs/ List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: ehabkost@redhat.com On 22.05.2018 21:50, Paolo Bonzini wrote: > This is only half of the work, because the proxy devices (virtio-*-pci, > virtio-*-ccw, etc.) are still included unconditionally. It is still a > move in the right direction. [...] > diff --git a/hw/virtio/Makefile.objs b/hw/virtio/Makefile.objs > index 765d363c1f..1b2799cfd8 100644 > --- a/hw/virtio/Makefile.objs > +++ b/hw/virtio/Makefile.objs > @@ -1,15 +1,17 @@ > ifeq ($(CONFIG_VIRTIO),y) > -common-obj-y +=3D virtio-rng.o > -common-obj-$(CONFIG_VIRTIO_PCI) +=3D virtio-pci.o > common-obj-y +=3D virtio-bus.o > -common-obj-y +=3D virtio-mmio.o > +obj-y +=3D virtio.o While you're at it, I think you could also remove the ifeq at the beginning of this file, and change the virtio-bus.o and virtio.o lines to use $(CONFIG_VIRTIO) instead of "y". But it's just a matter of taste, so either way: Reviewed-by: Thomas Huth