From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mqtkx-0004I0-Nw for qemu-devel@nongnu.org; Thu, 24 Sep 2009 15:13:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mqtkt-0004Fk-3e for qemu-devel@nongnu.org; Thu, 24 Sep 2009 15:13:31 -0400 Received: from [199.232.76.173] (port=35638 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mqtks-0004Fe-Jj for qemu-devel@nongnu.org; Thu, 24 Sep 2009 15:13:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11494) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mqtks-0001rS-3E for qemu-devel@nongnu.org; Thu, 24 Sep 2009 15:13:26 -0400 Date: Thu, 24 Sep 2009 22:11:22 +0300 From: "Michael S. Tsirkin" Message-ID: <20090924191121.GB29419@redhat.com> References: <20090923200635.GA21246@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [PATCHv2] qemu: target library, use it in msix List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On Thu, Sep 24, 2009 at 08:50:11PM +0300, Blue Swirl wrote: > On Wed, Sep 23, 2009 at 11:06 PM, Michael S. Tsirkin w= rote: > > This creates target.c, which builds per-target, and makes it possible > > for devices to become target-independent. =A0Use it in msix, revertin= g > > part of 5e520a7d500ec2569d22d80f9ef4272a34cb3c80, as we no longer hav= e > > to pass target page around. >=20 > > +unsigned target_page_align(unsigned value) > > +{ > > + =A0 =A0 =A0 return TARGET_PAGE_ALIGN(value); > > +} >=20 > This must be: > target_phys_addr_t target_page_align(target_phys_addr_t value) what's the point then? It has to be target independent. Let's make it unsigned long long, should be good enough. > As this is not a clean revert anyway, please don't revert the part chan= ging > if (x) > y; > else > z; >=20 > to >=20 > if (x) { > y; > } else { > z; > } Did I mention I hate this style? But okay :). --=20 MST