Skip to contentSkip to conversation

linux-2.6.18/x86_64: remove an inapplicable feature flag

PATCH In review Jan Beulich 3 participants 5 messages Nov 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-2.6.18/x86_64: remove an inapplicable feature flag

arch/x86_64/kernel/head-xen.S +0 -0
@@ -206,6 +206,6 @@

ELFNOTE(Xen, XEN_ELFNOTE_ENTRY, .quad, startup_64)
ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .quad, hypercall_page)

 	ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID,   .quad,  _PAGE_PRESENT,_PAGE_PRESENT)
-	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel")
+	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|supervisor_mode_kernel")
 	ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz, "generic")

ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long, 1)

Subject: x86_64: remove an inapplicable feature flag

arch/x86_64/kernel/head-xen.S +0 -0
@@ -206,6 +206,6 @@

ELFNOTE(Xen, XEN_ELFNOTE_ENTRY, .quad, startup_64)
ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .quad, hypercall_page)

 	ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID,   .quad,  _PAGE_PRESENT,_PAGE_PRESENT)
-	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel")
+	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|supervisor_mode_kernel")
 	ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz, "generic")

ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long, 1)

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

#1 lore raw
Quoted 13 lines
Quoted 1 line
Quoted 1 line · Jan Beulich
arch/x86_64/kernel/head-xen.S +1 -1
@@ -206,6 +206,6 @@
 	ELFNOTE(Xen, XEN_ELFNOTE_ENTRY,          .quad,  startup_64)
 	ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .quad,  hypercall_page)
 	ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID,   .quad,  
 _PAGE_PRESENT,_PAGE_PRESENT)
-	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel")
+	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|supervisor_mode_kernel")
 	ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz, "generic")
Quoted 1 line

ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long, 1)

If the flag was removed from the pv-ops 64-bit kernel too, we could even start warning about inapplicable flags in hypervisor/tools.

What puzzles me more though is that the pv-ops kernel requires the writable_page_tables feature. Why is that? And assuming it supports it at all (which seems questionable given that it unlikely was ever tested), why would it not also indicate support for writable_descriptor_tables and auto_translated_physmap?

Jan

#2 lore raw
Quoted 17 lines · Jan Beulich
Quoted 13 lines
Quoted 1 line
Quoted 1 line · Jan Beulich
arch/x86_64/kernel/head-xen.S +1 -1
@@ -206,6 +206,6 @@
 	ELFNOTE(Xen, XEN_ELFNOTE_ENTRY,          .quad,  startup_64)
 	ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .quad,  hypercall_page)
 	ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID,   .quad,  
 _PAGE_PRESENT,_PAGE_PRESENT)
-	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel")
+	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, "writable_page_tables|writable_descriptor_tables|auto_translated_physmap|supervisor_mode_kernel")
 	ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz, "generic")
Quoted 1 line

ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long, 1)

If the flag was removed from the pv-ops 64-bit kernel too, we could even start warning about inapplicable flags in hypervisor/tools.

Quoted 2 lines

What puzzles me more though is that the pv-ops kernel requires the writable_page_tables feature. Why is that?

It did in the very early days, but it hasn't used it since converting to PV MMU (couldn't, since it doesn't exist any more). It lists "!writable_page_table", which I read as meaning "writable page tables not supported"; does it actually mean "must"?

J

#3 lore raw
Quoted 23 lines
Quoted 1 line
Quoted 1 line · Jeremy Fitzhardinge
Quoted 11 lines · Jan Beulich

arch/x86_64/kernel/head-xen.S line 210

Quoted 11 lines
Quoted 1 line
Quoted 1 line · Jan Beulich
arch/x86_64/kernel/head-xen.S +0 -1
@@ -206,6 +206,6 @@
 	ELFNOTE(Xen, XEN_ELFNOTE_ENTRY,          .quad,  startup_64)
 	ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .quad,  hypercall_page)
 	ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID,   .quad,  
 _PAGE_PRESENT,_PAGE_PRESENT)
-	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, 

"writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_ pgdir_above_4gb|supervisor_mode_kernel")

Quoted 1 line

arch/x86_64/kernel/head-xen.S line 210

Quoted 1 line
arch/x86_64/kernel/head-xen.S +1 -0
+	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, 

"writable_page_tables|writable_descriptor_tables|auto_translated_physmap|supe rvisor_mode_kernel")

Quoted 5 lines
Quoted 2 lines
arch/x86_64/kernel/head-xen.S +0 -0
 	ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz, "generic")

ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long, 1)

If the flag was removed from the pv-ops 64-bit kernel too, we could even start warning about inapplicable flags in hypervisor/tools.

Quoted 7 lines
Quoted 2 lines

What puzzles me more though is that the pv-ops kernel requires the writable_page_tables feature. Why is that?

It did in the very early days, but it hasn't used it since converting to PV MMU (couldn't, since it doesn't exist any more). It lists "!writable_page_table", which I read as meaning "writable page tables not supported"; does it actually mean "must"?

Yes, it does (according to xen/include/public/elfnote.h).

Jan

#4 lore raw
Quoted 26 lines · Jan Beulich
Quoted 26 lines
Quoted 1 line
Quoted 1 line · Jeremy Fitzhardinge
Quoted 11 lines · Jan Beulich

arch/x86_64/kernel/head-xen.S line 210

Quoted 11 lines
Quoted 1 line
Quoted 1 line · Jan Beulich
arch/x86_64/kernel/head-xen.S +0 -1
@@ -206,6 +206,6 @@
 	ELFNOTE(Xen, XEN_ELFNOTE_ENTRY,          .quad,  startup_64)
 	ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .quad,  hypercall_page)
 	ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID,   .quad,  
 _PAGE_PRESENT,_PAGE_PRESENT)
-	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, 

"writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_ pgdir_above_4gb|supervisor_mode_kernel")

Quoted 1 line

arch/x86_64/kernel/head-xen.S line 210

Quoted 1 line
arch/x86_64/kernel/head-xen.S +1 -0
+	ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz, 

"writable_page_tables|writable_descriptor_tables|auto_translated_physmap|supe rvisor_mode_kernel")

Quoted 7 lines
Quoted 2 lines
arch/x86_64/kernel/head-xen.S +0 -0
 	ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz, "generic")

ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long, 1)

If the flag was removed from the pv-ops 64-bit kernel too, we could even start warning about inapplicable flags in hypervisor/tools.

What puzzles me more though is that the pv-ops kernel requires the writable_page_tables feature. Why is that?

Quoted 6 lines
Quoted 4 lines

It did in the very early days, but it hasn't used it since converting to PV MMU (couldn't, since it doesn't exist any more). It lists "!writable_page_table", which I read as meaning "writable page tables not supported"; does it actually mean "must"?

Yes, it does (according to xen/include/public/elfnote.h).

The selection of ! for this meaning was very ill-conceived! I don't know what I was thinking...

I think it is correct to remove this flag. The pvops kernel has no support for running in a mode where page tables are not read-only, which is not to be confused with the trap-n-emulate type of writeable page table update which it does use.

Ian.