From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN30p-00021U-NF for qemu-devel@nongnu.org; Thu, 19 May 2011 09:11:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QN30o-0003Gs-KG for qemu-devel@nongnu.org; Thu, 19 May 2011 09:11:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QN30o-0003Gm-CL for qemu-devel@nongnu.org; Thu, 19 May 2011 09:11:34 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4JDBXuA028319 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 19 May 2011 09:11:33 -0400 Date: Thu, 19 May 2011 18:41:31 +0530 From: Amit Shah Message-ID: <20110519131131.GB13222@amit-x200.redhat.com> References: <1305805037-17752-1-git-send-email-armbru@redhat.com> <1305805037-17752-4-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1305805037-17752-4-git-send-email-armbru@redhat.com> 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 [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. Amit