Received: from eggs.gnu.org ([2001:4830:134:3::10]:52264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1broV4-0001Ni-MD for qemu-devel@nongnu.org; Wed, 05 Oct 2016 11:52:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1broV1-0002wx-Hy for qemu-devel@nongnu.org; Wed, 05 Oct 2016 11:52:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1broV1-0002wq-Ay for qemu-devel@nongnu.org; Wed, 05 Oct 2016 11:52:51 -0400 References: <20160930142003.53232-1-pasic@linux.vnet.ibm.com> <20160930142003.53232-2-pasic@linux.vnet.ibm.com> <2487d687-7fbe-43f4-b9c5-e03b26b2250d@redhat.com> <5b08c569-813b-d805-833a-210e9c8dc436@linux.vnet.ibm.com> <49f37536-0fa7-a38b-a3fa-7b3050001658@redhat.com> <57b04738-7e95-a8c5-d974-0386cbff1419@redhat.com> <20161005142902.GB11921@work-vm> From: Paolo Bonzini Message-ID: <68ee3bbe-ef83-ce4b-4546-ea27fc2e2ea0@redhat.com> Date: Wed, 5 Oct 2016 17:52:45 +0200 MIME-Version: 1.0 In-Reply-To: <20161005142902.GB11921@work-vm> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 01/12] virtio: add VIRTIO_DEF_DEVICE_VMSD macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert" Cc: Halil Pasic , qemu-devel@nongnu.org, "Michael S . Tsirkin" , Gerd Hoffmann , Stefan Hajnoczi , Amit Shah , "Aneesh Kumar K . V" On 05/10/2016 16:29, Dr. David Alan Gilbert wrote: > The virtio-input conversion especially is nice and simple. > The only weird case is virtio-gpu, and well virtio-gpu is the one that's > odd here (compared to the rest of virtio). Though virtio-gpu would be the one that could become nicer without the macros. :) What I don't like about the macros is that they don't allow you to extend the VMStateDescription. However, if you agree with Halil your opinion counts more. Paolo > I'd say we take these macros (apart from anything minor) - I'd anticipate > they'd evolve slowly as we move more and more chunks to VMState.