From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Thomas Leonard <talex5@gmail.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [PATCH 2/7] mini-os: Tidied up code
Date: Wed, 4 Jun 2014 17:22:34 +0100 [thread overview]
Message-ID: <538F47CA.20708@citrix.com> (raw)
In-Reply-To: <1401897998-29569-3-git-send-email-talex5@gmail.com>
On 04/06/14 17:06, Thomas Leonard wrote:
> From: Karim Raslan <karim.allah.ahmed@gmail.com>
>
> Signed-off-by: Karim Allah Ahmed <karim.allah.ahmed@gmail.com>
> [talex5@gmail.com: separated from big ARM commit]
> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> [talex5@gmail.com: use __func__ in DEBUG macro]
> Signed-off-by: Thomas Leonard <talex5@gmail.com>
> ---
> extras/mini-os/README | 7 ++++--
> extras/mini-os/arch/x86/time.c | 2 +-
> extras/mini-os/console/console.c | 2 +-
> extras/mini-os/events.c | 3 ++-
> extras/mini-os/gntmap.c | 35 ++++++++++++++----------------
> extras/mini-os/include/x86/arch_spinlock.h | 2 +-
> extras/mini-os/sched.c | 3 +++
> extras/mini-os/xenbus/xenbus.c | 2 +-
> 8 files changed, 30 insertions(+), 26 deletions(-)
>
> diff --git a/extras/mini-os/README b/extras/mini-os/README
> index 710a303..bf49700 100644
> --- a/extras/mini-os/README
> +++ b/extras/mini-os/README
> @@ -25,8 +25,11 @@ This includes:
>
> - to build it with much better libc support, see the stubdom/ directory
>
> -- to start it do the following in domain0 (assuming xend is running)
> - # xm create domain_config
> +- to start it do the following in domain0
> + # xm create domain_config # old style xend ( assuming xend is running )
> +or
> + # xl create domain_config # using toolstack
> +
Xend has been rm -rf'd from the codebase. All new patches should drop
all references to it and just refer to xl.
>
> This starts the kernel and prints out a bunch of stuff and then once every
> second the system time.
> diff --git a/extras/mini-os/arch/x86/time.c b/extras/mini-os/arch/x86/time.c
> index 89bc382..2c8d033 100644
> --- a/extras/mini-os/arch/x86/time.c
> +++ b/extras/mini-os/arch/x86/time.c
> @@ -212,7 +212,7 @@ void block_domain(s_time_t until)
>
>
> /*
> - * Just a dummy
> + * Just a dummy
> */
> static void timer_handler(evtchn_port_t ev, struct pt_regs *regs, void *ign)
> {
> diff --git a/extras/mini-os/console/console.c b/extras/mini-os/console/console.c
> index 380f53c..5538bd4 100644
> --- a/extras/mini-os/console/console.c
> +++ b/extras/mini-os/console/console.c
> @@ -124,7 +124,7 @@ void print(int direct, const char *fmt, va_list args)
> static char buf[1024];
>
> (void)vsnprintf(buf, sizeof(buf), fmt, args);
> -
> +
> if(direct)
> {
> (void)HYPERVISOR_console_io(CONSOLEIO_write, strlen(buf), buf);
> diff --git a/extras/mini-os/events.c b/extras/mini-os/events.c
> index 036b84b..2da9b01 100644
> --- a/extras/mini-os/events.c
> +++ b/extras/mini-os/events.c
> @@ -138,7 +138,8 @@ evtchn_port_t bind_virq(uint32_t virq, evtchn_handler_t handler, void *data)
> op.virq = virq;
> op.vcpu = smp_processor_id();
>
> - if ( (rc = HYPERVISOR_event_channel_op(EVTCHNOP_bind_virq, &op)) != 0 )
> + rc = HYPERVISOR_event_channel_op(EVTCHNOP_bind_virq, &op);
> + if (rc != 0)
> {
> printk("Failed to bind virtual IRQ %d with rc=%d\n", virq, rc);
> return -1;
> diff --git a/extras/mini-os/gntmap.c b/extras/mini-os/gntmap.c
> index 22ed450..f6ab3ad 100644
> --- a/extras/mini-os/gntmap.c
> +++ b/extras/mini-os/gntmap.c
> @@ -38,6 +38,15 @@
> #include <inttypes.h>
> #include <mini-os/gntmap.h>
>
> +//#define GNTMAP_DEBUG
> +#ifdef GNTMAP_DEBUG
> +#define DEBUG(_f, _a...) \
> + printk("MINI_OS(gntmap.c:%d): %s" _f "\n", __LINE__, __func__, ## _a)
Is the "MINI_OS" prefix useful? I suspect not so much.
~Andrew
next prev parent reply other threads:[~2014-06-04 16:22 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-02 17:49 [PATCH 0/4] mini-os: initial ARM support Thomas Leonard
2014-06-02 17:49 ` [PATCH 1/4] mini-os: Fixed shutdown thread Thomas Leonard
2014-06-03 0:51 ` Samuel Thibault
2014-06-03 9:01 ` Andrew Cooper
2014-06-02 17:49 ` [PATCH 2/4] mini-os: Tidied up code Thomas Leonard
2014-06-03 0:57 ` Samuel Thibault
2014-06-02 17:49 ` [PATCH 3/4] mini-os: Initial commit to port minios to ARM Thomas Leonard
2014-06-03 9:12 ` Julien Grall
2014-06-04 16:06 ` [PATCH 0/7] mini-os: Preparing for ARM support Thomas Leonard
2014-06-04 16:06 ` [PATCH 1/7] mini-os: Fixed shutdown thread Thomas Leonard
2014-06-04 16:06 ` [PATCH 2/7] mini-os: Tidied up code Thomas Leonard
2014-06-04 16:22 ` Andrew Cooper [this message]
2014-06-05 10:24 ` Anil Madhavapeddy
2014-06-04 16:06 ` [PATCH 3/7] mini-os: Moved events code under arch Thomas Leonard
2014-06-04 16:23 ` Julien Grall
2014-06-06 13:54 ` Ian Campbell
2014-06-06 13:57 ` Ian Campbell
2014-06-04 16:06 ` [PATCH 4/7] mini-os: Switched initial C entry point to arch_init Thomas Leonard
2014-06-06 14:05 ` Ian Campbell
2014-06-04 16:06 ` [PATCH 5/7] mini-os: Moved arch-specific xenbus code under arch Thomas Leonard
2014-06-05 14:00 ` Julien Grall
2014-06-06 14:07 ` Ian Campbell
2014-06-04 16:06 ` [PATCH 6/7] mini-os: Added rmb to xenbus code Thomas Leonard
2014-06-05 13:55 ` Julien Grall
2014-06-05 17:45 ` Thomas Leonard
2014-06-06 4:59 ` karim.allah.ahmed
2014-06-06 14:15 ` Ian Campbell
2014-06-06 15:10 ` Samuel Thibault
2014-06-06 16:40 ` Ian Campbell
2014-06-09 13:56 ` Thomas Leonard
2014-06-09 14:04 ` Thomas Leonard
2014-06-04 16:06 ` [PATCH 7/7] mini-os: Moved force_evtchn_callback to header Thomas Leonard
2014-06-06 14:17 ` Ian Campbell
2014-06-09 11:54 ` Thomas Leonard
2014-06-04 16:12 ` [PATCH 0/7] mini-os: Preparing for ARM support Andrew Cooper
2014-06-02 17:49 ` [PATCH 4/4] mini-os: Added FDT support on ARM Thomas Leonard
2014-06-06 13:51 ` Ian Campbell
2014-06-05 14:36 ` [PATCH 0/4] mini-os: initial ARM support Oleksandr Tyshchenko
2014-06-05 14:57 ` Samuel Thibault
2014-06-05 17:20 ` Oleksandr Tyshchenko
2014-06-05 17:31 ` Thomas Leonard
2014-06-05 18:07 ` Oleksandr Tyshchenko
2014-06-05 18:12 ` Thomas Leonard
2014-06-05 18:21 ` Oleksandr Tyshchenko
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=538F47CA.20708@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=talex5@gmail.com \
--cc=xen-devel@lists.xenproject.org \
/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.