xen: add support for callbackops hypercall

Signed-off-by: Jeremy Fitzhardinge <[email protected]>

Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
Jeremy Fitzhardinge 2008-03-17 16:37:15 -07:00 • committed by Ingo Molnar
commit aa380c82b8
3 changed files with 112 additions and 0 deletions

View file

@ -163,6 +163,12 @@ HYPERVISOR_set_callbacks(unsigned long event_selector,
failsafe_selector, failsafe_address);
}
static inline int
HYPERVISOR_callback_op(int cmd, void *arg)
{
return _hypercall2(int, callback_op, cmd, arg);
}
static inline int
HYPERVISOR_fpu_taskswitch(int set)
{

View file

@ -171,6 +171,10 @@ struct arch_vcpu_info {
unsigned long pad[5]; /* sizeof(struct vcpu_info) == 64 */
};
struct xen_callback {
unsigned long cs;
unsigned long eip;
};
#endif /* !__ASSEMBLY__ */
/*