[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-4.0-testing] x86: Export timer hypercalls to HVM guests too



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1278094361 -3600
# Node ID 322468d5ab6ceca4afa21977a02f4492308d2ddc
# Parent  67caec4b162d250c5b2e4c957994b88c22f94e00
x86: Export timer hypercalls to HVM guests too

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
xen-unstable changeset:   21341:3289dac49af4
xen-unstable date:        Tue May 11 08:36:30 2010 +0100
---
 xen/arch/x86/hvm/hvm.c |   11 +++++++++++
 1 files changed, 11 insertions(+)

diff -r 67caec4b162d -r 322468d5ab6c xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Wed Jun 30 22:14:40 2010 +0100
+++ b/xen/arch/x86/hvm/hvm.c    Fri Jul 02 19:12:41 2010 +0100
@@ -2242,6 +2242,10 @@ static long hvm_vcpu_op(
     {
     case VCPUOP_register_runstate_memory_area:
     case VCPUOP_get_runstate_info:
+    case VCPUOP_set_periodic_timer:
+    case VCPUOP_stop_periodic_timer:
+    case VCPUOP_set_singleshot_timer:
+    case VCPUOP_stop_singleshot_timer:
         rc = do_vcpu_op(cmd, vcpuid, arg);
         break;
     default:
@@ -2267,6 +2271,7 @@ static hvm_hypercall_t *hvm_hypercall32_
     HYPERCALL(xen_version),
     HYPERCALL(event_channel_op),
     HYPERCALL(sched_op),
+    HYPERCALL(set_timer_op),
     HYPERCALL(hvm_op),
     HYPERCALL(tmem_op)
 };
@@ -2299,6 +2304,10 @@ static long hvm_vcpu_op_compat32(
     {
     case VCPUOP_register_runstate_memory_area:
     case VCPUOP_get_runstate_info:
+    case VCPUOP_set_periodic_timer:
+    case VCPUOP_stop_periodic_timer:
+    case VCPUOP_set_singleshot_timer:
+    case VCPUOP_stop_singleshot_timer:
         rc = compat_vcpu_op(cmd, vcpuid, arg);
         break;
     default:
@@ -2316,6 +2325,7 @@ static hvm_hypercall_t *hvm_hypercall64_
     HYPERCALL(xen_version),
     HYPERCALL(event_channel_op),
     HYPERCALL(sched_op),
+    HYPERCALL(set_timer_op),
     HYPERCALL(hvm_op),
     HYPERCALL(tmem_op)
 };
@@ -2327,6 +2337,7 @@ static hvm_hypercall_t *hvm_hypercall32_
     HYPERCALL(xen_version),
     HYPERCALL(event_channel_op),
     HYPERCALL(sched_op),
+    HYPERCALL(set_timer_op),
     HYPERCALL(hvm_op),
     HYPERCALL(tmem_op)
 };

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.