public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS.
@ 2008-02-22  5:10 Isaku Yamahata
  2008-02-22  5:33 ` Robin Holt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Isaku Yamahata @ 2008-02-22  5:10 UTC (permalink / raw)
  To: linux-ia64

Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor
as start info.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
---
 include/asm-ia64/meminit.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/asm-ia64/meminit.h b/include/asm-ia64/meminit.h
index f93308f..7c12c08 100644
--- a/include/asm-ia64/meminit.h
+++ b/include/asm-ia64/meminit.h
@@ -18,10 +18,17 @@
  * 	- crash dumping code reserved region
  * 	- Kernel memory map built from EFI memory map
  * 	- ELF core header
+ * ifdef CONFIG_XEN
+ *	- xen start info
+ * endif
  *
  * More could be added if necessary
  */
+#ifdef CONFIG_XEN
 #define IA64_MAX_RSVD_REGIONS 8
+#else
+#define IA64_MAX_RSVD_REGIONS 9
+#endif
 
 struct rsvd_region {
 	unsigned long start;	/* virtual address of beginning of element */
-- 
1.5.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS.
  2008-02-22  5:10 [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS Isaku Yamahata
@ 2008-02-22  5:33 ` Robin Holt
  2008-02-22  6:02 ` Isaku Yamahata
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Robin Holt @ 2008-02-22  5:33 UTC (permalink / raw)
  To: linux-ia64

On Fri, Feb 22, 2008 at 02:10:19PM +0900, Isaku Yamahata wrote:
> Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor
> as start info.
> 
> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
> ---
>  include/asm-ia64/meminit.h |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/include/asm-ia64/meminit.h b/include/asm-ia64/meminit.h
> index f93308f..7c12c08 100644
> --- a/include/asm-ia64/meminit.h
> +++ b/include/asm-ia64/meminit.h
> @@ -18,10 +18,17 @@
>   * 	- crash dumping code reserved region
>   * 	- Kernel memory map built from EFI memory map
>   * 	- ELF core header
> + * ifdef CONFIG_XEN
> + *	- xen start info
> + * endif
>   *
>   * More could be added if necessary
>   */
> +#ifdef CONFIG_XEN
>  #define IA64_MAX_RSVD_REGIONS 8
> +#else
> +#define IA64_MAX_RSVD_REGIONS 9
> +#endif

This one seems upside down to me.  You are saying there is an additional
region when CONFIG_XEN, but you are defining it larger for !CONFIG_XEN.
I concede the point that I know nothing about Xen, so please straighten
me out here.

Thanks,
Robin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS.
  2008-02-22  5:10 [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS Isaku Yamahata
  2008-02-22  5:33 ` Robin Holt
@ 2008-02-22  6:02 ` Isaku Yamahata
  2008-02-25 17:18 ` Bjorn Helgaas
  2008-02-26  1:57 ` Isaku Yamahata
  3 siblings, 0 replies; 5+ messages in thread
From: Isaku Yamahata @ 2008-02-22  6:02 UTC (permalink / raw)
  To: linux-ia64

On Thu, Feb 21, 2008 at 11:33:16PM -0600, Robin Holt wrote:
> On Fri, Feb 22, 2008 at 02:10:19PM +0900, Isaku Yamahata wrote:
> > Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor
> > as start info.
> > 
> > Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
> > ---
> >  include/asm-ia64/meminit.h |    7 +++++++
> >  1 files changed, 7 insertions(+), 0 deletions(-)
> > 
> > diff --git a/include/asm-ia64/meminit.h b/include/asm-ia64/meminit.h
> > index f93308f..7c12c08 100644
> > --- a/include/asm-ia64/meminit.h
> > +++ b/include/asm-ia64/meminit.h
> > @@ -18,10 +18,17 @@
> >   * 	- crash dumping code reserved region
> >   * 	- Kernel memory map built from EFI memory map
> >   * 	- ELF core header
> > + * ifdef CONFIG_XEN
> > + *	- xen start info
> > + * endif
> >   *
> >   * More could be added if necessary
> >   */
> > +#ifdef CONFIG_XEN
> >  #define IA64_MAX_RSVD_REGIONS 8
> > +#else
> > +#define IA64_MAX_RSVD_REGIONS 9
> > +#endif
> 
> This one seems upside down to me.  You are saying there is an additional
> region when CONFIG_XEN, but you are defining it larger for !CONFIG_XEN.
> I concede the point that I know nothing about Xen, so please straighten
> me out here.

Thank you for review. You're absolutely correct.

---
ia64/xen: increase IA64_MAX_RSVD_REGIONS.

Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor
as start info.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
---
 include/asm-ia64/meminit.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/asm-ia64/meminit.h b/include/asm-ia64/meminit.h
index f93308f..3de9c74 100644
--- a/include/asm-ia64/meminit.h
+++ b/include/asm-ia64/meminit.h
@@ -18,10 +18,17 @@
  * 	- crash dumping code reserved region
  * 	- Kernel memory map built from EFI memory map
  * 	- ELF core header
+ * ifdef CONFIG_XEN
+ *	- xen start info
+ * endif
  *
  * More could be added if necessary
  */
+#ifndef CONFIG_XEN
 #define IA64_MAX_RSVD_REGIONS 8
+#else
+#define IA64_MAX_RSVD_REGIONS 9
+#endif
 
 struct rsvd_region {
 	unsigned long start;	/* virtual address of beginning of element */
-- 
1.5.3



-- 
yamahata

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS.
  2008-02-22  5:10 [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS Isaku Yamahata
  2008-02-22  5:33 ` Robin Holt
  2008-02-22  6:02 ` Isaku Yamahata
@ 2008-02-25 17:18 ` Bjorn Helgaas
  2008-02-26  1:57 ` Isaku Yamahata
  3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Helgaas @ 2008-02-25 17:18 UTC (permalink / raw)
  To: linux-ia64

On Thursday 21 February 2008 10:10:19 pm Isaku Yamahata wrote:
> Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor
> as start info.

I don't think it's really worth adding an ifdef here to save
one struct rsvd_region (two longs).  Why not just increase
IA64_MAX_RSVD_REGIONS to 9 for everybody, and get rid of the
ifdef?

> +#ifdef CONFIG_XEN
>  #define IA64_MAX_RSVD_REGIONS 8
> +#else
> +#define IA64_MAX_RSVD_REGIONS 9
> +#endif
>  
>  struct rsvd_region {
>  	unsigned long start;	/* virtual address of beginning of element */



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS.
  2008-02-22  5:10 [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS Isaku Yamahata
                   ` (2 preceding siblings ...)
  2008-02-25 17:18 ` Bjorn Helgaas
@ 2008-02-26  1:57 ` Isaku Yamahata
  3 siblings, 0 replies; 5+ messages in thread
From: Isaku Yamahata @ 2008-02-26  1:57 UTC (permalink / raw)
  To: linux-ia64

On Mon, Feb 25, 2008 at 10:18:52AM -0700, Bjorn Helgaas wrote:
> On Thursday 21 February 2008 10:10:19 pm Isaku Yamahata wrote:
> > Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor
> > as start info.
> 
> I don't think it's really worth adding an ifdef here to save
> one struct rsvd_region (two longs).  Why not just increase
> IA64_MAX_RSVD_REGIONS to 9 for everybody, and get rid of the
> ifdef?

Thank you for comment. It works for me.
ia64/xen: increase IA64_MAX_RSVD_REGIONS.

Xenlinux/ia64 needs to reserve one more region passed from xen hypervisor
as start info.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
---
 include/asm-ia64/meminit.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/asm-ia64/meminit.h b/include/asm-ia64/meminit.h
index f93308f..8de94e2 100644
--- a/include/asm-ia64/meminit.h
+++ b/include/asm-ia64/meminit.h
@@ -18,10 +18,11 @@
  * 	- crash dumping code reserved region
  * 	- Kernel memory map built from EFI memory map
  * 	- ELF core header
+ *	- xen start info if CONFIG_XEN
  *
  * More could be added if necessary
  */
-#define IA64_MAX_RSVD_REGIONS 8
+#define IA64_MAX_RSVD_REGIONS 9
 
 struct rsvd_region {
 	unsigned long start;	/* virtual address of beginning of element */
-- 
1.5.3



-- 
yamahata

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-26  1:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-22  5:10 [PATCH 03/28] ia64/xen: increase IA64_MAX_RSVD_REGIONS Isaku Yamahata
2008-02-22  5:33 ` Robin Holt
2008-02-22  6:02 ` Isaku Yamahata
2008-02-25 17:18 ` Bjorn Helgaas
2008-02-26  1:57 ` Isaku Yamahata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox