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-ppc-devel

[XenPPC] [linux-ppc-2.6] [LINUX] support DOM0_SHADOW_CONTROL dom0 hcall

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [LINUX] support DOM0_SHADOW_CONTROL dom0 hcall
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 23 Aug 2006 18:22:34 +0000
Delivery-date: Wed, 23 Aug 2006 11:30:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Hollis Blanchard <hollisb@xxxxxxxxxx>
# Node ID 49765c9a9eb4554f884c4c730438cf872fae9d9c
# Parent  8f36901a3c1599e6c326b1a6f6b017dd5f285b0a
[LINUX] support DOM0_SHADOW_CONTROL dom0 hcall
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 arch/powerpc/platforms/xen/hcall.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletion(-)

diff -r 8f36901a3c15 -r 49765c9a9eb4 arch/powerpc/platforms/xen/hcall.c
--- a/arch/powerpc/platforms/xen/hcall.c        Fri Aug 11 12:49:08 2006 -0400
+++ b/arch/powerpc/platforms/xen/hcall.c        Wed Aug 23 13:19:06 2006 -0500
@@ -286,6 +286,14 @@ static int xenppc_privcmd_dom0_op(privcm
                        kern_op.u.readconsole.count,
                        &desc, GFP_KERNEL);
                set_xen_guest_handle(kern_op.u.readconsole.buffer,
+                                    (void *)__pa(desc));
+               break;
+       case DOM0_SHADOW_CONTROL:
+               ret = xencomm_create(
+                       xen_guest_handle(kern_op.u.shadow_control.dirty_bitmap),
+                       kern_op.u.shadow_control.pages * sizeof(unsigned long),
+                       &desc, GFP_KERNEL);
+               set_xen_guest_handle(kern_op.u.shadow_control.dirty_bitmap,
                                     (void *)__pa(desc));
                break;
        case DOM0_GETPAGEFRAMEINFO2:
@@ -509,7 +517,7 @@ int arch_privcmd_hypercall(privcmd_hyper
                printk("%s: unknown hcall (%ld)\n", __func__, hypercall->op);
                /* fallthru */
                /* below are the hcalls we know will fail and its ok */
-        case __HYPERVISOR_acm_op:
+       case __HYPERVISOR_acm_op:
                return plpar_hcall_norets(XEN_MARK(hypercall->op),
                                hypercall->arg[0],
                                hypercall->arg[1],

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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [LINUX] support DOM0_SHADOW_CONTROL dom0 hcall, Xen patchbot-linux-ppc-2 . 6 <=