Skip to contentSkip to conversation

adds hypercall.h (was: Re: do_* declarations (was: Re: [Xen-ia64-devel] [PATCH] added multicall))

PATCH New Masaki Kanno 1 participant 1 message Jan 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 adds hypercall.h (was: Re: do_* declarations (was: Re: [Xen-ia64-devel] [PATCH] added multicall))

Hi,

This patch adds the following header files.
- include/xen/hypercall.h
- include/asm-x86/hypercall.h
- include/asm-ia64/hypercall.h

Best regards,
Kan

Quoted 10 lines · Keir Fraser
Quoted 6 lines · Tristan Gingold

on ia64, the do_* functions for hypercalls are called in C. However, they are
not declared in any .h file. I think it is cleaner to declare them in an
header file rather than locally. The question is in which header file. Thank you for any suggestion.

Quoted 8 lines

include/xen/hypercall.h, include/asm-<arch>/hypercall.h

If you plan to do this, include all hypercalls and only place hypercalls that really are arch-indep (defined in common, or in every arch with the same prototype) in include/xen/hypercall.h.

-- Keir

xen/include/asm-ia64/hypercall.h new file +17 -0
diff -r cfa3b96b056d xen/include/asm-ia64/hypercall.h
@@ -0,0 +1,17 @@
+/******************************************************************************
+ * asm-ia64/hypercall.h
+ */
+
+#ifndef __ASM_IA64_HYPERCALL_H__
+#define __ASM_IA64_HYPERCALL_H__
+
+#include <public/xen.h>
+#include <asm/types.h>
+#include <asm/vcpu.h>
+
+extern int vmx_do_mmu_update(mmu_update_t *ureqs, u64 count,
+                              u64 *pdone, u64 foreigndom);
+extern int do_lock_page(VCPU *vcpu, u64 va, u64 lock);
+extern int do_set_shared_page(VCPU *vcpu, u64 gpa);
+
+#endif /* __ASM_IA64_HYPERCALL_H__ */
xen/include/asm-x86/hypercall.h new file +48 -0

48 lines not on this page · raw message

xen/include/xen/hypercall.h new file +33 -0
diff -r cfa3b96b056d xen/include/xen/hypercall.h
@@ -0,0 +1,33 @@
+/******************************************************************************
+ * hypercall.h
+ */
+
+#ifndef __XEN_HYPERCALL_H__
+#define __XEN_HYPERCALL_H__
+
+#include <public/acm.h>
+#include <public/acm_ops.h>
+#include <public/dom0_ops.h>
+#include <public/event_channel.h>
+#include <public/xen.h>
+#include <xen/time.h>
+
+#include <asm/hypercall.h>
+
+extern long do_ni_hypercall(void);
+
+extern long do_sched_op(int cmd, unsigned long arg);
+extern long do_dom0_op(dom0_op_t *u_dom0_op);
+extern long do_memory_op(int cmd, void *arg);
+extern long do_multicall(multicall_entry_t *call_list, unsigned int nr_calls);
+extern long do_set_timer_op(s_time_t timeout);
+extern long do_event_channel_op(evtchn_op_t *uop);
+extern long do_xen_version(int cmd, void *arg);
+extern long do_console_io(int cmd, int count, char *buffer);
+extern long do_grant_table_op(unsigned int cmd, void *uop, unsigned int count);
+extern long do_vm_assist(unsigned int cmd, unsigned int type);
+extern long do_vcpu_op(int cmd, int vcpuid, void *arg);
+extern long do_acm_op(struct acm_op *u_acm_op);
+extern long do_nmi_op(unsigned int cmd, void *arg);
+
+#endif /* __XEN_HYPERCALL_H__ */

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel