From patchwork Mon Mar 27 10:51:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 9646419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F3EE7602BF for ; Mon, 27 Mar 2017 10:53:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC60028335 for ; Mon, 27 Mar 2017 10:53:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E12692837F; Mon, 27 Mar 2017 10:53:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6F32A28335 for ; Mon, 27 Mar 2017 10:53:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csSFF-0002EO-GM; Mon, 27 Mar 2017 10:51:29 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1csSFD-0002EA-AW for xen-devel@lists.xenproject.org; Mon, 27 Mar 2017 10:51:27 +0000 Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id 14/84-03705-EAEE8D85; Mon, 27 Mar 2017 10:51:26 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRWlGSWpSXmKPExsXitHSDve66dzc iDP7fYrX4vmUykwOjx+EPV1gCGKNYM/OS8isSWDP2fjnAWjCfs2LmuxnsDYz/2bsYOTkkBPwl Lk9dCmazCehITH16ibWLkYNDREBF4vZegy5GLg5mgfmMEusmdjGD1AgLBEmcOdUPVsMioCqx4 oMnSJhXwF1ixevlrBAj5STOH/8JVi4ENGb91FlsEDWCEidnPmEBsZkFJCQOvnjBPIGRexaS1C wkqQWMTKsYNYpTi8pSi3QNDfWSijLTM0pyEzNzdA0NjPVyU4uLE9NTcxKTivWS83M3MQJDgQE IdjCu/u10iFGSg0lJlPfD6RsRQnxJ+SmVGYnFGfFFpTmpxYcYZTg4lCR4X78FygkWpaanVqRl 5gCDEiYtwcGjJMJrBpLmLS5IzC3OTIdInWJUlBLn7QFJCIAkMkrz4NpgkXCJUVZKmJcR6BAhn oLUotzMElT5V4ziHIxKwrzWIFN4MvNK4Ka/AlrMBLT48HywxSWJCCmpBkaxzCLXN893+3xeEv kzRcHlRfXLgAMLqnlZPjhv3mh3/7nTbglZrerkt+W6D2eoi227Xy3heFz+8dWjv7IOd8u+en9 DSOm6RU7Mp/dLzr78VPTk8+I1//oqtm680C3yY7ML11dLrqrNE7d13A5bvNeksChw12kBvZmB nHNvh0W3fNvI9qv5Rf0LJZbijERDLeai4kQAGUBKF38CAAA= X-Env-Sender: prvs=252db12a3=Paul.Durrant@citrix.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1490611884!36760539!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 34629 invoked from network); 27 Mar 2017 10:51:25 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 27 Mar 2017 10:51:25 -0000 X-IronPort-AV: E=Sophos;i="5.36,231,1486425600"; d="scan'208";a="424849890" From: Paul Durrant To: Date: Mon, 27 Mar 2017 11:51:22 +0100 Message-ID: <1490611882-10053-1-git-send-email-paul.durrant@citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Cc: Wei Liu , Paul Durrant , Ian Jackson , Andrew Cooper Subject: [Xen-devel] [PATCH] tools/libxenforeignmemory: bind restrict operation to new version X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Commit 5823d6eb "add a call to restrict the handle" added a new function to the foreignmemory API. This API is considered stable and so the new function should be bound to a new version. This patch creates version 1.1 of the API, dependent on version 1.0, and binds the restrict call to version 1.1. Thus version 1.0 is as it was before the new function was added. Signed-off-by: Paul Durrant Acked-by: Wei Liu --- Cc: Ian Jackson Cc: Wei Liu Cc: Andrew Cooper --- tools/libs/foreignmemory/libxenforeignmemory.map | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/libs/foreignmemory/libxenforeignmemory.map b/tools/libs/foreignmemory/libxenforeignmemory.map index 5c9806c..41a8899 100644 --- a/tools/libs/foreignmemory/libxenforeignmemory.map +++ b/tools/libs/foreignmemory/libxenforeignmemory.map @@ -4,6 +4,9 @@ VERS_1.0 { xenforeignmemory_close; xenforeignmemory_map; xenforeignmemory_unmap; - xenforeignmemory_restrict; local: *; /* Do not expose anything by default */ }; +VERS_1.1 { + global: + xenforeignmemory_restrict; +} VERS_1.0;