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

Linux pin_user_pages_fast fails on Xen


  • To: <jgross@xxxxxxxx>, <boris.ostrovsky@xxxxxxxxxx>
  • From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Date: Thu, 8 Sep 2022 19:10:10 -0700
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=0RUWAM2TQ4oErXw3rVjXjU7ECP332ZKAJjKbAk3f5Q0=; b=FssLPhgzbuMWKspIAw5HDjMHLG+r/hUkXIbxs0k7A0oPIU+haOADL1+pdTYH2whUhpYtwh+zNEukcuofNMIRr2KfX3ADQPUdEeeVv0pIE1y17mVuXZQYSrPuEYV08ilDzdWZ2SV3LK63iY5I6yJNyPOlAtJWqJ+QuOI7x7aiPaqYXdTcwFgGFdsW/yBjoHqnuCBlWJ39cEHsw2bPe2AvRKLlWjf3FJldYkg3oL6LTXRCvrIl8cQwYAlluk0eJPxx+yxfBowRmFg8C/NfyURHPO5QyY1GJmLwOZrE8/f+FmvEx8pynDaBKiMDmads5ONnJVTEoRnNKRQutclNjdRZDg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TzlhSPmwp5B/enJjd1aWAXtZF6E5LSOhvAQSMZeCgbxoR4LftdWZb3TkpFknSVVIVseebkgLsA7Pv6I6OdTzz3QMgdIdXs4eCpS6gVU50nbEzUf1rh6A17urN1cgULFPg/F2W09P/qzm0C2+YWJ/YJSXurs1qA0t0JHB+11vEh91fElGOgyOhU3+SPF26YPK6oTBc0ni7m01HWZ0NczznTBltkPVlCyeSu1rnVXbcJO/PB61MFhu7wY+32F5NI3ZXr2L9BTT6p3IAFAe4q37uBPr+tOf6wB85C/H4UMKaTyuUj/SqXu7h+ju2c+6kkfWNq8IVdg+Ds/8l0jW0VKeLA==
  • Cc: <stefano.stabellini@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 09 Sep 2022 02:10:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Juergen,

A colleague is seeing a failure on x86 in Linux Dom0. The failure is
pin_user_pages_fast with addresses that correspond to foreign memory
pages:

- QEMU maps a domU address using dma_memory_map (xen_map_cache)
- QEMU calls an IOCTL to the TEE subsystem with the Virtual Address
  returned by dma_memory_map
- Linux tee_shm_register->pin_user_pages_fast Returns -14 - 
drivers/tee/tee_shm.c

Once upon a time it used to be the case that get_user_pages_fast would
fail on Xen because we didn't have a struct page corresponding to
foreign memory mappings. But that hasn't been the case for years now.

Any other ideas why it would fail?

Cheers,

Stefano



 


Rackspace

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