From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN3tn-0003eP-UB for qemu-devel@nongnu.org; Thu, 19 May 2011 10:08:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QN3tm-0004D0-V6 for qemu-devel@nongnu.org; Thu, 19 May 2011 10:08:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN3tm-0004Co-Nc for qemu-devel@nongnu.org; Thu, 19 May 2011 10:08:22 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4JE8MYQ014054 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 19 May 2011 10:08:22 -0400 Date: Thu, 19 May 2011 19:38:19 +0530 From: Amit Shah Message-ID: <20110519140819.GD28056@amit-x200.redhat.com> References: <1305805037-17752-1-git-send-email-armbru@redhat.com> <1305805037-17752-4-git-send-email-armbru@redhat.com> <20110519131131.GB13222@amit-x200.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 3/4] virtio-serial: Turn props any virtio-serial-bus device must have into bus props List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: alevy@redhat.com, qemu-devel@nongnu.org, kraxel@redhat.com On (Thu) 19 May 2011 [16:05:39], Markus Armbruster wrote: > Amit Shah writes: > > > On (Thu) 19 May 2011 [13:37:16], Markus Armbruster wrote: > >> diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c > >> index bd3121e..a7d6b2b 100644 > >> --- a/hw/virtio-serial-bus.c > >> +++ b/hw/virtio-serial-bus.c > >> @@ -642,6 +642,11 @@ static struct BusInfo virtser_bus_info = { > >> .name = "virtio-serial-bus", > >> .size = sizeof(VirtIOSerialBus), > >> .print_dev = virtser_bus_dev_print, > >> + .props = (Property[]) { > >> + DEFINE_PROP_UINT32("nr", VirtIOSerialPort, id, VIRTIO_CONSOLE_BAD_ID), > >> + DEFINE_PROP_STRING("name", VirtIOSerialPort, name), > >> + DEFINE_PROP_END_OF_LIST() > >> + } > > > > 'name' isn't a must-have for all devices, but this is change OK. > > The property is a must have, even though its value may remain null. > Correct? Ah; must have for the device (ie qdev purposes)? Yes. It's not a must-have for guest-host communication, that's what I meant. Amit