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

[Xen-ia64-devel] [PATCH 20/23] vti domain save/restore: linux xencomm; a

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 20/23] vti domain save/restore: linux xencomm; add hvm_set/get_context support
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 12 Oct 2007 12:51:36 +0900
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Thu, 11 Oct 2007 20:53:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Date 1189751371 -32400
# Node ID 4ab4d270c5cab8a58776cb05a15b07abd28584ec
# Parent  ef6ca90775a0f57c260fe7a81d0ec60bb589d35b
add hvm_{set,get}context support to xcom_privcmd.c
PATCHNAME: xcom_privcmd_hvm_get_set_context

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r ef6ca90775a0 -r 4ab4d270c5ca arch/ia64/xen/xcom_privcmd.c
--- a/arch/ia64/xen/xcom_privcmd.c      Fri Sep 14 15:04:31 2007 +0900
+++ b/arch/ia64/xen/xcom_privcmd.c      Fri Sep 14 15:29:31 2007 +0900
@@ -302,6 +302,17 @@ xencomm_privcmd_domctl(privcmd_hypercall
                set_xen_guest_handle(kern_op.u.vcpuaffinity.cpumap.bitmap,
                                     (void *)desc);
                break;
+       case XEN_DOMCTL_gethvmcontext:
+       case XEN_DOMCTL_sethvmcontext:
+               if (kern_op.u.hvmcontext.size > 0)
+                       desc = xencomm_map(
+                               xen_guest_handle(kern_op.u.hvmcontext.buffer),
+                               kern_op.u.hvmcontext.size);
+               if (xen_guest_handle(kern_op.u.hvmcontext.buffer) != NULL &&
+                   kern_op.u.hvmcontext.size > 0 && desc == NULL)
+                       return -ENOMEM;
+               set_xen_guest_handle(kern_op.u.hvmcontext.buffer, (void*)desc);
+               break;
        case XEN_DOMCTL_max_vcpus:
        case XEN_DOMCTL_scheduler_op:
        case XEN_DOMCTL_setdomainhandle:

Attachment: 242_4ab4d270c5ca_xcom_privcmd_hvm_get_set_context.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH 20/23] vti domain save/restore: linux xencomm; add hvm_set/get_context support, Isaku Yamahata <=