[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linux pin_user_pages_fast fails on Xen


  • To: Stefano Stabellini <stefano.stabellini@xxxxxxx>, "NK, JESHWANTHKUMAR (JESHWANTH KUMAR)" <JESHWANTHKUMAR.NK@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 14 Sep 2022 08:48:27 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MNPbNEW4AISYA80cv1dDTg7APdR8JQdtJuymlONKBrA=; b=bU+3BZ3NoV4KqirBUvIncYj/DqFioZp5Z0LboZiM1aAS3jHr1EDdSz5S+7l56P5W/CTZaUR4GTxsUWS2xIgs1YOCGbvrcZx5D93LTgJbr6ieFQAO9se7tIyXc52GOlWhl2ZefUxFzgvPllEfb72annELnrL8BCEHb+foH1bGPib3Zwi2dZTS7ZIWrYKerCno4gGcNd0YLQgqPK9jgyO3dM64jRHOUCvuiQ0EP/Y7x04yP+774o4aHl0lU6vvSE6mlZSaKvTDlI+bdI2ut4h7OkcUfaE1EHo8kKZqOTzrxUadHZBmohfjBsA89GbEcjwXmPz4lcG2T7goe2GElR/Jlw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ls87wXN1SGxWypdEX8bMwE7HM4mN/cQgJUTzG9+6q+diMQ1n0O78s/4y47pGMTTX6ZFCFvxMLu2tHpjFPFiEJqlzMJi/uXH10YNo7bp0SJzkm2fdJ5nPLWr+1ufw4BmoYqOdOECiEl93HmJ0Xi4+HNpHdzc863YdI2N3FuJ8z1ZxZ37lncBcVu9vJZIuzcDIRv3EF05k0q+QLKK6PdDVNQGXXB2qoTFmYRetrNGk+4wUfRd0RTxJcgm3AdOJigsHLm00IU0R1LFf0OGAwqvn3uhC2pgxNaLHR17exOxo1cLrxsdF1xRUB65qH2ZCJcxsFfzaxJtHTPzdwTNkRuRH3g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "boris.ostrovsky@xxxxxxxxxx" <boris.ostrovsky@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Rangasamy, Devaraj" <Devaraj.Rangasamy@xxxxxxx>, "Pandeshwara krishna, Mythri" <Mythri.Pandeshwarakrishna@xxxxxxx>, "SK, SivaSangeetha (Siva Sangeetha)" <SivaSangeetha.SK@xxxxxxx>, "Thomas, Rijo-john" <Rijo-john.Thomas@xxxxxxx>, "jgross@xxxxxxxx" <jgross@xxxxxxxx>
  • Delivery-date: Wed, 14 Sep 2022 06:48:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 14.09.2022 01:31, Stefano Stabellini wrote:
> The problem is that drivers/xen/privcmd.c:privcmd_mmap sets VM_IO |
> VM_PFNMAP, and either flag would cause check_vma_flags to return
> -EFAULT.
> 
> Do you know if it works if you remove VM_IO | VM_PFNMAP from
> privcmd_mmap?

My Linux MM knowledge is certainly rusty, but I don't think this can
work, at the very least not without further changes elsewhere. I did
look some at the specific use by the TEE subsystem, and it looks to
me as if their "shared memory" machinery simply isn't meant to be
used with non-local memory.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.