From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reiner Sailer Subject: [PATCH] [ACM] Add Hypervisor Call Macro Date: Tue, 30 May 2006 21:31:01 -0400 Message-ID: <447CF1D5.7070602@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090004040609010801000409" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Reiner Sailer , "Bryan D. Payne" List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------090004040609010801000409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Signed-off by: Bryan D. Payne --------------090004040609010801000409 Content-Type: text/plain; name="acm_hypervisorcall.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="acm_hypervisorcall.diff" --- 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(+) Index: xen-unstable.hg_orig-acm_hypercall/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h =================================================================== --- xen-unstable.hg_orig-acm_hypercall.orig/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h +++ xen-unstable.hg_orig-acm_hypercall/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h @@ -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) { Index: xen-unstable.hg_orig-acm_hypercall/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h =================================================================== --- xen-unstable.hg_orig-acm_hypercall.orig/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h +++ xen-unstable.hg_orig-acm_hypercall/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h @@ -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) { Index: xen-unstable.hg_orig-acm_hypercall/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h =================================================================== --- xen-unstable.hg_orig-acm_hypercall.orig/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h +++ xen-unstable.hg_orig-acm_hypercall/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h @@ -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) { --------------090004040609010801000409 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------090004040609010801000409--