mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86: Export timer hypercalls to HVM guests too
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
1 parent
e6536520c4
commit
45c08c3870
1 file changed
+11
@@ -2224,6 +2224,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:
|
||||
@@ -2249,6 +2253,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)
|
||||
};
|
||||
|
||||
@@ -2280,6 +2285,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:
|
||||
@@ -2297,6 +2306,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)
|
||||
};
|
||||
|
||||
@@ -2307,6 +2317,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)
|
||||
};
|
||||
|
||||
|
||||