* Re: [Xen-changelog] This adds a patch for the vanilla kernel, to be pushed upstream some
[not found] <E1Ds0Vu-0004aO-Bd@xenbits.xensource.com>
@ 2005-07-12 15:47 ` Rik van Riel
2005-07-12 16:07 ` Keir Fraser
2005-07-13 7:55 ` Gerd Knorr
0 siblings, 2 replies; 4+ messages in thread
From: Rik van Riel @ 2005-07-12 15:47 UTC (permalink / raw)
To: xen-devel
On Mon, 11 Jul 2005, Xen patchbot -unstable wrote:
> --- a/linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c Mon Jul 11 15:43:12 2005
> +++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c Mon Jul 11 15:46:46 2005
> if (PTRS_PER_PMD == 1 || !pgd)
> return pgd;
>
> + if (!HAVE_SHARED_KERNEL_PMD) {
> + /* alloc and copy kernel pmd */
> + unsigned long flags;
> + pgd_t *copy_pgd = pgd_offset_k(PAGE_OFFSET);
> + pud_t *copy_pud = pud_offset(copy_pgd, PAGE_OFFSET);
I don't understand how the code inside this if condition
ever gets to run. Surely the previous test should catch
the non-PAE case already ?
Or is this code a preparation for non-3:1 splits ?
--
The Theory of Escalating Commitment: "The cost of continuing mistakes is
borne by others, while the cost of admitting mistakes is borne by yourself."
-- Joseph Stiglitz, Nobel Laureate in Economics
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Re: [Xen-changelog] This adds a patch for the vanilla kernel, to be pushed upstream some
2005-07-12 15:47 ` [Xen-changelog] This adds a patch for the vanilla kernel, to be pushed upstream some Rik van Riel
@ 2005-07-12 16:07 ` Keir Fraser
2005-07-12 16:04 ` Rik van Riel
2005-07-13 7:55 ` Gerd Knorr
1 sibling, 1 reply; 4+ messages in thread
From: Keir Fraser @ 2005-07-12 16:07 UTC (permalink / raw)
To: Rik van Riel; +Cc: xen-devel
On 12 Jul 2005, at 16:47, Rik van Riel wrote:
> I don't understand how the code inside this if condition
> ever gets to run. Surely the previous test should catch
> the non-PAE case already ?
>
> Or is this code a preparation for non-3:1 splits ?
That code path would get executed by native pae builds (ie. non-xen pae
builds).
It's a dead path on xen/i386 but we keep it around to keep the diff vs
i386 small.
-- Keir
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [Xen-changelog] This adds a patch for the vanilla kernel, to be pushed upstream some
2005-07-12 16:07 ` Keir Fraser
@ 2005-07-12 16:04 ` Rik van Riel
0 siblings, 0 replies; 4+ messages in thread
From: Rik van Riel @ 2005-07-12 16:04 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel
On Tue, 12 Jul 2005, Keir Fraser wrote:
> On 12 Jul 2005, at 16:47, Rik van Riel wrote:
>
> > I don't understand how the code inside this if condition
> > ever gets to run. Surely the previous test should catch
> > the non-PAE case already ?
> >
> > Or is this code a preparation for non-3:1 splits ?
>
> That code path would get executed by native pae builds (ie. non-xen pae
> builds).
Makes sense. There are non-3:1 splits in native PAE builds.
--
The Theory of Escalating Commitment: "The cost of continuing mistakes is
borne by others, while the cost of admitting mistakes is borne by yourself."
-- Joseph Stiglitz, Nobel Laureate in Economics
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: [Xen-changelog] This adds a patch for the vanilla kernel, to be pushed upstream some
2005-07-12 15:47 ` [Xen-changelog] This adds a patch for the vanilla kernel, to be pushed upstream some Rik van Riel
2005-07-12 16:07 ` Keir Fraser
@ 2005-07-13 7:55 ` Gerd Knorr
1 sibling, 0 replies; 4+ messages in thread
From: Gerd Knorr @ 2005-07-13 7:55 UTC (permalink / raw)
To: Rik van Riel; +Cc: xen-devel
Rik van Riel <riel@redhat.com> writes:
> On Mon, 11 Jul 2005, Xen patchbot -unstable wrote:
>
> > --- a/linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c Mon Jul 11 15:43:12 2005
> > +++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c Mon Jul 11 15:46:46 2005
>
> > if (PTRS_PER_PMD == 1 || !pgd)
> > return pgd;
> >
> > + if (!HAVE_SHARED_KERNEL_PMD) {
> > + /* alloc and copy kernel pmd */
> > + unsigned long flags;
> > + pgd_t *copy_pgd = pgd_offset_k(PAGE_OFFSET);
> > + pud_t *copy_pud = pud_offset(copy_pgd, PAGE_OFFSET);
>
> I don't understand how the code inside this if condition
> ever gets to run. Surely the previous test should catch
> the non-PAE case already ?
It's about PAE mode. xenlinux in PAE mode does _not_ have a shared
PMD for the kernel address space.
Gerd
--
panic("it works"); /* avoid being flooded with debug messages */
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-13 7:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1Ds0Vu-0004aO-Bd@xenbits.xensource.com>
2005-07-12 15:47 ` [Xen-changelog] This adds a patch for the vanilla kernel, to be pushed upstream some Rik van Riel
2005-07-12 16:07 ` Keir Fraser
2005-07-12 16:04 ` Rik van Riel
2005-07-13 7:55 ` Gerd Knorr
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.