WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Make cpu param to continue_hypercall_on_c

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Make cpu param to continue_hypercall_on_cpu() an unsigned integer.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 16 Apr 2010 21:50:16 -0700
Delivery-date: Sun, 18 Apr 2010 11:04:23 -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 1271318685 -3600
# Node ID 93ac55cf3e40886c449008094f76dfaf906a505f
# Parent  25a2a8686b1ba914f743047bccac492f7e9ed521
Make cpu param to continue_hypercall_on_cpu() an unsigned integer.

Negative input makes no sense, and this makes the input range check
correct.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/common/domain.c      |    3 ++-
 xen/include/xen/domain.h |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff -r 25a2a8686b1b -r 93ac55cf3e40 xen/common/domain.c
--- a/xen/common/domain.c       Thu Apr 15 09:03:43 2010 +0100
+++ b/xen/common/domain.c       Thu Apr 15 09:04:45 2010 +0100
@@ -943,7 +943,8 @@ static void continue_hypercall_tasklet_h
     }
 }
 
-int continue_hypercall_on_cpu(int cpu, long (*func)(void *data), void *data)
+int continue_hypercall_on_cpu(
+    unsigned int cpu, long (*func)(void *data), void *data)
 {
     struct migrate_info *info;
 
diff -r 25a2a8686b1b -r 93ac55cf3e40 xen/include/xen/domain.h
--- a/xen/include/xen/domain.h  Thu Apr 15 09:03:43 2010 +0100
+++ b/xen/include/xen/domain.h  Thu Apr 15 09:04:45 2010 +0100
@@ -64,7 +64,8 @@ void domctl_lock_release(void);
 void domctl_lock_release(void);
 
 /* Continue the current hypercall via func(data) on specified cpu. */
-int continue_hypercall_on_cpu(int cpu, long (*func)(void *data), void *data);
+int continue_hypercall_on_cpu(
+    unsigned int cpu, long (*func)(void *data), void *data);
 
 extern unsigned int xen_processor_pmbits;
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Make cpu param to continue_hypercall_on_cpu() an unsigned integer., Xen patchbot-unstable <=