Skip to contentSkip to conversation

x86/minios: Remove more vestigial remnants of SUPERVISOR_MODE_KERNEL

PATCH In review Andrew Cooper 2 participants 2 messages Jan 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/minios: Remove more vestigial remnants of SUPERVISOR_MODE_KERNEL

MiniOS has never advertised support for supervisor_mode_kernel, and the feature was only ever implemented for 32bit Xen.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Tim Deegan <[email protected]>
CC Stefano Stabellini <[email protected]>
CC Samuel Thibault <[email protected]>
---
 extras/mini-os/arch/x86/x86_64.S |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
extras/mini-os/arch/x86/x86_64.S +1 -4
index df3469e..72921b1 100644
@@ -125,13 +125,10 @@ KERNEL_CS_MASK = 0xfc
 	testl $NMI_MASK,2*8(%rsp)
 	jnz   2f
 
-	testb $1,(xen_features+XENFEAT_supervisor_mode_kernel)
-	jnz   1f
-
 	/* Direct iret to kernel space. Correct CS and SS. */
 	orb   $3,1*8(%rsp)
 	orb   $3,4*8(%rsp)
-1:	iretq
+	iretq
 
 2:	/* Slow iret via hypervisor. */
 	andl  $~NMI_MASK, 16(%rsp)
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Andrew Cooper, le Thu 15 Jan 2015 19:07:47 +0000, a écrit :

MiniOS has never advertised support for supervisor_mode_kernel, and the feature was only ever implemented for 32bit Xen.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Tim Deegan <[email protected]>
CC Stefano Stabellini <[email protected]>
CC Samuel Thibault <[email protected]>
Quoted 26 lines
---
 extras/mini-os/arch/x86/x86_64.S |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
extras/mini-os/arch/x86/x86_64.S +1 -4
index df3469e..72921b1 100644
@@ -125,13 +125,10 @@ KERNEL_CS_MASK = 0xfc
 	testl $NMI_MASK,2*8(%rsp)
 	jnz   2f
 
-	testb $1,(xen_features+XENFEAT_supervisor_mode_kernel)
-	jnz   1f
-
 	/* Direct iret to kernel space. Correct CS and SS. */
 	orb   $3,1*8(%rsp)
 	orb   $3,4*8(%rsp)
-1:	iretq
+	iretq
 
 2:	/* Slow iret via hypervisor. */
 	andl  $~NMI_MASK, 16(%rsp)
Signature · 1 line
1.7.10.4
Signature · 1 line
Samuel
Quoted 1 line
	dvips -o $@ $<     

Faut faire gffe de pas te couper avec ton truc, t'as mis des ciseaux ($<) partout :))
-+- Dom in Guide du linuxien pervers - "J'aime pas les Makefile !" -+-