From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msfkw-0004gl-DX for qemu-devel@nongnu.org; Tue, 29 Sep 2009 12:40:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Msfkr-0004ZW-MF for qemu-devel@nongnu.org; Tue, 29 Sep 2009 12:40:49 -0400 Received: from [199.232.76.173] (port=51782 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msfkr-0004Yu-Bh for qemu-devel@nongnu.org; Tue, 29 Sep 2009 12:40:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8236) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Msfkq-0005n1-BD for qemu-devel@nongnu.org; Tue, 29 Sep 2009 12:40:44 -0400 Date: Tue, 29 Sep 2009 18:38:43 +0200 From: "Michael S. Tsirkin" Subject: Re: [Qemu-devel] Re: [PATCHv2] qemu: target library, use it in msix Message-ID: <20090929163843.GB14044@redhat.com> References: <4ABF585D.7000201@redhat.com> <20090927140841.GA24769@redhat.com> <4ABF7359.8050404@redhat.com> <20090927142129.GA24851@redhat.com> <20090927142422.GB24851@redhat.com> <20090929145006.GA3301@redhat.com> <20090929155756.GA13666@redhat.com> <4AC23526.7080803@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AC23526.7080803@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Blue Swirl , qemu-devel@nongnu.org On Tue, Sep 29, 2009 at 06:26:14PM +0200, Avi Kivity wrote: > On 09/29/2009 05:57 PM, Michael S. Tsirkin wrote: >> >>> There is no such requirement anymore (since r2868 in 2007), devices >>> can register regions of arbitrary size and multiple devices can share >>> a page. >>> >> Why does the comment on top of cpu_register_physical_memory_offset say >> otherwise then? Also, this function seems to call kvm_set_phys_mem, >> which also, apparently, assumes target page alignment. >> > > That's only for RAM, which the msix area isn't. OK, looks like things should just work defining MSIX_PAGE_SIZE to 0x1000 then. Unsurprisingly, this works fine on intel here. > -- > error compiling committee.c: too many arguments to function