[HVM] fix save/restore on 64b HV

Enable hvm_ctxt ops for compat mode to fix HVM save/restore on 64b HV.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-01-23 15:26:17 +00:00
1 parent 49964796c7
commit 23834a2ffd
1 file changed
+12 -4
+12 -4
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.