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

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH][HVM] fix save/restore on 64b HV

To: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][HVM] fix save/restore on 64b HV
From: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Date: 2007年1月23日 23:14:33 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, edwin.zhai@xxxxxxxxx
Delivery-date: 2007年1月23日 07:14:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
[PATCH][HVM] fix save/restore on 64b HV
Signed-off-by: Zhai Edwin <edwin.zhai@xxxxxxxxx>
enable hvm_ctxt ops for compat mode to fix HVM save/restore on 64b HV
diff -r b75af612851c xen/arch/x86/domctl.c
--- a/xen/arch/x86/domctl.c Mon Jan 22 17:31:15 2007 +0000
+++ b/xen/arch/x86/domctl.c Tue Jan 23 22:00:11 2007 +0800
@@ -311,12 +311,16 @@ _long arch_do_domctl(
 
 ret = -EFAULT;
 
-#ifndef CONFIG_COMPAT
+#ifndef COMPAT
 if ( copy_from_guest(c, domctl->u.hvmcontext.ctxt, 1) != 0 )
+#else
+ if ( copy_from_guest(c,
+ compat_handle_cast(domctl->u.hvmcontext.ctxt, 
void),
+ 1) != 0 )
+#endif
 goto sethvmcontext_out;
 
 ret = arch_sethvm_ctxt(v, c);
-#endif
 
 xfree(c);
 
@@ -350,12 +354,16 @@ _long arch_do_domctl(
 if (arch_gethvm_ctxt(v, c) == -1)
 ret = -EFAULT;
 
-#ifndef CONFIG_COMPAT
+#ifndef COMPAT
 if ( copy_to_guest(domctl->u.hvmcontext.ctxt, c, 1) )
+#else
+ if ( copy_to_guest(compat_handle_cast(domctl->u.hvmcontext.ctxt,
+ void),
+ c, 1) )
 ret = -EFAULT;
+#endif
 
 xfree(c);
-#endif
 
 if ( copy_to_guest(u_domctl, domctl, 1) )
 ret = -EFAULT;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][HVM] fix save/restore on 64b HV, Zhai, Edwin <=
Previous by Date: Re: [Xen-devel] 32-on-64: pvfb issue , Keir Fraser
Next by Date: Re: [Xen-devel] [PATCH] make resend_irq_on_evtchn() non-static , Keir Fraser
Previous by Thread: [Xen-devel] [patch 0/5] libelf: new elf parser for xen , Gerd Hoffmann
Next by Thread: [Xen-devel] HVM smp guest save/restore support , Zhai, Edwin
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /