Received: from eggs.gnu.org ([2001:4830:134:3::10]:45875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrRJW-0008Cw-6i for qemu-devel@nongnu.org; Mon, 02 Jun 2014 08:26:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrRJN-0000qU-6R for qemu-devel@nongnu.org; Mon, 02 Jun 2014 08:26:06 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:58727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrRJM-0000qO-VY for qemu-devel@nongnu.org; Mon, 02 Jun 2014 08:25:57 -0400 Received: by mail-wi0-f177.google.com with SMTP id f8so4464341wiw.10 for ; Mon, 02 Jun 2014 05:25:56 -0700 (PDT) Date: Mon, 2 Jun 2014 14:25:52 +0200 From: Stefan Hajnoczi Message-ID: <20140602122552.GB3049@stefanha-thinkpad.redhat.com> References: <1401593596-8953-1-git-send-email-somlo@cmu.edu> <1401593596-8953-2-git-send-email-somlo@cmu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1401593596-8953-2-git-send-email-somlo@cmu.edu> Subject: Re: [Qemu-devel] [PATCH v3 1/3] e1000: allow command-line selection of card model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gabriel L. Somlo" Cc: peter.crosthwaite@xilinx.com, romain@dolbeau.org, mst@redhat.com, agraf@suse.de, qemu-devel@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com, afaerber@suse.de On Sat, May 31, 2014 at 11:33:14PM -0400, Gabriel L. Somlo wrote: > @@ -151,10 +141,21 @@ typedef struct E1000State_st { > uint32_t compat_flags; > } E1000State; > > -#define TYPE_E1000 "e1000" > +typedef struct E1000DeviceClass { The QOM type is called TYPE_E1000_BASE ("e1000-base"), please name this E1000BaseClass. The reasoning is the same as my previous request for consistent naming. Other QOM class users in hw/ also follow this pattern (type "X", class "XClass").