[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>
  • From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Date: Thu, 8 Sep 2022 19:11:05 -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=g6RoDuXfh3zKQAT52pkvRBxPVV82P0YYMDY+d6ouWTY=; b=cr0V4pRmj8Y9as9mBNJRcs1NiHDYEE8GFhzf1PUg6xI3HUvmAukRL12hacifc0nKCnjdxCHS4rZGmQ0Fl1qk+7KvS49wxL4+/lzcFA/c3tvq2BVJ+nb4aW2uZPpjE25A3co351b0p87oqxpB2uhNRAf6ULALaHcKs1ovMx+uMo/Fi225QsG8EVX99vnv4P9XzsM1RBTL9uK56QuCqIE7HBAi2sAUHJrqU1W+w+GnFdm68y/HokA9fg4eId4q1tOKqAqAZpgnP77jEBFjiNGg6+bD6/vhxa2NG/hXfgV5QHGYFEUvDMnG4OBMnJQUv9YXqAUPVCjplXpFUmGmN3immg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KHISOrPh2xSOWja/+UnueSoTr09/tOvznd3UX2PkoEJQ/xRgmhE1HX8hNXkpmgE7p6NgCGdMEWm8nlsI74CMfIslx5nWRQT9+JkjPD+6NPHERx8Y6QWLSSvQSr+ujrAyQETvwaWbPIfcFsNHmlIILn1BzUfqRPx7bYdMEL6LLEMwEBJ63hmGvSfr0Ecg1kfNPIvCClfhNx0T29PtlGoySzm7c9AHXHZxk38YVqrxnlPX6kTwGGRkxpP0w69Jn1yqjs74pLyYdiR9v5QVhbcBKHAv3DWhw1qqu3GGk/sTUCC+Gi5Vtzv88/OKTNRzhA3cwusnFqDMq7Exmwv6IyD7WQ==
  • Cc: <jgross@xxxxxxxx>, <boris.ostrovsky@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, <JESHWANTHKUMAR.NK@xxxxxxx>, <Devaraj.Rangasamy@xxxxxxx>, <Mythri.Pandeshwarakrishna@xxxxxxx>, <SivaSangeetha.SK@xxxxxxx>, <Rijo-john.Thomas@xxxxxxx>
  • Delivery-date: Fri, 09 Sep 2022 02:11:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Adding more people in CC

On Thu, 8 Sep 2022, Stefano Stabellini wrote:
> 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®.