Received: from eggs.gnu.org ([2001:4830:134:3::10]:57449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEtb7-0006LF-5u for qemu-devel@nongnu.org; Mon, 20 Jun 2016 03:26:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEtb3-00080m-1P for qemu-devel@nongnu.org; Mon, 20 Jun 2016 03:26:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEtb2-00080h-Rl for qemu-devel@nongnu.org; Mon, 20 Jun 2016 03:26:12 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7AB028AE72 for ; Mon, 20 Jun 2016 07:26:12 +0000 (UTC) From: Markus Armbruster References: <1466023310-13221-1-git-send-email-armbru@redhat.com> <1466023310-13221-3-git-send-email-armbru@redhat.com> <20160619062442-mutt-send-email-mst@redhat.com> Date: Mon, 20 Jun 2016 09:26:10 +0200 In-Reply-To: <20160619062442-mutt-send-email-mst@redhat.com> (Michael S. Tsirkin's message of "Sun, 19 Jun 2016 06:25:19 +0300") Message-ID: <87twgocodp.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH RFC 2/4] range: Eliminate direct Range member access List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: pbonzini@redhat.com, qemu-devel@nongnu.org "Michael S. Tsirkin" writes: > On Wed, Jun 15, 2016 at 10:41:48PM +0200, Markus Armbruster wrote: >> Users of struct Range mess liberally with its members, which makes >> refactoring hard. Create a set of methods, and convert all users to >> call them instead of accessing members. The methods have carefully >> worded contracts, and use assertions to check them. >> >> To help with tracking down the places that access members of struct >> Range directly, hide the implementation of struct Range outside of >> range.c by trickery. The trickery will be dropped in the next commit. >> >> Signed-off-by: Markus Armbruster > > Reviewed-by: Michael S. Tsirkin Thanks! > I guess you want me to merge this because of the changes in pc and pci? Yes, please (whole series, once respun without the RFC).