* Is machine_to_phys_mapping a 4MB 'superpage'?
@ 2005-03-31 3:25 Jacob Gorm Hansen
2005-03-31 7:52 ` Keir Fraser
0 siblings, 1 reply; 4+ messages in thread
From: Jacob Gorm Hansen @ 2005-03-31 3:25 UTC (permalink / raw)
To: xen-devel
hi,
The machine_to_phys_mapping table is mapped permanently at 0xFC000000
(on x86-32). I would like to experiment with letting the domU map it at
other locations in its virtual address space, but I suppose that for
performance it is mapped as a 4MB 'super' page, and as such needs
special treatment, is this correct?
Thanks,
Jacob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is machine_to_phys_mapping a 4MB 'superpage'?
2005-03-31 3:25 Is machine_to_phys_mapping a 4MB 'superpage'? Jacob Gorm Hansen
@ 2005-03-31 7:52 ` Keir Fraser
2005-03-31 8:47 ` Jacob Gorm Hansen
0 siblings, 1 reply; 4+ messages in thread
From: Keir Fraser @ 2005-03-31 7:52 UTC (permalink / raw)
To: Jacob Gorm Hansen; +Cc: xen-devel
On 31 Mar 2005, at 04:25, Jacob Gorm Hansen wrote:
> The machine_to_phys_mapping table is mapped permanently at 0xFC000000
> (on x86-32). I would like to experiment with letting the domU map it
> at other locations in its virtual address space, but I suppose that
> for performance it is mapped as a 4MB 'super' page, and as such needs
> special treatment, is this correct?
It doesn't *have* to be mapped as a superpage -- control tools don't
when doing suspend/resume, for example. Fixing the permission checking
so that other than domain0 can remap the m2p table shouldn't be very
hard, but I'm not sure what the cleanest method would be.
-- Keir
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is machine_to_phys_mapping a 4MB 'superpage'?
2005-03-31 7:52 ` Keir Fraser
@ 2005-03-31 8:47 ` Jacob Gorm Hansen
0 siblings, 0 replies; 4+ messages in thread
From: Jacob Gorm Hansen @ 2005-03-31 8:47 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
Keir Fraser wrote:
>
> On 31 Mar 2005, at 04:25, Jacob Gorm Hansen wrote:
>
>> The machine_to_phys_mapping table is mapped permanently at 0xFC000000
>> (on x86-32). I would like to experiment with letting the domU map it
>> at other locations in its virtual address space, but I suppose that
>> for performance it is mapped as a 4MB 'super' page, and as such needs
>> special treatment, is this correct?
>
>
> It doesn't *have* to be mapped as a superpage -- control tools don't
> when doing suspend/resume, for example. Fixing the permission checking
> so that other than domain0 can remap the m2p table shouldn't be very
> hard, but I'm not sure what the cleanest method would be.
actually I would just like for domUs to be able to map it in different
locations, in order to get a little more flexible memory layout.
I will probably just try and hack something up for my immediate needs.
Jacob
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Is machine_to_phys_mapping a 4MB 'superpage'?
@ 2005-03-31 10:44 Ian Pratt
0 siblings, 0 replies; 4+ messages in thread
From: Ian Pratt @ 2005-03-31 10:44 UTC (permalink / raw)
To: Jacob Gorm Hansen, Keir Fraser; +Cc: xen-devel
> > It doesn't *have* to be mapped as a superpage -- control
> tools don't
> > when doing suspend/resume, for example. Fixing the
> permission checking
> > so that other than domain0 can remap the m2p table
> shouldn't be very
> > hard, but I'm not sure what the cleanest method would be.
>
> actually I would just like for domUs to be able to map it in
> different locations, in order to get a little more flexible
> memory layout.
>
> I will probably just try and hack something up for my immediate needs.
I'd like to see this as part of a wider campaign to make the virtual
memory layout more flexible ahead of PAE. I think we should make the
hypervisor 'hole' variable size. This is perhaps best done by moving
fixmap from the top of memory to the top of the bottom. If we do this I
don't think we'll need to turn any of the current constants into
variables.
As regards where the m2p table, that will need to be variable sized too.
It woul be interesting to run some lmbench numbers just to check that
nothing bad happens if we do away with the 4MB mapping.
Ian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-31 10:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-31 3:25 Is machine_to_phys_mapping a 4MB 'superpage'? Jacob Gorm Hansen
2005-03-31 7:52 ` Keir Fraser
2005-03-31 8:47 ` Jacob Gorm Hansen
-- strict thread matches above, loose matches on Subject: below --
2005-03-31 10:44 Ian Pratt
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.