From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] [PATCH 04/11] qemu: helper routines for pci access. Date: Tue, 26 May 2009 09:41:52 +0300 Message-ID: <20090526064152.GH6856@redhat.com> References: <20090525122533.GE5046@redhat.com> <20090526023337.GF13076%yamahata@valinux.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paul Brook , Avi Kivity , qemu-devel@nongnu.org, Carsten Otte , kvm@vger.kernel.org, Rusty Russell , virtualization@lists.linux-foundation.org, Christian Borntraeger , Blue Swirl To: Isaku Yamahata Return-path: Received: from mx2.redhat.com ([66.187.237.31]:60678 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752579AbZEZGpj (ORCPT ); Tue, 26 May 2009 02:45:39 -0400 Content-Disposition: inline In-Reply-To: <20090526023337.GF13076%yamahata@valinux.co.jp> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, May 26, 2009 at 11:33:37AM +0900, Isaku Yamahata wrote: > On Mon, May 25, 2009 at 03:25:33PM +0300, Michael S. Tsirkin wrote: > > Add inline routines for convenient access to pci devices > > with correct (little) endianness. Will be used by MSI-X support. > > Just a minor comment. > How about to add pci_[sg]et_byte() for consistency? I don't see that it makes sense - pci_set_long(config, value) is shorter than *((uint32_t *)config) = cpu_to_le32(value), but single bytes don't have endianness, and *config = value is shorter. -- MST