aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-07-02 19:12:41 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-07-02 19:12:41 +0100
commite11ffdcc0968f09d5f975f4546101ff6c4b748b9 (patch)
treefe516eab303e652bb338bba707ee1d0a735b53da
parentc41ded4efd4ff82d4e4d1b1a1b18ea8b4cb495d3 (diff)
downloadxen-e11ffdcc0968f09d5f975f4546101ff6c4b748b9.tar.gz
xen-e11ffdcc0968f09d5f975f4546101ff6c4b748b9.tar.bz2
xen-e11ffdcc0968f09d5f975f4546101ff6c4b748b9.zip
x86: Export timer hypercalls to HVM guests too
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> xen-unstable changeset: 21341:3289dac49af4 xen-unstable date: Tue May 11 08:36:30 2010 +0100
-rw-r--r--xen/arch/x86/hvm/hvm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index d42eefe085..4f56d2ecfb 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -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_table[NR_hypercalls] = {
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_table[NR_hypercalls] = {
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_table[NR_hypercalls] = {
HYPERCALL(xen_version),
HYPERCALL(event_channel_op),
HYPERCALL(sched_op),
+ HYPERCALL(set_timer_op),
HYPERCALL(hvm_op),
HYPERCALL(tmem_op)
};