* Xen hypervisor hangs on booting against c/s 16925
@ 2008-01-29 5:58 Li, Haicheng
2008-01-29 7:40 ` Li, Haicheng
2008-01-29 9:37 ` Keir Fraser
0 siblings, 2 replies; 18+ messages in thread
From: Li, Haicheng @ 2008-01-29 5:58 UTC (permalink / raw)
To: xen-devel
Xen hangs on booting with following log printed:
(XEN) Initializing CPU#0
(XEN) Detected 2992.574 MHz processor.
(XEN) (XEN) (XEN) (XEN) (XEN)
This issue was introduced by c/s 16889.
Here is the bugzilla entry:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
-- haicheng
^ permalink raw reply [flat|nested] 18+ messages in thread
* RE: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 5:58 Xen hypervisor hangs on booting against c/s 16925 Li, Haicheng
@ 2008-01-29 7:40 ` Li, Haicheng
2008-01-29 7:53 ` Keir Fraser
2008-01-29 9:37 ` Keir Fraser
1 sibling, 1 reply; 18+ messages in thread
From: Li, Haicheng @ 2008-01-29 7:40 UTC (permalink / raw)
To: Li, Haicheng, xen-devel
Li, Haicheng wrote:
> Xen hangs on booting with following log printed:
>
> (XEN) Initializing CPU#0
> (XEN) Detected 2992.574 MHz processor.
> (XEN) (XEN) (XEN) (XEN) (XEN)
>
> This issue was introduced by c/s 16889.
>
> Here is the bugzilla entry:
> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
>
This issue only happens when we pass parameter "console=com1,vga" to
xen.
If just using "console=com1", we can bypass this issue.
-- haicheng
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 7:40 ` Li, Haicheng
@ 2008-01-29 7:53 ` Keir Fraser
0 siblings, 0 replies; 18+ messages in thread
From: Keir Fraser @ 2008-01-29 7:53 UTC (permalink / raw)
To: Li, Haicheng, xen-devel
On 29/1/08 07:40, "Li, Haicheng" <haicheng.li@intel.com> wrote:
>> Xen hangs on booting with following log printed:
>>
>> (XEN) Initializing CPU#0
>> (XEN) Detected 2992.574 MHz processor.
>> (XEN) (XEN) (XEN) (XEN) (XEN)
>>
>> This issue was introduced by c/s 16889.
>>
>> Here is the bugzilla entry:
>> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
>
> This issue only happens when we pass parameter "console=com1,vga" to
> xen.
> If just using "console=com1", we can bypass this issue.
Ah, easily fixed. Most of our internal testing is serial only. :-)
-- Keir
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 5:58 Xen hypervisor hangs on booting against c/s 16925 Li, Haicheng
2008-01-29 7:40 ` Li, Haicheng
@ 2008-01-29 9:37 ` Keir Fraser
2008-01-29 10:05 ` Jan Beulich
1 sibling, 1 reply; 18+ messages in thread
From: Keir Fraser @ 2008-01-29 9:37 UTC (permalink / raw)
To: Li, Haicheng, xen-devel
Fixed by c/s 16926.
-- Keir
On 29/1/08 05:58, "Li, Haicheng" <haicheng.li@intel.com> wrote:
> Xen hangs on booting with following log printed:
>
> (XEN) Initializing CPU#0
> (XEN) Detected 2992.574 MHz processor.
> (XEN) (XEN) (XEN) (XEN) (XEN)
>
> This issue was introduced by c/s 16889.
>
> Here is the bugzilla entry:
> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
>
> -- haicheng
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 9:37 ` Keir Fraser
@ 2008-01-29 10:05 ` Jan Beulich
2008-01-29 10:20 ` Keir Fraser
0 siblings, 1 reply; 18+ messages in thread
From: Jan Beulich @ 2008-01-29 10:05 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
Don't you think that it would also be reasonable to map all of the RAM
holes below 1M uncacheable, not just the VGA space? Since early boot
code can't know this, I added a map_pages_to_xen(...,
PAGE_HYPERVISOR_NOCACHE) for the below-1Mb case of the code
that you just fixed.
Jan
>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 10:37 >>>
Fixed by c/s 16926.
-- Keir
On 29/1/08 05:58, "Li, Haicheng" <haicheng.li@intel.com> wrote:
> Xen hangs on booting with following log printed:
>
> (XEN) Initializing CPU#0
> (XEN) Detected 2992.574 MHz processor.
> (XEN) (XEN) (XEN) (XEN) (XEN)
>
> This issue was introduced by c/s 16889.
>
> Here is the bugzilla entry:
> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
>
> -- haicheng
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:05 ` Jan Beulich
@ 2008-01-29 10:20 ` Keir Fraser
2008-01-29 10:29 ` Christoph Egger
` (2 more replies)
0 siblings, 3 replies; 18+ messages in thread
From: Keir Fraser @ 2008-01-29 10:20 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
Isn't the memory map below 1MB well known, and no I/O exists down there
except for VGA? Below that is conventional RAM; above that is ROM space.
-- Keir
On 29/1/08 10:05, "Jan Beulich" <jbeulich@novell.com> wrote:
> Don't you think that it would also be reasonable to map all of the RAM
> holes below 1M uncacheable, not just the VGA space? Since early boot
> code can't know this, I added a map_pages_to_xen(...,
> PAGE_HYPERVISOR_NOCACHE) for the below-1Mb case of the code
> that you just fixed.
>
> Jan
>
>>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 10:37 >>>
> Fixed by c/s 16926.
>
> -- Keir
>
> On 29/1/08 05:58, "Li, Haicheng" <haicheng.li@intel.com> wrote:
>
>> Xen hangs on booting with following log printed:
>>
>> (XEN) Initializing CPU#0
>> (XEN) Detected 2992.574 MHz processor.
>> (XEN) (XEN) (XEN) (XEN) (XEN)
>>
>> This issue was introduced by c/s 16889.
>>
>> Here is the bugzilla entry:
>> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
>>
>> -- haicheng
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:20 ` Keir Fraser
@ 2008-01-29 10:29 ` Christoph Egger
2008-01-29 10:34 ` Jan Beulich
2008-01-29 11:58 ` Alan Cox
2 siblings, 0 replies; 18+ messages in thread
From: Christoph Egger @ 2008-01-29 10:29 UTC (permalink / raw)
To: xen-devel
On Tuesday 29 January 2008 11:20:24 Keir Fraser wrote:
> Isn't the memory map below 1MB well known, and no I/O exists down there
> except for VGA? Below that is conventional RAM; above that is ROM space.
> -- Keir
>
You remind me on the old days where everyone played with config.sys and
autoexec.bat. ;-)
Christoph
> On 29/1/08 10:05, "Jan Beulich" <jbeulich@novell.com> wrote:
> > Don't you think that it would also be reasonable to map all of the RAM
> > holes below 1M uncacheable, not just the VGA space? Since early boot
> > code can't know this, I added a map_pages_to_xen(...,
> > PAGE_HYPERVISOR_NOCACHE) for the below-1Mb case of the code
> > that you just fixed.
> >
> > Jan
> >
> >>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 10:37 >>>
> >
> > Fixed by c/s 16926.
> >
> > -- Keir
> >
> > On 29/1/08 05:58, "Li, Haicheng" <haicheng.li@intel.com> wrote:
> >> Xen hangs on booting with following log printed:
> >>
> >> (XEN) Initializing CPU#0
> >> (XEN) Detected 2992.574 MHz processor.
> >> (XEN) (XEN) (XEN) (XEN) (XEN)
> >>
> >> This issue was introduced by c/s 16889.
> >>
> >> Here is the bugzilla entry:
> >> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
> >>
> >> -- haicheng
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:20 ` Keir Fraser
2008-01-29 10:29 ` Christoph Egger
@ 2008-01-29 10:34 ` Jan Beulich
2008-01-29 10:36 ` Keir Fraser
2008-01-29 10:45 ` Keir Fraser
2008-01-29 11:58 ` Alan Cox
2 siblings, 2 replies; 18+ messages in thread
From: Jan Beulich @ 2008-01-29 10:34 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
I/O can at least theoretically exist anywhere in that space, not just in
the VGA range. Also, mapping ROM WB seems suspicious at least - you're
relying on MTRR settings then without really needing to. Otoh, with
PAGE_HYPERVISOR_NOCACHE encoding UC- rather than UC, mapping
WP MTRR regions this way would yield (model specific) WC, which again
seems suspicious, so maybe the VGA hole should simply be kept (from
boot, at UC-), but everything else should be forced to UC (or MTRRs
should be inquired so that at least WP regions can be kept WP).
Jan
>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 11:20 >>>
Isn't the memory map below 1MB well known, and no I/O exists down there
except for VGA? Below that is conventional RAM; above that is ROM space.
-- Keir
On 29/1/08 10:05, "Jan Beulich" <jbeulich@novell.com> wrote:
> Don't you think that it would also be reasonable to map all of the RAM
> holes below 1M uncacheable, not just the VGA space? Since early boot
> code can't know this, I added a map_pages_to_xen(...,
> PAGE_HYPERVISOR_NOCACHE) for the below-1Mb case of the code
> that you just fixed.
>
> Jan
>
>>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 10:37 >>>
> Fixed by c/s 16926.
>
> -- Keir
>
> On 29/1/08 05:58, "Li, Haicheng" <haicheng.li@intel.com> wrote:
>
>> Xen hangs on booting with following log printed:
>>
>> (XEN) Initializing CPU#0
>> (XEN) Detected 2992.574 MHz processor.
>> (XEN) (XEN) (XEN) (XEN) (XEN)
>>
>> This issue was introduced by c/s 16889.
>>
>> Here is the bugzilla entry:
>> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
>>
>> -- haicheng
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:34 ` Jan Beulich
@ 2008-01-29 10:36 ` Keir Fraser
2008-01-29 10:40 ` Keir Fraser
2008-01-29 12:22 ` Alan Cox
2008-01-29 10:45 ` Keir Fraser
1 sibling, 2 replies; 18+ messages in thread
From: Keir Fraser @ 2008-01-29 10:36 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
How about we just map the whole megabyte UC- at start of day? We rarely
touch anything down there and when we do it'll mostly be BIOS tables (hence
in ROM and hence not marked as RAM in e820 and hence your approach would
have them also marked UC-). That at least has the tangible benefit of
removing a few lines of (assembly) code. :-)
-- Keir
On 29/1/08 10:34, "Jan Beulich" <jbeulich@novell.com> wrote:
> I/O can at least theoretically exist anywhere in that space, not just in
> the VGA range. Also, mapping ROM WB seems suspicious at least - you're
> relying on MTRR settings then without really needing to. Otoh, with
> PAGE_HYPERVISOR_NOCACHE encoding UC- rather than UC, mapping
> WP MTRR regions this way would yield (model specific) WC, which again
> seems suspicious, so maybe the VGA hole should simply be kept (from
> boot, at UC-), but everything else should be forced to UC (or MTRRs
> should be inquired so that at least WP regions can be kept WP).
>
> Jan
>
>>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 11:20 >>>
> Isn't the memory map below 1MB well known, and no I/O exists down there
> except for VGA? Below that is conventional RAM; above that is ROM space.
>
> -- Keir
>
> On 29/1/08 10:05, "Jan Beulich" <jbeulich@novell.com> wrote:
>
>> Don't you think that it would also be reasonable to map all of the RAM
>> holes below 1M uncacheable, not just the VGA space? Since early boot
>> code can't know this, I added a map_pages_to_xen(...,
>> PAGE_HYPERVISOR_NOCACHE) for the below-1Mb case of the code
>> that you just fixed.
>>
>> Jan
>>
>>>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 10:37 >>>
>> Fixed by c/s 16926.
>>
>> -- Keir
>>
>> On 29/1/08 05:58, "Li, Haicheng" <haicheng.li@intel.com> wrote:
>>
>>> Xen hangs on booting with following log printed:
>>>
>>> (XEN) Initializing CPU#0
>>> (XEN) Detected 2992.574 MHz processor.
>>> (XEN) (XEN) (XEN) (XEN) (XEN)
>>>
>>> This issue was introduced by c/s 16889.
>>>
>>> Here is the bugzilla entry:
>>> http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1157
>>>
>>> -- haicheng
>>>
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@lists.xensource.com
>>> http://lists.xensource.com/xen-devel
>>
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>
>
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:36 ` Keir Fraser
@ 2008-01-29 10:40 ` Keir Fraser
2008-01-29 10:54 ` Jan Beulich
2008-01-29 12:22 ` Alan Cox
1 sibling, 1 reply; 18+ messages in thread
From: Keir Fraser @ 2008-01-29 10:40 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
Also, bear in mind that dom0 permanently has a WB mapping of the whole
bottom megabyte.
-- Keir
On 29/1/08 10:36, "Keir Fraser" <Keir.Fraser@cl.cam.ac.uk> wrote:
> How about we just map the whole megabyte UC- at start of day? We rarely touch
> anything down there and when we do it'll mostly be BIOS tables (hence in ROM
> and hence not marked as RAM in e820 and hence your approach would have them
> also marked UC-). That at least has the tangible benefit of removing a few
> lines of (assembly) code. :-)
>
> -- Keir
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:34 ` Jan Beulich
2008-01-29 10:36 ` Keir Fraser
@ 2008-01-29 10:45 ` Keir Fraser
2008-01-29 10:52 ` Jan Beulich
1 sibling, 1 reply; 18+ messages in thread
From: Keir Fraser @ 2008-01-29 10:45 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
On 29/1/08 10:34, "Jan Beulich" <jbeulich@novell.com> wrote:
> Otoh, with
> PAGE_HYPERVISOR_NOCACHE encoding UC- rather than UC, mapping
> WP MTRR regions this way would yield (model specific) WC, which again
> seems suspicious, so maybe the VGA hole should simply be kept (from
> boot, at UC-), but everything else should be forced to UC (or MTRRs
> should be inquired so that at least WP regions can be kept WP).
If we don't write to a MTRR WP region, then actually mapping as WC does not
matter. We never write to the range 0xc0000-0xfffff. Anything we write to
below 0xa0000 had better be RAM, or we've got bigger problems than the WP
attribute!
-- Keir
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:45 ` Keir Fraser
@ 2008-01-29 10:52 ` Jan Beulich
2008-01-29 10:54 ` Keir Fraser
0 siblings, 1 reply; 18+ messages in thread
From: Jan Beulich @ 2008-01-29 10:52 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 11:45 >>>
>On 29/1/08 10:34, "Jan Beulich" <jbeulich@novell.com> wrote:
>
>> Otoh, with
>> PAGE_HYPERVISOR_NOCACHE encoding UC- rather than UC, mapping
>> WP MTRR regions this way would yield (model specific) WC, which again
>> seems suspicious, so maybe the VGA hole should simply be kept (from
>> boot, at UC-), but everything else should be forced to UC (or MTRRs
>> should be inquired so that at least WP regions can be kept WP).
>
>If we don't write to a MTRR WP region, then actually mapping as WC does not
>matter. We never write to the range 0xc0000-0xfffff. Anything we write to
>below 0xa0000 had better be RAM, or we've got bigger problems than the WP
>attribute!
Unfortunately it does matter - WC does not permit read caching, but
does permit speculative reads. That's both not what we want.
Jan
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:52 ` Jan Beulich
@ 2008-01-29 10:54 ` Keir Fraser
2008-01-29 11:08 ` Jan Beulich
0 siblings, 1 reply; 18+ messages in thread
From: Keir Fraser @ 2008-01-29 10:54 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
On 29/1/08 10:52, "Jan Beulich" <jbeulich@novell.com> wrote:
>> If we don't write to a MTRR WP region, then actually mapping as WC does not
>> matter. We never write to the range 0xc0000-0xfffff. Anything we write to
>> below 0xa0000 had better be RAM, or we've got bigger problems than the WP
>> attribute!
>
> Unfortunately it does matter - WC does not permit read caching, but
> does permit speculative reads. That's both not what we want.
Is your concern that something with read side effects (i.e., I/O) would be
mapped with WP type in the MTRR? Does that not seem rather unlikely?
Anyhow, WP attribute also allows read speculation, just like WC, so in
respect of read speculation it does not matter which caching attribute we
actually use.
-- Keir
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:40 ` Keir Fraser
@ 2008-01-29 10:54 ` Jan Beulich
2008-01-29 10:55 ` Keir Fraser
0 siblings, 1 reply; 18+ messages in thread
From: Jan Beulich @ 2008-01-29 10:54 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
.. which is bad, and should probably be changed, too. Jan
>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 11:40 >>>
Also, bear in mind that dom0 permanently has a WB mapping of the whole
bottom megabyte.
-- Keir
On 29/1/08 10:36, "Keir Fraser" <Keir.Fraser@cl.cam.ac.uk> wrote:
> How about we just map the whole megabyte UC- at start of day? We rarely touch
> anything down there and when we do it'll mostly be BIOS tables (hence in ROM
> and hence not marked as RAM in e820 and hence your approach would have them
> also marked UC-). That at least has the tangible benefit of removing a few
> lines of (assembly) code. :-)
>
> -- Keir
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:54 ` Jan Beulich
@ 2008-01-29 10:55 ` Keir Fraser
0 siblings, 0 replies; 18+ messages in thread
From: Keir Fraser @ 2008-01-29 10:55 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
Does Linux have a permanent mapping, indeed a superpage mapping, of the
bottom megabyte? I think it does. The fact that this persists in the Linux
kernel, which is thoroughly tested on many many platforms, I think indicates
we are over-worrying about mappings of the bottom megabyte.
-- Keir
On 29/1/08 10:54, "Jan Beulich" <jbeulich@novell.com> wrote:
> .. which is bad, and should probably be changed, too. Jan
>
>>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 11:40 >>>
> Also, bear in mind that dom0 permanently has a WB mapping of the whole
> bottom megabyte.
>
> -- Keir
>
> On 29/1/08 10:36, "Keir Fraser" <Keir.Fraser@cl.cam.ac.uk> wrote:
>
>> How about we just map the whole megabyte UC- at start of day? We rarely touch
>> anything down there and when we do it'll mostly be BIOS tables (hence in ROM
>> and hence not marked as RAM in e820 and hence your approach would have them
>> also marked UC-). That at least has the tangible benefit of removing a few
>> lines of (assembly) code. :-)
>>
>> -- Keir
>
>
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:54 ` Keir Fraser
@ 2008-01-29 11:08 ` Jan Beulich
0 siblings, 0 replies; 18+ messages in thread
From: Jan Beulich @ 2008-01-29 11:08 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 29.01.08 11:54 >>>
>On 29/1/08 10:52, "Jan Beulich" <jbeulich@novell.com> wrote:
>
>>> If we don't write to a MTRR WP region, then actually mapping as WC does not
>>> matter. We never write to the range 0xc0000-0xfffff. Anything we write to
>>> below 0xa0000 had better be RAM, or we've got bigger problems than the WP
>>> attribute!
>>
>> Unfortunately it does matter - WC does not permit read caching, but
>> does permit speculative reads. That's both not what we want.
>
>Is your concern that something with read side effects (i.e., I/O) would be
>mapped with WP type in the MTRR? Does that not seem rather unlikely?
No, it was rather the ordering of reads that I was concerned about, but ...
>Anyhow, WP attribute also allows read speculation, just like WC, so in
>respect of read speculation it does not matter which caching attribute we
>actually use.
... yes, I didn't look closely enough at the WP characteristics. So we
would only inhibit read caching then.
Jan
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:20 ` Keir Fraser
2008-01-29 10:29 ` Christoph Egger
2008-01-29 10:34 ` Jan Beulich
@ 2008-01-29 11:58 ` Alan Cox
2 siblings, 0 replies; 18+ messages in thread
From: Alan Cox @ 2008-01-29 11:58 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel, Jan Beulich
On Tue, 29 Jan 2008 10:20:24 +0000
Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
> Isn't the memory map below 1MB well known, and no I/O exists down there
> except for VGA? Below that is conventional RAM; above that is ROM space.
Low 640K RAM
Above that ISA hole
Above that ROM (often shadowed into RAM)
Of the 640K RAM the low page is owned by the BIOS as are pages above the
EBDA. Some systems also use a 1 page EBDA to hide hardware bugs with
DMA prefetches running off the end of the 640K of RAM into I/O space.
The E820 map then tells you which bits of the 640K are owned by the BIOS
ACPI layer.
The ISA window is all non-cachable device mmio but rarely used for
anything but the PCI routed legacy VGA and MDA.
Alan
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: Xen hypervisor hangs on booting against c/s 16925
2008-01-29 10:36 ` Keir Fraser
2008-01-29 10:40 ` Keir Fraser
@ 2008-01-29 12:22 ` Alan Cox
1 sibling, 0 replies; 18+ messages in thread
From: Alan Cox @ 2008-01-29 12:22 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel, Jan Beulich
On Tue, 29 Jan 2008 10:36:57 +0000
Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
> How about we just map the whole megabyte UC- at start of day? We rarely
> touch anything down there and when we do it'll mostly be BIOS tables (hence
> in ROM and hence not marked as RAM in e820
Most BIOS tables are in RAM because they are built each boot. Mapping the
low 640K UC is also going to suprise the BIOS somewhat and seems to be
asking for trouble.
The MTRR mappings for the low 1Mb are special anyway and aligned with the
need for 640K RAM and a following ISA hole.
Alan
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2008-01-29 12:22 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-29 5:58 Xen hypervisor hangs on booting against c/s 16925 Li, Haicheng
2008-01-29 7:40 ` Li, Haicheng
2008-01-29 7:53 ` Keir Fraser
2008-01-29 9:37 ` Keir Fraser
2008-01-29 10:05 ` Jan Beulich
2008-01-29 10:20 ` Keir Fraser
2008-01-29 10:29 ` Christoph Egger
2008-01-29 10:34 ` Jan Beulich
2008-01-29 10:36 ` Keir Fraser
2008-01-29 10:40 ` Keir Fraser
2008-01-29 10:54 ` Jan Beulich
2008-01-29 10:55 ` Keir Fraser
2008-01-29 12:22 ` Alan Cox
2008-01-29 10:45 ` Keir Fraser
2008-01-29 10:52 ` Jan Beulich
2008-01-29 10:54 ` Keir Fraser
2008-01-29 11:08 ` Jan Beulich
2008-01-29 11:58 ` Alan Cox
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.