From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756850AbbAHP3f (ORCPT ); Thu, 8 Jan 2015 10:29:35 -0500 Received: from smtp.citrix.com ([66.165.176.89]:21312 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547AbbAHP26 (ORCPT ); Thu, 8 Jan 2015 10:28:58 -0500 X-IronPort-AV: E=Sophos;i="5.07,723,1413244800"; d="scan'208";a="212710933" From: David Vrabel To: Andrew Morton , CC: David Vrabel , , , Konrad Rzeszutek Wilk , Boris Ostrovsky Subject: [PATCHv1 0/2] mm: infrastructure for correctly handling foreign pages on Xen Date: Thu, 8 Jan 2015 15:28:42 +0000 Message-ID: <1420730924-22811-1-git-send-email-david.vrabel@citrix.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Content-Type: text/plain X-DLP: MIA1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two patches are the common parts of a larger Xen series[1] fixing several long-standing bugs the handling of foreign[2] pages in Xen guests. The first patch is required to fix get_user_pages[_fast]() with userspace space mappings of such foreign pages. Basically, pte_page() doesn't work so an alternate mechanism is needed to get the page from a VMA and address. By requiring mappings needing this method are 'special' this should not have an impact on the common use cases. The second patch isn't essential but helps with readability of the resulting user of the page flag. For further background reading see: http://xenbits.xen.org/people/dvrabel/grant-improvements-C.pdf David [1] http://lists.xen.org/archives/html/xen-devel/2015-01/msg00326.html [2] Another guest's page temporarily granted to this guest.