All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [MINI-OS] Added domctl and sysctl hypercalls
@ 2007-01-18 15:24 Derek Murray
  2007-01-23 21:13 ` Grzegorz Milos
  0 siblings, 1 reply; 3+ messages in thread
From: Derek Murray @ 2007-01-18 15:24 UTC (permalink / raw)
  To: xen-devel; +Cc: Grzegorz Milos

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

This patch (a further development of one that I submitted previously)  
adds helper functions for the domctl and sysctl hypercalls to Mini-OS  
(replacing the dom0_op hypercall). It also updates the  
__XEN_INTERFACE_VERSION__ to 0x00030205.

Regards,

Derek Murray.


[-- Attachment #2: minios-hypercall-domctl-sysctl.patch.txt --]
[-- Type: text/plain, Size: 2023 bytes --]

# HG changeset patch
# User Derek Murray <Derek.Murray@cl.cam.ac.uk>
# Node ID 1767dc17afd11572b70a920091818e22864acfcc
# Parent  dd0989523d1700825a9feea3895811cec3c41bfa
Added domctl and sysctl hypercalls to the architecture-specific
header files. Also increased the __XEN_INTERFACE_VERSION__ to
0x00030205.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>

diff -r dd0989523d17 -r 1767dc17afd1 extras/mini-os/Makefile
--- a/extras/mini-os/Makefile	Wed Jan 17 16:42:34 2007 +0000
+++ b/extras/mini-os/Makefile	Thu Jan 18 15:13:33 2007 +0000
@@ -9,7 +9,7 @@ XEN_ROOT = ../..
 XEN_ROOT = ../..
 include $(XEN_ROOT)/Config.mk
 
-XEN_INTERFACE_VERSION := 0x00030204
+XEN_INTERFACE_VERSION := 0x00030205
 export XEN_INTERFACE_VERSION
 
 # Set TARGET_ARCH
diff -r dd0989523d17 -r 1767dc17afd1 extras/mini-os/include/x86/x86_32/hypercall-x86_32.h
--- a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h	Wed Jan 17 16:42:34 2007 +0000
+++ b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h	Thu Jan 18 15:13:33 2007 +0000
@@ -303,6 +303,20 @@ HYPERVISOR_nmi_op(
 	unsigned long arg)
 {
 	return _hypercall2(int, nmi_op, op, arg);
+}
+
+static inline int
+HYPERVISOR_sysctl(
+	unsigned long op)
+{
+	return _hypercall1(int, sysctl, op);
+}
+
+static inline int
+HYPERVISOR_domctl(
+	unsigned long op)
+{
+	return _hypercall1(int, domctl, op);
 }
 
 #endif /* __HYPERCALL_X86_32_H__ */
diff -r dd0989523d17 -r 1767dc17afd1 extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
--- a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h	Wed Jan 17 16:42:34 2007 +0000
+++ b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h	Thu Jan 18 15:13:33 2007 +0000
@@ -303,6 +303,20 @@ HYPERVISOR_nmi_op(
 	unsigned long arg)
 {
 	return _hypercall2(int, nmi_op, op, arg);
+}
+
+static inline int
+HYPERVISOR_sysctl(
+	unsigned long op)
+{
+	return _hypercall1(int, sysctl, op);
+}
+
+static inline int
+HYPERVISOR_domctl(
+	unsigned long op)
+{
+	return _hypercall1(int, domctl, op);
 }
 
 #endif /* __HYPERCALL_X86_64_H__ */

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] [MINI-OS] Added domctl and sysctl hypercalls
  2007-01-18 15:24 [PATCH] [MINI-OS] Added domctl and sysctl hypercalls Derek Murray
@ 2007-01-23 21:13 ` Grzegorz Milos
  2007-01-24 10:16   ` Keir Fraser
  0 siblings, 1 reply; 3+ messages in thread
From: Grzegorz Milos @ 2007-01-23 21:13 UTC (permalink / raw)
  To: Derek Murray; +Cc: xen-devel

That looks good. Could you export a patch (hg diff -rX:Y) of both  
changes, and send it back to the list?

Thanks
Gregor

On 18 Jan 2007, at 15:24, Derek Murray wrote:

> This patch (a further development of one that I submitted  
> previously) adds helper functions for the domctl and sysctl  
> hypercalls to Mini-OS (replacing the dom0_op hypercall). It also  
> updates the __XEN_INTERFACE_VERSION__ to 0x00030205.
>
> Regards,
>
> Derek Murray.
>
> <minios-hypercall-domctl-sysctl.patch.txt>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Re: [PATCH] [MINI-OS] Added domctl and sysctl hypercalls
  2007-01-23 21:13 ` Grzegorz Milos
@ 2007-01-24 10:16   ` Keir Fraser
  0 siblings, 0 replies; 3+ messages in thread
From: Keir Fraser @ 2007-01-24 10:16 UTC (permalink / raw)
  To: Grzegorz Milos, Derek Murray; +Cc: xen-devel




On 23/1/07 21:13, "Grzegorz Milos" <gm281@cam.ac.uk> wrote:

> That looks good. Could you export a patch (hg diff -rX:Y) of both
> changes, and send it back to the list?

I already applied this one since it was so trivial.

 -- Keir

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-01-24 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-18 15:24 [PATCH] [MINI-OS] Added domctl and sysctl hypercalls Derek Murray
2007-01-23 21:13 ` Grzegorz Milos
2007-01-24 10:16   ` Keir Fraser

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.