From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] VT-d: Fix iommu map page for mmio pages Date: Thu, 25 Sep 2008 10:04:20 -0500 Message-ID: <48DBA874.4010307@codemonkey.ws> References: <0122C7C995D32147B66BF4F440D3016301BE2C10@pdsmsx415.ccr.corp.intel.com> <48DB6777.7070709@redhat.com> <0122C7C995D32147B66BF4F440D3016301C7D0EB@pdsmsx415.ccr.corp.intel.com> <48DB98FD.3000307@redhat.com> <0122C7C995D32147B66BF4F440D3016301C7D0FF@pdsmsx415.ccr.corp.intel.com> <48DBA40A.7030508@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Han, Weidong" , kvm@vger.kernel.org, Amit Shah , "Kay, Allen M" , benami@il.ibm.com To: Avi Kivity Return-path: Received: from mail-gx0-f16.google.com ([209.85.217.16]:38373 "EHLO mail-gx0-f16.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752736AbYIYPFV (ORCPT ); Thu, 25 Sep 2008 11:05:21 -0400 Received: by gxk9 with SMTP id 9so7102398gxk.13 for ; Thu, 25 Sep 2008 08:05:20 -0700 (PDT) In-Reply-To: <48DBA40A.7030508@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity wrote: > Han, Weidong wrote: >> Is it possible DMA into an mmio page? > > I don't see why not. Yeah, it is. I mentioned this a long time ago. We definitely need to map mmio pages into the VT-d mapping. Regards, Anthony Liguori >> If yes, we also need to map mmio >> pages, and is_mmio_pfn() check is not neccessary here. >> > > So we get simpler code as well. >