Skip to contentSkip to conversation

pfn_pte/pfn_pmd

DISCUSSION Jan Beulich 2 participants 4 messages Dec 21, 2005

lore
Share & tools
lore
#0 lore raw

Isn't it a bug to have pfn_pte be defined identically as pfn_pte_ma in i386's pgtable-2level.h? Shouldn't this rather be done the same as in pgtable-3level.h?

Similarly for pfn_pmd (which BUG()-s in pgtable-3level.h)...

Thanks, Jan

#1 lore raw

Apparently it's not, as the translation is done in __pte (and not in __pte_ma); I was just getting confused by the two different mechanisms use for non-PAE and PAE, which, while merging, I'd like to get to use as much unconditional code as possible.

I still wonder, however, whether the BUG()/panic() in PAE's pfn_pmd() couldn't be removed...

Jan

Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jan Beulich" <[email protected]> 21.12.05 11:44:31 >>>

Isn't it a bug to have pfn_pte be defined identically as pfn_pte_ma in i386's pgtable-2level.h? Shouldn't this rather be done the same as in pgtable-3level.h?

Similarly for pfn_pmd (which BUG()-s in pgtable-3level.h)...

Thanks, Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 2 lines

I still wonder, however, whether the BUG()/panic() in PAE's pfn_pmd() couldn't be removed...

Wonder why it is still in there though, seems pfn_pmd() is never ever used, checking code ...

Ok, seems they are needed for 2M/4M pages, we don't support these anyway, so BUG()'ing in case this is called looks perfectly fine.

The panic msg probably should be changed to something more reasonable, such as "Huh? Who tried to use 2M pages?" maybe ;)

cheers,

Gerd

#3 lore raw
Quoted 2 lines
Quoted 2 lines
Quoted 1 line

Gerd Knorr <[email protected]> 21.12.05 15:25:56 >>>

I still wonder, however, whether the BUG()/panic() in PAE's

pfn_pmd()

Quoted 8 lines
Quoted 1 line

couldn't be removed...

Wonder why it is still in there though, seems pfn_pmd() is never ever

used, checking code ...

Ok, seems they are needed for 2M/4M pages, we don't support these anyway, so BUG()'ing in case this is called looks perfectly fine.

I was about to think so, too, but I wasn't able to prove that the code in arch/i386/mm/init-xen.c that uses it (and that is conditional upon cpu_has_pse) can't get executed. Specifically, I missed include/asm-i386/mach-xen/setup_arch_post.h clearing X86_FEATURE_PSE...

Quoted 3 lines

The panic msg probably should be changed to something more reasonable,

such as "Huh? Who tried to use 2M pages?" maybe ;)

Jan