Received: from eggs.gnu.org ([2001:4830:134:3::10]:41828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X44DL-0003x4-OZ for qemu-devel@nongnu.org; Mon, 07 Jul 2014 04:24:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X44DG-0002OX-KL for qemu-devel@nongnu.org; Mon, 07 Jul 2014 04:23:55 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:46867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X44DG-0002OO-Dm for qemu-devel@nongnu.org; Mon, 07 Jul 2014 04:23:50 -0400 Received: by mail-we0-f172.google.com with SMTP id u57so4000735wes.17 for ; Mon, 07 Jul 2014 01:23:49 -0700 (PDT) Date: Mon, 7 Jul 2014 10:23:46 +0200 From: Stefan Hajnoczi Message-ID: <20140707082346.GE7963@stefanha-thinkpad.redhat.com> References: <1404375987-29810-1-git-send-email-tamlokveer@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FN+gV9K+162wdwwF" Content-Disposition: inline In-Reply-To: <1404375987-29810-1-git-send-email-tamlokveer@gmail.com> Subject: Re: [Qemu-devel] [PATCH] ahci: map memory via device's address space instead of address_space_memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Le Tan Cc: kwolf@redhat.com, peter.maydell@linaro.org, mst@redhat.com, qemu-devel@nongnu.org, jan.kiszka@web.de, pbonzini@redhat.com, afaerber@suse.de --FN+gV9K+162wdwwF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 03, 2014 at 04:26:27PM +0800, Le Tan wrote: > In map_page() in hw/ide/ahci.c, replace cpu_physical_memory_map() and > cpu_physical_memory_unmap() with dma_memory_map() and dma_memory_unmap(), > because ahci devices should not access memory directly but via their addr= ess > space. Add an AddressSpace parameter to map_page(). In order to call > map_page(), we should pass the AHCIState.as as the AddressSpace argument. >=20 > Signed-off-by: Le Tan > --- > hw/ide/ahci.c | 21 +++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --FN+gV9K+162wdwwF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTulkSAAoJEJykq7OBq3PI+PcH/AiBCiePtW5Q4RJWELR6ITm/ oFs6PZeZaOQBIYlcm5zAYPy2F2dK41PRNzJqIm1toGgLjJu/Xz5Q5DorRDZnrTLE iTDRU9tPG961cSjAK2TsFhzrRnIq8tp19e4B5CCfrfOI59Q2q+UdiBzahROqpisX ARfpJItrdzT8hAGRlnSnD78VNgnyxsAQT+JSA99ABtMMSuRmHN0I40g8n+bPYhQc QFb8iO2/BB2AbyIXWHaioheJox5oIWXeTPMUVoobMHgjpmSUerZadiI/SV2/GxrA IODW++k6nFHQeQyFlhPWRn2LPWyuGH0W2R5NA0K++xT7lAwdpeM4ONxKLj5/eIg= =T3xD -----END PGP SIGNATURE----- --FN+gV9K+162wdwwF--