Alexander Graf wrote:
Blue Swirl wrote:
On 8/22/07, Alexander Graf <[EMAIL PROTECTED]> wrote:
- All interceptions (well, maybe I did oversee one or two)
Nice work! For better performance, you should do the op.c checks
statically at translation time (if possible).
Thanks. I thought about that first as well, but can't. The information
if an intercept should occur is defined in the VMCB, which is passed as
argument on VMRUN (so whenever one enters the VM). This means that the
very same TB can be executed with completely different intercepts, which
means I have to fall back to runtime detection in op.c.
You can have the intercept vector be a part of the TB lookup key. So,
if the same code is executed natively, or with different intercept
vectors, it gets a different TB. Qemu already does this for a number of
things like cpu operating mode, cs base, etc.
--
error compiling committee.c: too many arguments to function