Skip to contentSkip to conversation

Paravirt cpu batching.patch

PATCH Chuck Ebbert 3 participants 3 messages Dec 12, 2006 – Dec 13, 2006 virtio core

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

Quoted 5 lines · Chros Wright
Quoted 5 lines
arch/i386/kernel/process.c Tue Dec 12 13:50:53 2006 -0800 renamed from arch/i386/kernel/process.c Tue Dec 12 13:50:50 2006 -0800 +0 -0
@@ -665,6 +665,37 @@ struct task_struct fastcall * __switch_t
    load_TLS(next, cpu);
 
Quoted 8 lines

arch/i386/kernel/process.c Tue Dec 12 13:50:53 2006 -0800 struct task_struct fastcall * __switch_t · line 671

Quoted 5 lines
arch/i386/kernel/process.c Tue Dec 12 13:50:53 2006 -0800 renamed from arch/i386/kernel/process.c Tue Dec 12 13:50:50 2006 -0800 +4 -0
    /*
+    * Restore IOPL if needed.
+    */
+   if (unlikely(prev->iopl != next->iopl))
+           set_iopl_mask(next->iopl);

Small sidenote that this bit undoes a recent change from Chuck Ebbert, which killed iopl_mask update via hypervisor.

This whole thing needs a proper fix IMO. I posted something a while back but Andi didn't like it, I guess.

Signature · 1 line
MBTI: IXTP
#1 lore raw
Quoted 3 lines · Chuck Ebbert

This whole thing needs a proper fix IMO. I posted something a while back but Andi didn't like it, I guess.

What's a quick summary of the issue again?

J

#2 lore raw
In reply to Chuck Ebbert
Quoted 20 lines · Chuck Ebbert

In-Reply-To: <[email protected]>

Quoted 5 lines · Chros Wright
Quoted 5 lines
arch/i386/kernel/process.c Tue Dec 12 13:50:53 2006 -0800 renamed from arch/i386/kernel/process.c Tue Dec 12 13:50:50 2006 -0800 +0 -0
@@ -665,6 +665,37 @@ struct task_struct fastcall * __switch_t
    load_TLS(next, cpu);
 
Quoted 9 lines

arch/i386/kernel/process.c Tue Dec 12 13:50:53 2006 -0800 struct task_struct fastcall * __switch_t · line 672

Quoted 6 lines
arch/i386/kernel/process.c Tue Dec 12 13:50:53 2006 -0800 renamed from arch/i386/kernel/process.c Tue Dec 12 13:50:50 2006 -0800 +4 -0
    /*
+    * Restore IOPL if needed.
+    */
+   if (unlikely(prev->iopl != next->iopl))
+           set_iopl_mask(next->iopl);
 

Small sidenote that this bit undoes a recent change from Chuck Ebbert, which killed iopl_mask update via hypervisor.

Quoted 3 lines

This whole thing needs a proper fix IMO. I posted something a while back but Andi didn't like it, I guess.

We can handle this one with an #ifdef CONFIG_PARAVIRT, though.

Zach