This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] xen public: make mmuext_op's vcpumask fie

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xen public: make mmuext_op's vcpumask field const
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 15 May 2009 11:05:23 -0700
Delivery-date: Fri, 15 May 2009 11:05:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1242312364 -3600
# Node ID 3bac2fcfbafc16714ea301beb6a6cbe70692491e
# Parent  7d552e56d105786838ac027f3625486c9c2ea449
xen public: make mmuext_op's vcpumask field const

Linux started to pass around pointers to 'const cpumask_t' a while ago,
and passing such a pointer to set_xen_guest_handle() requires that the
field be a handle for a constant type in order to avoid compiler

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
 xen/include/public/xen.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 7d552e56d105 -r 3bac2fcfbafc xen/include/public/xen.h
--- a/xen/include/public/xen.h  Wed May 13 10:39:44 2009 +0100
+++ b/xen/include/public/xen.h  Thu May 14 15:46:04 2009 +0100
@@ -272,9 +272,9 @@ struct mmuext_op {
         unsigned int nr_ents;
 #if __XEN_INTERFACE_VERSION__ >= 0x00030205
-        XEN_GUEST_HANDLE(void) vcpumask;
+        XEN_GUEST_HANDLE(const_void) vcpumask;
-        void *vcpumask;
+        const void *vcpumask;
         /* COPY_PAGE */
         xen_pfn_t src_mfn;

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xen public: make mmuext_op's vcpumask field const, Xen patchbot-unstable <=