From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Pau Monne Subject: [PATCH v4 0/4] Fix grant/foreign mappings with auto-translated guests Date: Wed, 4 Jun 2014 12:06:17 +0200 Message-ID: <1401876381-42977-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Ws85a-00086c-AQ for xen-devel@lists.xenproject.org; Wed, 04 Jun 2014 10:06:34 +0000 Received: from gateway-cbg.eng.citrite.net ([10.80.16.17] helo=localhost.localdomain) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1Ws85W-0002A5-IL for xen-devel@lists.xenproject.org; Wed, 04 Jun 2014 11:06:30 +0100 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org This series adds proper IOMMU entries when mapping foreign memory (either grants or foreign pages) inside of auto-translated guests when the p2m is not shared between HAP and IOMMUs, and disables p2m sharing when running on AMD hardware. In order for the guest to know if it's safe to use grant mapped pages for IO with hardware devices a new xen cpuid feature is introduced in the last patch. Thanks for the review, Roger.