From: Grzegorz Milos <gm281@cam.ac.uk>
To: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH]mini-os: Using new hypercall interfaces
Date: Fri, 24 Nov 2006 17:22:29 +0000 [thread overview]
Message-ID: <45672A55.5030507@cam.ac.uk> (raw)
In-Reply-To: <200611230909.03457.dietmar.hahn@fujitsu-siemens.com>
This patch looks all fine. Tested on both 32 and 64 bit machines.
Keir could you apply please.
Thanks.
Grerog
Dietmar Hahn wrote:
> Hi Gregor,
>
>> You've dropped 'data' from bind_evtchn() call in your changes to
>> events.c. That breaks our API, where event handler gets void* to some
>> piece of data supplied when binding a channel. It looks to me that no
>> changes to events.c are required whatsoever.
> Sorry, my fault. I overlooked last changes to the
> HYPERVISOR_event_channel_op() hypercall :-(.
> I resend the patch only with the changed hypercall HYPERVISOR_sched_op().
> Thanks.
>
> Dietmar.
>
>
> ------------------------------------------------------------------------
>
> # HG changeset patch
> # User dietmar.hahn@fujitsu-siemens.com
> # Date 1164268700 -3600
> # Node ID 85056d526e1496d0f3a2449b51e4ba6a2361baec
> # Parent 2ef0f17a9af9b6b3b2f76460e0f9da5112c0bd79
> Switched to new interface for HYPERVISOR_sched_op().
>
> Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
>
> diff -r 2ef0f17a9af9 -r 85056d526e14 extras/mini-os/include/x86/x86_32/hypercall-x86_32.h
> --- a/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h Wed Nov 22 18:36:48 2006 +0000
> +++ b/extras/mini-os/include/x86/x86_32/hypercall-x86_32.h Thu Nov 23 08:58:20 2006 +0100
> @@ -167,7 +167,7 @@ HYPERVISOR_fpu_taskswitch(
>
> static inline int
> HYPERVISOR_sched_op(
> - int cmd, unsigned long arg)
> + int cmd, void *arg)
> {
> return _hypercall2(int, sched_op, cmd, arg);
> }
> diff -r 2ef0f17a9af9 -r 85056d526e14 extras/mini-os/include/x86/x86_64/hypercall-x86_64.h
> --- a/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h Wed Nov 22 18:36:48 2006 +0000
> +++ b/extras/mini-os/include/x86/x86_64/hypercall-x86_64.h Thu Nov 23 08:58:20 2006 +0100
> @@ -171,7 +171,7 @@ HYPERVISOR_fpu_taskswitch(
>
> static inline int
> HYPERVISOR_sched_op(
> - int cmd, unsigned long arg)
> + int cmd, void *arg)
> {
> return _hypercall2(int, sched_op, cmd, arg);
> }
> diff -r 2ef0f17a9af9 -r 85056d526e14 extras/mini-os/kernel.c
> --- a/extras/mini-os/kernel.c Wed Nov 22 18:36:48 2006 +0000
> +++ b/extras/mini-os/kernel.c Thu Nov 23 08:58:20 2006 +0100
> @@ -159,5 +159,9 @@ void do_exit(void)
> void do_exit(void)
> {
> printk("Do_exit called!\n");
> - for ( ;; ) HYPERVISOR_sched_op(SCHEDOP_shutdown, SHUTDOWN_crash);
> + for( ;; )
> + {
> + struct sched_shutdown sched_shutdown = { .reason = SHUTDOWN_crash };
> + HYPERVISOR_sched_op(SCHEDOP_shutdown, &sched_shutdown);
> + }
> }
prev parent reply other threads:[~2006-11-24 17:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 14:48 [PATCH]mini-os: Using new hypercall interfaces Dietmar Hahn
2006-11-22 22:12 ` Grzegorz Milos
2006-11-23 8:09 ` Dietmar Hahn
2006-11-24 17:22 ` Grzegorz Milos [this message]
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=45672A55.5030507@cam.ac.uk \
--to=gm281@cam.ac.uk \
--cc=dietmar.hahn@fujitsu-siemens.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.