From: Reiner Sailer <sailer@us.ibm.com>
To: xen-devel@lists.xensource.com
Cc: Reiner Sailer <sailer@us.ibm.com>, "Bryan D. Payne" <bdpayne@us.ibm.com>
Subject: [PATCH] [ACM] Add Hypervisor Call Macro
Date: Tue, 30 May 2006 21:31:01 -0400 [thread overview]
Message-ID: <447CF1D5.7070602@us.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
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@us.ibm.com>
Signed-off by: Bryan D. Payne <bdpayne@us.ibm.com>
[-- Attachment #2: acm_hypervisorcall.diff --]
[-- Type: text/plain, Size: 2126 bytes --]
---
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)
{
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2006-05-31 1:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=447CF1D5.7070602@us.ibm.com \
--to=sailer@us.ibm.com \
--cc=bdpayne@us.ibm.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.