From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: Juergen Gross <jgross@suse.com>
Cc: minios-devel@lists.xenproject.org,
xen-devel@lists.xenproject.org, wei.liu2@citrix.com
Subject: Re: [PATCH v2 1/2] mini-os: partially revert "remove using start_info ..."
Date: Mon, 29 Aug 2016 22:57:06 +0200 [thread overview]
Message-ID: <20160829205706.GG4325@var.home> (raw)
In-Reply-To: <1472480307-26293-2-git-send-email-jgross@suse.com>
Juergen Gross, on Mon 29 Aug 2016 16:18:26 +0200, wrote:
> Commit e33452c4f5547ed14defe6382b3b53664ac5bd8a ("remove using
> start_info in architecture independent code") removed the start_info
> variable completely. grub stubdom needs the start_info structure.
>
> Readd the start_info structure, but make it dependent on
> CONFIG_PARAVIRT.
>
> Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> ---
> arch/x86/setup.c | 12 ++++++++++++
> include/hypervisor.h | 13 ++++++++++++-
> 2 files changed, 24 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/setup.c b/arch/x86/setup.c
> index 86955cf..5278227 100644
> --- a/arch/x86/setup.c
> +++ b/arch/x86/setup.c
> @@ -33,6 +33,14 @@
> #include <xen/arch-x86/cpuid.h>
> #include <xen/arch-x86/hvm/start_info.h>
>
> +#ifdef CONFIG_PARAVIRT
> +/*
> + * This structure contains start-of-day info, such as pagetable base pointer,
> + * address of the shared_info structure, and things like that.
> + */
> +union start_info_union start_info_union;
> +#endif
> +
> /*
> * Shared page for communicating with the hypervisor.
> * Events flags go here, for example.
> @@ -189,6 +197,10 @@ arch_init(void *par)
> /* print out some useful information */
> print_start_of_day(par);
>
> +#ifdef CONFIG_PARAVIRT
> + memcpy(&start_info, par, sizeof(start_info));
> +#endif
> +
> start_kernel();
> }
>
> diff --git a/include/hypervisor.h b/include/hypervisor.h
> index 3073a8a..f3b1f3c 100644
> --- a/include/hypervisor.h
> +++ b/include/hypervisor.h
> @@ -27,7 +27,18 @@
> #include <mini-os/traps.h>
>
> /* hypervisor.c */
> -#ifndef CONFIG_PARAVIRT
> +#ifdef CONFIG_PARAVIRT
> +/*
> + * a placeholder for the start of day information passed up from the hypervisor
> + */
> +union start_info_union
> +{
> + start_info_t start_info;
> + char padding[512];
> +};
> +extern union start_info_union start_info_union;
> +#define start_info (start_info_union.start_info)
> +#else
> int hvm_get_parameter(int idx, uint64_t *value);
> int hvm_set_parameter(int idx, uint64_t value);
> #endif
> --
> 2.6.6
>
--
Samuel
FYLG> Tiens, vlà une URL qui va bien :
FYLG> ftp://127.0.0.1/WaReZ/NiouZeS/WinDoZe/NeWSMoNGeR/SuPeR
c'est gentil sauf que l'adresse ne fonctionne pas sa me fais une erreur
-+- Furtif in Guide du Neuneu Usenet : <MODE CERVEAU OFF> -+-
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-08-29 20:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-29 14:18 [PATCH v2 0/2] mini-os: repair stubdom build Juergen Gross
2016-08-29 14:18 ` [PATCH v2 1/2] mini-os: partially revert "remove using start_info ..." Juergen Gross
2016-08-29 20:49 ` Samuel Thibault
2016-08-29 20:56 ` Samuel Thibault
2016-08-29 20:57 ` Samuel Thibault [this message]
2016-08-29 14:18 ` [PATCH v2 2/2] mini-os: don't get xenbus parameters if xenbus is disabled Juergen Gross
2016-08-30 8:16 ` [PATCH v2 0/2] mini-os: repair stubdom build Wei Liu
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=20160829205706.GG4325@var.home \
--to=samuel.thibault@ens-lyon.org \
--cc=jgross@suse.com \
--cc=minios-devel@lists.xenproject.org \
--cc=wei.liu2@citrix.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.