From: kaf24@firebug.cl.cam.ac.uk Date: Wed, 31 May 2006 06:23:54 +0000 (+0100) Subject: [ACM] Add a hypervisor call macro to the linux kernel; it X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16013^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9fea9fb410db5920a6c075510db5d5c6e3729022;p=xen.git [ACM] Add a hypervisor call macro to the linux kernel; it completes the alignment of the ACM call interface with the other Xen hypervisor call interfaces. This macro is used to call from the a guest kernel directly into the ACM hypervisor module. Signed-off by: Reiner Sailer Signed-off by: Bryan D. Payne --- diff --git a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h index 90a72d3cc0..767d293184 100644 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h @@ -259,6 +259,13 @@ HYPERVISOR_event_channel_op( return rc; } +static inline int +HYPERVISOR_acm_op( + int cmd, void *arg) +{ + return _hypercall2(int, acm_op, cmd, arg); +} + static inline int HYPERVISOR_xen_version( int cmd, void *arg) diff --git a/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h b/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h index c2b779bfea..938d0aa99c 100644 --- a/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h +++ b/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h @@ -246,6 +246,13 @@ HYPERVISOR_event_channel_op( return rc; } +static inline int +HYPERVISOR_acm_op( + unsigned int cmd, void *arg) +{ + return = _hypercall2(int, acm_op, cmd, arg); +} + static inline int HYPERVISOR_xen_version( int cmd, void *arg) diff --git a/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h b/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h index 8c521fce03..fd45934418 100644 --- a/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h +++ b/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h @@ -257,6 +257,13 @@ HYPERVISOR_event_channel_op( return rc; } +static inline int +HYPERVISOR_acm_op( + int cmd, void *arg) +{ + return = _hypercall2(int, acm_op, cmd, arg); +} + static inline int HYPERVISOR_xen_version( int cmd, void *arg)