|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [POWERPC] missing shadow skeleton
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 43c383265de415fce75710b2da9310d4ee08c87a
# Parent 883e3dc479263c4310be5f7f480468a9a9fbda4c
[POWERPC] missing shadow skeleton
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
xen/arch/powerpc/shadow.c | 36 ++++++++++++++++++++++++++++++++++++
xen/include/asm-powerpc/current.h | 2 +-
2 files changed, 37 insertions(+), 1 deletion(-)
diff -r 883e3dc47926 -r 43c383265de4 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 883e3dc47926 -r 43c383265de4 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [POWERPC] missing shadow skeleton,
Xen patchbot-unstable <=
|
|
|
|
|