Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12B89C4320E for ; Thu, 19 Aug 2021 18:49:28 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1BEB61042 for ; Thu, 19 Aug 2021 18:49:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D1BEB61042 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=cs.pub.ro Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.169064.308815 (Exim 4.92) (envelope-from ) id 1mGn6E-0000ew-AA; Thu, 19 Aug 2021 18:49:10 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 169064.308815; Thu, 19 Aug 2021 18:49:10 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mGn6E-0000ep-5c; Thu, 19 Aug 2021 18:49:10 +0000 Received: by outflank-mailman (input) for mailman id 169064; Thu, 19 Aug 2021 18:49:09 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mGn6D-0000ee-0I for xen-devel@lists.xenproject.org; Thu, 19 Aug 2021 18:49:09 +0000 Received: from mx.upb.ro (unknown [141.85.13.210]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 21538bc1-011e-11ec-a652-12813bfff9fa; Thu, 19 Aug 2021 18:49:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx.upb.ro (Postfix) with ESMTP id 7C694B5601CB; Thu, 19 Aug 2021 21:49:06 +0300 (EEST) Received: from mx.upb.ro ([127.0.0.1]) by localhost (mx.upb.ro [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id vR5X3jCQjZze; Thu, 19 Aug 2021 21:49:04 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by mx.upb.ro (Postfix) with ESMTP id 6D56FB5603BC; Thu, 19 Aug 2021 21:34:02 +0300 (EEST) Received: from mx.upb.ro ([127.0.0.1]) by localhost (mx.upb.ro [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id MLGuf4FYdmuI; Thu, 19 Aug 2021 21:34:02 +0300 (EEST) Received: from localhost.localdomain (unknown [86.121.144.181]) by mx.upb.ro (Postfix) with ESMTPSA id 75E72B560300; Thu, 19 Aug 2021 20:50:16 +0300 (EEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 21538bc1-011e-11ec-a652-12813bfff9fa X-Virus-Scanned: amavisd-new at upb.ro From: Costin Lupu To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu , Juergen Gross Subject: [PATCH v2 0/4] Introduce XEN_PAGE_* definitions for mapping guests memory Date: Thu, 19 Aug 2021 20:50:08 +0300 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This series tries to fix a side-effect introduced by commits 0dbb4be7 and d1b32abd which added a dependency to xenctrl for foreignmemory and gnntab libraries library only because they needed to use the XC_PAGE_* values. These changes introduce the XEN_PAGE_* definitions that will be used by a= ny toolstack component that doesn't need a dependency to xenctrl library. Changes since v1: - Use same page definitions for both x86_64 and ARM (i.e. a single page.h= file) - Introduce xen_mk_long() Costin Lupu (4): public: Add page related definitions for accessing guests memory libs/ctrl: Use Xen values for XC_PAGE_* definitions libs/foreignmemory: Use XEN_PAGE_* definitions libs/gnttab: Use XEN_PAGE_* definitions tools/include/xenctrl.h | 7 +++--- tools/libs/foreignmemory/core.c | 2 +- tools/libs/foreignmemory/freebsd.c | 10 ++++----- tools/libs/foreignmemory/linux.c | 18 +++++++-------- tools/libs/foreignmemory/minios.c | 10 +-------- tools/libs/foreignmemory/netbsd.c | 10 ++++----- tools/libs/foreignmemory/private.h | 2 +- tools/libs/foreignmemory/solaris.c | 6 ++--- tools/libs/gnttab/freebsd.c | 20 ++++++++--------- tools/libs/gnttab/linux.c | 20 ++++++++--------- tools/libs/gnttab/netbsd.c | 20 ++++++++--------- xen/include/public/page.h | 36 ++++++++++++++++++++++++++++++ xen/include/public/xen.h | 3 +++ 13 files changed, 98 insertions(+), 66 deletions(-) create mode 100644 xen/include/public/page.h --=20 2.20.1