From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N0Xr0-0004lF-Kf for qemu-devel@nongnu.org; Wed, 21 Oct 2009 05:51:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N0Xqv-0004hX-8y for qemu-devel@nongnu.org; Wed, 21 Oct 2009 05:51:37 -0400 Received: from [199.232.76.173] (port=44236 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0Xqu-0004hM-T6 for qemu-devel@nongnu.org; Wed, 21 Oct 2009 05:51:33 -0400 Received: from mail-fx0-f211.google.com ([209.85.220.211]:61662) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N0Xqu-0004Vk-EE for qemu-devel@nongnu.org; Wed, 21 Oct 2009 05:51:32 -0400 Received: by fxm7 with SMTP id 7so7121099fxm.34 for ; Wed, 21 Oct 2009 02:51:30 -0700 (PDT) Message-ID: <4ADED9A0.3000605@gmail.com> Date: Wed, 21 Oct 2009 11:51:28 +0200 From: =?ISO-8859-1?Q?M=E0rius_Mont=F3n?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020405040600020403040606" Subject: [Qemu-devel] PCI address question List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------020405040600020403040606 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Hello, For my PCI device to QEMU, I need the real address the PCI bus is using to access my device. For a IO BAR (PCI_ADDRESS_SPACE_IO), I receive the real address (like 0xc200 or similar), but when registering a PCI_ADDRESS_SPACE_MEM I only receive the offset to the BAR. How I can receive or obtaint the real address on each access to my device? Cjeers, Màrius --------------020405040600020403040606 Content-Type: text/x-vcard; charset=utf-8; name="marius_monton.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="marius_monton.vcf" begin:vcard fn;quoted-printable:M=C3=A0rius Mont=C3=B3n n;quoted-printable;quoted-printable:Mont=C3=B3n;M=C3=A0rius email;internet:marius.monton@gmail.com tel;cell:+34617738203 version:2.1 end:vcard --------------020405040600020403040606--