Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

[Xen-devel] [PATCH] [ACM] Add Hypervisor Call Macro

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [ACM] Add Hypervisor Call Macro
From: Reiner Sailer <sailer@xxxxxxxxxx>
Date: Tue, 30 May 2006 21:31:01 -0400
Cc: Reiner Sailer <sailer@xxxxxxxxxx>, "Bryan D. Payne" <bdpayne@xxxxxxxxxx>
Delivery-date: Tue, 30 May 2006 18:31:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
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 <sailer@xxxxxxxxxx>
Signed-off by: Bryan D. Payne <bdpayne@xxxxxxxxxx>
---
 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)
 {
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [ACM] Add Hypervisor Call Macro, Reiner Sailer <=