Skip to contentSkip to conversation

[4454] i386 specific TODO

Qemu-devel Fabrice Bellard 3 participants 3 messages May 13, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4454

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4454
Author:   bellard
Date:     2008-05-13 18:27:16 +0000 (Tue, 13 May 2008)

Log Message:
-----------
i386 specific TODO

Added Paths:
-----------

    trunk/target-i386/TODO

Added: trunk/target-i386/TODO
===================================================================

target-i386/TODO +29 -0
@@ -0,0 +1,29 @@
+Correctness issues:
+
+- rework eflags optimization (will be a consequence of TCG port)
+- SVM: rework the implementation: simplify code, move most intercept
+  tests as dynamic, correct segment access, verify exception safety,
+  remove most of the added CPU state.
+- arpl eflags computation is invalid
+- x86_64: fxsave/fxrestore intel/amd differences
+- x86_64: lcall/ljmp intel/amd differences ?
+- x86_64: cmpxchgl intel/amd differences ?
+- x86_64: cmovl bug intel/amd differences ?
+- x86: monitor invalid 
+- better code fetch (different exception handling + CS.limit support)
+- user/kernel PUSHL/POPL in helper.c
+- add missing cpuid tests
+- return UD exception if LOCK prefix incorrectly used
+- test ldt limit < 7 ?
+- fix some 16 bit sp push/pop overflow (pusha/popa, lcall lret)
+- full support of segment limit/rights 
+- full x87 exception support
+- improve x87 bit exactness (use bochs code ?)
+
+Optimizations/Features:
+
+- finish TCG port
+- evaluate x87 stack pointer statically
+- find a way to avoid translating several time the same TB if CR0.TS
+  is set or not.
+- move kqemu support outside target-i386.
#1 lore raw
Quoted 27 lines · Fabrice Bellard

Revision: 4454

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4454
Author:   bellard
Date:     2008-05-13 18:27:16 +0000 (Tue, 13 May 2008)

Log Message:
-----------
i386 specific TODO

Added Paths:
-----------

    trunk/target-i386/TODO

Added: trunk/target-i386/TODO
===================================================================

target-i386/TODO +9 -0
@@ -0,0 +1,29 @@
+Correctness issues:
+
+- rework eflags optimization (will be a consequence of TCG port)
+- SVM: rework the implementation: simplify code, move most intercept
+  tests as dynamic, correct segment access, verify exception safety,
+  remove most of the added CPU state.
+- arpl eflags computation is invalid
+- x86_64: fxsave/fxrestore intel/amd differences
+- x86_64: lcall/ljmp intel/amd differences ?

target-i386/TODO line 19

Quoted 10 lines
target-i386/TODO +10 -0
+- x86_64: cmpxchgl intel/amd differences ?
+- x86_64: cmovl bug intel/amd differences ?
+- x86: monitor invalid 
+- better code fetch (different exception handling + CS.limit support)
+- user/kernel PUSHL/POPL in helper.c
+- add missing cpuid tests
+- return UD exception if LOCK prefix incorrectly used
+- test ldt limit < 7 ?
+- fix some 16 bit sp push/pop overflow (pusha/popa, lcall lret)
+- full support of segment limit/rights 

This topic is widely completed here (well... @work), just MMX/SSE operations are missing (the customer doesn't use it) - and, of course, all those corner cases I surely oversaw. As those checks do not make things immediately faster, I added a switch so that you can turn them on when starting qemu.

Haven't tried to reapply the patch, but I'm afraid some rebase work is now required. Would it make sense to start this soon, or do you plan further TCG rework in the near future?

Jan

#2 lore raw
In reply to Fabrice Bellard
Quoted 19 lines · Fabrice Bellard

Revision: 4454

         http://svn.sv.gnu.org/viewvc/? 
view=rev&root=qemu&revision=4454
Author:   bellard
Date:     2008-05-13 18:27:16 +0000 (Tue, 13 May 2008)

Log Message:
-----------
i386 specific TODO

Added Paths:
-----------
trunk/target-i386/TODO

Added: trunk/target-i386/TODO
===================================================================

target-i386/TODO line 4

Quoted 4 lines
target-i386/TODO +4 -0
@@ -0,0 +1,29 @@
+Correctness issues:
+
+- rework eflags optimization (will be a consequence of TCG port)
+- SVM: rework the implementation: simplify code, move most intercept

What exactly do you mean here? Simplify it in what respect? Move them where?

Additional todos:

SVM: add NPT support
SVM: verify 32-bit support

Quoted 30 lines
target-i386/TODO +25 -0
+  tests as dynamic, correct segment access, verify exception safety,
+  remove most of the added CPU state.
+- arpl eflags computation is invalid
+- x86_64: fxsave/fxrestore intel/amd differences
+- x86_64: lcall/ljmp intel/amd differences ?
+- x86_64: cmpxchgl intel/amd differences ?
+- x86_64: cmovl bug intel/amd differences ?
+- x86: monitor invalid
+- better code fetch (different exception handling + CS.limit support)
+- user/kernel PUSHL/POPL in helper.c
+- add missing cpuid tests
+- return UD exception if LOCK prefix incorrectly used
+- test ldt limit < 7 ?
+- fix some 16 bit sp push/pop overflow (pusha/popa, lcall lret)
+- full support of segment limit/rights
+- full x87 exception support
+- improve x87 bit exactness (use bochs code ?)
+
+Optimizations/Features:
+
+- finish TCG port
+- evaluate x87 stack pointer statically
+- find a way to avoid translating several time the same TB if CR0.TS
+  is set or not.
+- move kqemu support outside target-i386.