Add Hypervisor Call Macro
PATCH 1/1 Add Hypervisor Call Macro
This patch adds 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 <[email protected]> Signed-off by: Bryan D. Payne <[email protected]>
--- linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h | 7 +++++++ linux-2.6-xen-sparse/include/asm-ia64/hypercall.h | 7 +++++++ linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h | 7 +++++++ 3 files changed, 21 insertions(+)
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h +7 -0
@@ -260,6 +260,13 @@ HYPERVISOR_event_channel_op( }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) {
linux-2.6-xen-sparse/include/asm-ia64/hypercall.h +7 -0
@@ -217,6 +217,13 @@ HYPERVISOR_event_channel_op( }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) {
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h +7 -0
@@ -258,6 +258,13 @@ HYPERVISOR_event_channel_op( }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) {
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel