[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] do_callback_op()'s second argument can be const allowing the guest to



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1200671218 0
# Node ID ada944b5e066cbb75ed8b5d23fc656fad0855657
# Parent  692a91e3b2626796b9e7046e0831f3d4d5b51be1
do_callback_op()'s second argument can be const allowing the guest to
declare these (mostly static) argument structures 'const'.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/arch/ia64/xen/hypercall.c |    5 +----
 xen/arch/x86/x86_32/traps.c   |    2 +-
 xen/arch/x86/x86_64/traps.c   |    2 +-
 xen/include/public/xen.h      |    1 +
 4 files changed, 4 insertions(+), 6 deletions(-)

diff -r 692a91e3b262 -r ada944b5e066 xen/arch/ia64/xen/hypercall.c
--- a/xen/arch/ia64/xen/hypercall.c     Fri Jan 18 15:38:52 2008 +0000
+++ b/xen/arch/ia64/xen/hypercall.c     Fri Jan 18 15:46:58 2008 +0000
@@ -33,9 +33,6 @@
 #include <xen/event.h>
 #include <xen/perfc.h>
 #include <public/arch-ia64/debug_op.h>
-
-extern long do_physdev_op(int cmd, XEN_GUEST_HANDLE(void) arg);
-extern long do_callback_op(int cmd, XEN_GUEST_HANDLE(void) arg);
 
 static IA64FAULT
 xen_hypercall (struct pt_regs *regs)
@@ -457,7 +454,7 @@ static long unregister_guest_callback(st
 /* First time to add callback to xen/ia64, so let's just stick to
  * the newer callback interface.
  */
-long do_callback_op(int cmd, XEN_GUEST_HANDLE(void) arg)
+long do_callback_op(int cmd, XEN_GUEST_HANDLE(cvoid) arg)
 {
     long ret;
 
diff -r 692a91e3b262 -r ada944b5e066 xen/arch/x86/x86_32/traps.c
--- a/xen/arch/x86/x86_32/traps.c       Fri Jan 18 15:38:52 2008 +0000
+++ b/xen/arch/x86/x86_32/traps.c       Fri Jan 18 15:46:58 2008 +0000
@@ -419,7 +419,7 @@ static long unregister_guest_callback(st
 }
 
 
-long do_callback_op(int cmd, XEN_GUEST_HANDLE(void) arg)
+long do_callback_op(int cmd, XEN_GUEST_HANDLE(cvoid) arg)
 {
     long ret;
 
diff -r 692a91e3b262 -r ada944b5e066 xen/arch/x86/x86_64/traps.c
--- a/xen/arch/x86/x86_64/traps.c       Fri Jan 18 15:38:52 2008 +0000
+++ b/xen/arch/x86/x86_64/traps.c       Fri Jan 18 15:46:58 2008 +0000
@@ -470,7 +470,7 @@ static long unregister_guest_callback(st
 }
 
 
-long do_callback_op(int cmd, XEN_GUEST_HANDLE(void) arg)
+long do_callback_op(int cmd, XEN_GUEST_HANDLE(cvoid) arg)
 {
     long ret;
 
diff -r 692a91e3b262 -r ada944b5e066 xen/include/public/xen.h
--- a/xen/include/public/xen.h  Fri Jan 18 15:38:52 2008 +0000
+++ b/xen/include/public/xen.h  Fri Jan 18 15:46:58 2008 +0000
@@ -48,6 +48,7 @@ DEFINE_XEN_GUEST_HANDLE(long);
 DEFINE_XEN_GUEST_HANDLE(long);
 __DEFINE_XEN_GUEST_HANDLE(ulong, unsigned long);
 DEFINE_XEN_GUEST_HANDLE(void);
+__DEFINE_XEN_GUEST_HANDLE(cvoid, const void);
 
 DEFINE_XEN_GUEST_HANDLE(xen_pfn_t);
 #endif

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.