From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:54433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghuiX-0000jn-Er for qemu-devel@nongnu.org; Fri, 11 Jan 2019 06:11:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghuiW-0003YY-P6 for qemu-devel@nongnu.org; Fri, 11 Jan 2019 06:11:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46746) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ghuiW-0003Vd-JN for qemu-devel@nongnu.org; Fri, 11 Jan 2019 06:11:12 -0500 Date: Fri, 11 Jan 2019 12:04:33 +0100 From: Cornelia Huck Message-ID: <20190111120433.5685f2b1.cohuck@redhat.com> In-Reply-To: <20190110180458.18762-3-ehabkost@redhat.com> References: <20190110180458.18762-1-ehabkost@redhat.com> <20190110180458.18762-3-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 2/2] virtio: Make disable-legacy/disable-modern compat properties optional List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Thomas Huth , Marcel Apfelbaum , "Michael S. Tsirkin" , =?UTF-8?B?TWFyYy1BbmRyw6k=?= Lureau , "Dr. David Alan Gilbert" On Thu, 10 Jan 2019 16:04:58 -0200 Eduardo Habkost wrote: > The disable-legacy and disable-modern properties apply only to > some virtio-pci devices. Make those properties optional. > > This fixes the crash introduced by commit f6e501a28ef9 ("virtio: Provide > version-specific variants of virtio PCI devices"): > > $ qemu-system-x86_64 -machine pc-i440fx-2.6 \ > -device virtio-net-pci-non-transitional > Unexpected error in object_property_find() at qom/object.c:1092: > qemu-system-x86_64: -device virtio-net-pci-non-transitional: can't apply \ > global virtio-pci.disable-modern=on: Property '.disable-modern' not found > Aborted (core dumped) > > Reported-by: Thomas Huth > Fixes: f6e501a28ef9 ("virtio: Provide version-specific variants of virtio PCI devices") > Signed-off-by: Eduardo Habkost > --- > hw/core/machine.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Cornelia Huck