# 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
|