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

Re: [PATCH v3 05/11] tools/foreignmem: Support querying the size of a resource


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Mon, 11 Jan 2021 16:54:00 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.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-SenderADCheck; bh=qw04JksdwfVOt54kfZ+MsW10b2wmLmGYgPdR2s9bAgo=; b=b573lk0fVEEw+yaG5hxnHNKxLfOvWDhqtVINpPFVePwMorGKqce8jetAuWLiLBykR+NiFEfppYUP0TwO4laJIPDxNx9QbXensLNMQPxlU8uAL5NCyBh2FfQLMSwxSpHDMcL/lIddMxE5wMm/PxZSENvcjgWi1ljpKDyPaRaD1/XbKzvaF+CuHYAc7cQS1yJmNLUffWf61IzoMuMqQM3rxR4Ww7Qs6Il80ynPP5A3pJumKn6uZXiScHKd/BXOZdVe47iGkyEvK/pW1mFcoqno8xeUmTrveTXG+cI7cWTacvxRWXm72id0880TVZDzoDr/zIZaP6wl2vTtSy5Y4uvasQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dCWmJewluCm7frydy+HNCy0RxOGONM9yX83sP9jp7wD3O1PU69yAtL0rLYXxOmCIDb3DKNj0takS+Mr8wIlQXCvyFK0cVXc3AMb8ndZbMEBJAwoHQkO0geRjxKUxFbUi9LKP5Xxcr+u+13X2WkChgCnf1THZH5YRhSHT1I3LuKl9UQ60agfJbScIorx9D9my55HG9WpXWNAOFBBhJAwT41s53TEKCM6dgODOEHpoeyVy5lL09ZQ9JJSPvoH1QaeBIVxI6fAIAnq2itb+HnUjZDqb+K7B/domHMaluFq59MnugLjQ22ABXBOTVoW7pJ652ZSustLKaydA06qi5X1HHw==
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <amc96@xxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Paul Durrant <paul@xxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Michał Leszczyński <michal.leszczynski@xxxxxxx>, Hubert Jasudowicz <hubert.jasudowicz@xxxxxxx>, Tamas K Lengyel <tamas@xxxxxxxxxxxxx>
  • Delivery-date: Mon, 11 Jan 2021 15:54:17 +0000
  • Ironport-sdr: NSofXCeq8HvvIsRmIRPGxEzNdZoq9oOOvZ5wfdBD8Hi+Gz7E3325qMMwSTgr2WTDmK1DQW9HBx I/S4dSyNTaoRqHWKA9v2J39x+SB6eACw9MclTTow4//Ln/Cl0BmB8Kv8mgBab1KButLNUXWn/S JGRfbNEcUc3QyKVkXZCaz6+Kbx5BvYpADQYCnrvbfU5DutfiEaYfQO2YpSOGAiGBje9rpt7rDz azBZORthS7pJt+gsw/0PJzLo4LvSalVjJ3Vln7aqdbunXpg9LHv4t7dmecgoP9dXaQL8Xqdksi JaA=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Mon, Jan 11, 2021 at 03:26:57PM +0000, Andrew Cooper wrote:
> With the Xen side of this interface fixed to return real sizes, userspace
> needs to be able to make the query.
> 
> Introduce xenforeignmemory_resource_size() for the purpose, bumping the
> library minor version.
> 
> Update both Linux and FreeBSD's osdep_xenforeignmemory_map_resource() to
> understand size requests, skip the mmap() operation, and copy back the
> nr_frames field.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks, Roger.



 


Rackspace

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