|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: Continuing problems booting
Gerd Hoffmann wrote:
Gerd Hoffmann wrote:
i.e. early iomap setup is different in 32bit and 64bit. Which would
also explain why vgacon works just fine in 64bit mode.
I think it is something else.
arch/x86/mm/init_64.c, phys_pte_init():
/*
* We will re-use the existing mapping.
* Xen for example has some special requirements, like mapping
* pagetable pages as RO. So assume someone who pre-setup
* these mappings are more intelligent.
*/
if (pte_val(*pte)) {
pages++;
continue;
}
I think that does also make sure vga mappings are not overwritten with
something else. 32bit seems to have no equivalent for this though ...
It does, in a fairly hacky and disgusting way. During boot, we use a
special version of xen_set_pte which ignores attempts to convert a
RO->RW mapping, in order to protect existing pagetable mappings. But it
probably won't help if someone is trying to replace the ISA mappings
with something else. In theory all those mappings should be created
with _PAGE_IOMAP anyway, so we'd do the right thing; but I don't think
that's happening. In the meantime I could extend the hack to look for
attempts to overwrite _PAGE_IOMAP mappings or something... Or force
_PAGE_IOMAP on for pfns in the ISA window.
Fortunately there seems to be an active attempt to unify 32 and 64-bit
mapping creation, should help (so long as it converges on the 64-bit
code, which is more sensible).
J
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] Re: Continuing problems booting, (continued)
- Re: [Xen-devel] Re: Continuing problems booting, Jeremy Fitzhardinge
- Re: [Xen-devel] Re: Continuing problems booting, Gerd Hoffmann
- Re: [Xen-devel] Re: Continuing problems booting, Jeremy Fitzhardinge
- Re: [Xen-devel] Re: Continuing problems booting, Gerd Hoffmann
- Re: [Xen-devel] Re: Continuing problems booting, Gerd Hoffmann
- Re: [Xen-devel] Re: Continuing problems booting, Jeremy Fitzhardinge
- Re: [Xen-devel] Re: Continuing problems booting, Gerd Hoffmann
- Re: [Xen-devel] Re: Continuing problems booting, Jeremy Fitzhardinge
- Re: [Xen-devel] Re: Continuing problems booting, Gerd Hoffmann
- Re: [Xen-devel] Re: Continuing problems booting, Jeremy Fitzhardinge
|
|
|
|
|