aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/hvm.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-05-27 08:59:38 +0200
committerJan Beulich <jbeulich@suse.com>2013-05-27 08:59:38 +0200
commitae5092f420e87a4a6b541bf581378c8cc0ee3a99 (patch)
treed85517331ab1e6596b8b38597bd1bf3a82320934 /xen/arch/x86/hvm/hvm.c
parentda3bca931fbcf0cbdfec971aca234e7ec0f41e16 (diff)
downloadxen-ae5092f420e87a4a6b541bf581378c8cc0ee3a99.tar.gz
xen-ae5092f420e87a4a6b541bf581378c8cc0ee3a99.tar.bz2
xen-ae5092f420e87a4a6b541bf581378c8cc0ee3a99.zip
x86: re-enable VCPUOP_register_vcpu_time_memory_area
By moving the call to update_vcpu_system_time() out of schedule() into arch-specific context switch code, the original problem of the function accessing the wrong domain's address space goes away (obvious even from patch context, as update_runstate_area() does similar copying). Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/hvm/hvm.c')
-rw-r--r--xen/arch/x86/hvm/hvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index bcf96093d4..a962ce253d 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -3191,6 +3191,7 @@ static long hvm_vcpu_op(
case VCPUOP_set_singleshot_timer:
case VCPUOP_stop_singleshot_timer:
case VCPUOP_register_vcpu_info:
+ case VCPUOP_register_vcpu_time_memory_area:
rc = do_vcpu_op(cmd, vcpuid, arg);
break;
default:
@@ -3249,6 +3250,7 @@ static long hvm_vcpu_op_compat32(
case VCPUOP_set_singleshot_timer:
case VCPUOP_stop_singleshot_timer:
case VCPUOP_register_vcpu_info:
+ case VCPUOP_register_vcpu_time_memory_area:
rc = compat_vcpu_op(cmd, vcpuid, arg);
break;
default: