Received: from eggs.gnu.org ([208.118.235.92]:43156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnqTh-0002lV-W6 for qemu-devel@nongnu.org; Wed, 26 Dec 2012 07:53:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TnqTW-00084I-JZ for qemu-devel@nongnu.org; Wed, 26 Dec 2012 07:52:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnqTW-00083d-Bx for qemu-devel@nongnu.org; Wed, 26 Dec 2012 07:52:46 -0500 Date: Wed, 26 Dec 2012 10:51:46 -0200 From: Eduardo Habkost Message-ID: <20121226125146.GA3331@otherpad.lan.raisama.net> References: <1355175187-11470-1-git-send-email-imammedo@redhat.com> <87mwx4tsmq.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87mwx4tsmq.fsf@codemonkey.ws> Subject: Re: [Qemu-devel] [PATCH 0/2 v2] introduce visitor for parsing suffixed integer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Igor Mammedov , qemu-devel@nongnu.org, afaerber@suse.de, mdroth@linux.vnet.ibm.com On Sun, Dec 23, 2012 at 02:34:21PM -0600, Anthony Liguori wrote: > Igor Mammedov writes: > > > v2: > > * Naming changes: > > - s/visit_type_uint_suffixed_int/visit_type_suffixed_int/ > > - use 'suffix_factor' instead of 'unit' > > * Added documentation to visit_type_suffixed_int() > > * Fixed errp check. > > * Style fixes > > This is not how visitors are supposed to be used. > > Just treat tsc_freq as a string property and parse it in the setter. So, why visit_type_size() does exist? Should we work to eliminate it? If not, why is it different from a "frequency" type? -- Eduardo