[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [xenppc-unstable] [POWEPRC] missing shadow skeleton
# HG changeset patch # User Jimi Xenidis <jimix@xxxxxxxxxxxxxx> # Node ID e354171fa00b92cf3715a808069608bfa40780a0 # Parent dbe9249ba61b0d616f3e43ee54fea83d635285c9 [POWEPRC] missing shadow skeleton --- xen/arch/powerpc/shadow.c | 36 ++++++++++++++++++++++++++++++++++++ xen/include/asm-powerpc/current.h | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff -r dbe9249ba61b -r e354171fa00b xen/include/asm-powerpc/current.h --- a/xen/include/asm-powerpc/current.h Sun Aug 20 13:28:45 2006 -0400 +++ b/xen/include/asm-powerpc/current.h Mon Aug 21 06:53:55 2006 -0400 @@ -66,7 +66,7 @@ static inline struct cpu_user_regs *gues static inline void reset_stack_and_jump(void (*f)(void)) { - void _reset_stack_and_jump(void (*f)(void), struct cpu_user_regs *regs); + void _reset_stack_and_jump(void (*)(void), struct cpu_user_regs *); struct cpu_user_regs *regs = guest_cpu_user_regs(); #ifdef TRACK_RESUME diff -r dbe9249ba61b -r e354171fa00b xen/arch/powerpc/shadow.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xen/arch/powerpc/shadow.c Mon Aug 21 06:53:55 2006 -0400 @@ -0,0 +1,36 @@ +#include <xen/config.h> +#include <xen/types.h> +#include <xen/shadow.h> +#include <public/dom0_ops.h> + +int shadow_control_op(struct domain *d, + dom0_shadow_control_t *sc, + XEN_GUEST_HANDLE(dom0_op_t) u_dom0_op) +{ + if ( unlikely(d == current->domain) ) + { + DPRINTK("Don't try to do a shadow op on yourself!\n"); + return -EINVAL; + } + + switch ( sc->op ) + { + case DOM0_SHADOW_CONTROL_OP_OFF: + return 0; + + case DOM0_SHADOW2_CONTROL_OP_GET_ALLOCATION: + sc->mb = 0; + return 0; + case DOM0_SHADOW2_CONTROL_OP_SET_ALLOCATION: + if (sc->mb > 0) { + BUG(); + return -ENOMEM; + } + return 0; + + default: + printk("Bad shadow op %u\n", sc->op); + BUG(); + return -EINVAL; + } +} _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |