All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Tim Deegan <tim@xen.org>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH v2] x86: debugging code for testing 16Tb support on smaller memory systems
Date: Thu, 24 Jan 2013 12:23:41 +0000	[thread overview]
Message-ID: <510135DD02000078000B91E3@nat28.tlf.novell.com> (raw)
In-Reply-To: <20130124113657.GC18850@ocelot.phlegethon.org>

>>> On 24.01.13 at 12:36, Tim Deegan <tim@xen.org> wrote:
> At 14:26 +0000 on 23 Jan (1358951188), Jan Beulich wrote:
>> --- a/xen/arch/x86/setup.c
>> +++ b/xen/arch/x86/setup.c
>> @@ -82,6 +82,11 @@ boolean_param("noapic", skip_ioapic_setu
>>  s8 __read_mostly xen_cpuidle = -1;
>>  boolean_param("cpuidle", xen_cpuidle);
>>  
>> +#ifndef NDEBUG
>> +unsigned long __initdata highmem_start;
>> +size_param("highmem-start", highmem_start);
>> +#endif
>> +
>>  cpumask_t __read_mostly cpu_present_map;
>>  
>>  unsigned long __read_mostly xen_phys_start;
>> @@ -787,6 +792,14 @@ void __init __start_xen(unsigned long mb
>>      modules_headroom = bzimage_headroom(bootstrap_map(mod), mod->mod_end);
>>      bootstrap_map(NULL);
>>  
>> +#ifndef highmem_start
>> +    /* Don't allow split below 4Gb. */
>> +    if ( highmem_start < GB(4) )
>> +        highmem_start = 0;
>> +    else /* align to L3 entry boundary */
>> +        highmem_start &= ~((1UL << L3_PAGETABLE_SHIFT) - 1);
>> +#endif
> 
> DYM #ifndef NDEBUG ?  I can see that checking for highmem_start being a
> macro is strictly correct

I intended it to be that way, because there could be other uses
for having the symbol #define-d/real.

> but it seems more vulnerable to later changes,
> esp. since this:
> 
>> --- a/xen/include/asm-x86/setup.h
>> +++ b/xen/include/asm-x86/setup.h
>> @@ -43,4 +43,10 @@ void microcode_grab_module(
>>  
>>  extern uint8_t kbd_shift_flags;
>>  
>> +#ifdef NDEBUG
>> +# define highmem_start 0
>> +#else
>> +extern unsigned long highmem_start;
>> +#endif
> 
> happens so far away. 

I realize that, but these getting out of sync is no problem the
way it is coded now. The distance of the two would really be
more of a problem imo if the condition here got changed (which
would then require to also change it up there).

Jan

  reply	other threads:[~2013-01-24 12:23 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22 10:45 [PATCH 00/11] x86: support up to 16Tb Jan Beulich
2013-01-22 10:50 ` [PATCH 02/11] x86: extend frame table virtual space Jan Beulich
2013-01-22 10:50 ` [PATCH 03/11] x86: re-introduce map_domain_page() et al Jan Beulich
2013-01-22 10:51 ` [PATCH 04/11] x86: properly use map_domain_page() when building Dom0 Jan Beulich
2013-01-22 10:52 ` [PATCH 05/11] x86: consolidate initialization of PV guest L4 page tables Jan Beulich
2013-01-22 10:53 ` [PATCH 06/11] x86: properly use map_domain_page() during domain creation/destruction Jan Beulich
2013-01-22 10:55 ` [PATCH 07/11] x86: properly use map_domain_page() during page table manipulation Jan Beulich
2013-01-22 10:55 ` [PATCH 08/11] x86: properly use map_domain_page() in nested HVM code Jan Beulich
2013-01-22 10:56 ` [PATCH 09/11] x86: properly use map_domain_page() in miscellaneous places Jan Beulich
2013-01-22 10:57 ` [PATCH 10/11] tmem: partial adjustments for x86 16Tb support Jan Beulich
2013-01-22 17:55   ` Dan Magenheimer
2013-01-22 10:57 ` [PATCH 11/11] x86: support up to 16Tb Jan Beulich
2013-01-22 15:20   ` Dan Magenheimer
2013-01-22 15:31     ` Jan Beulich
2013-01-22 10:58 ` [PATCH 12/11] x86: debugging code for testing 16Tb support on smaller memory systems Jan Beulich
2013-01-23 14:26   ` [PATCH v2] " Jan Beulich
2013-01-23 15:18     ` Keir Fraser
2013-01-24 11:36     ` Tim Deegan
2013-01-24 12:23       ` Jan Beulich [this message]
2013-01-24 12:36         ` Tim Deegan
2013-01-22 20:13 ` [PATCH 00/11] x86: support up to 16Tb Keir Fraser
2013-01-23  9:33 ` Keir Fraser
2013-01-23  9:56   ` Jan Beulich
2013-01-23 10:16     ` Keir Fraser

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=510135DD02000078000B91E3@nat28.tlf.novell.com \
    --to=jbeulich@suse.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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.