Jim C. Brown wrote:

On Tue, Sep 13, 2005 at 11:27:39PM -0500, Anthony Liguori wrote:
I reckon kqemu has this same problem... Technically, even in ring 3, if you run natively, you violate the Popek/Goldberg requirements because of cpuid. It's just not possible to trap it but it shouldn't matter for most software.


It is possible to trap it, in a sense. You just read ahead and replace the
cpuid instruction with something else.
You can't readahead beyond a basic block. Taking a trap for each basic block and translating the block is what QEMU does.

Regards,

Anthony Liguori

Ugly, but doable.




_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to