do_* declarations (was: Re: [Xen-ia64-devel] [PATCH] added multicall)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
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.
The do_* functions are at least:
extern long do_ni_hypercall(void);
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_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);
Thanks,
Tristan.
Quoted 11 lines · Masaki Kanno
Hi, Tristan
Thank you for advice. Please give me advice once again.
I was not able to find an appropriate common header. In which header do you define them in case of you?
-xen/hypercall.h(new)
-xen/multicall.h
-asm/multicall.h
- etcI think
xen/hypercall.his better.
Why not. I send this mail to xen-devel, so that we can have official advices!
Quoted 34 lines
Best regards,
KanQuoted 29 lines · Tristan Gingold
Le Mercredi 25 Janvier 2006 13:09, Masaki Kanno a 馗rit :
Quoted 9 lines
Hi,
This patch added multicall hypercall.
The xm top command succeeded.Signed-off-by Masaki Kanno <[email protected]>Best regards,
KanHi,
I personnaly think that these declarations
(quoted diff) +4
-0+extern long do_ni_hypercall(void); +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);(quoted diff) +4
-0+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 intcount);
should go in common headers. They will be checked with definitions and this will avoid to re-declare them in some other files.
Tristan.
Quoted 4 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.
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
Hi,
I'll post the header file patch. Thank you for your comments.
Best regards,
Kan
Quoted 19 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.
include/xen/hypercall.h, include/asm-<arch>/hypercall.hIf 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