Host API escape
Quoted 4 lines · Derek Fawcus
Quoted 2 lines · Fabrice Bellard
Quoted 1 line · Derek Fawcus
I was adding a fake instruction
Quoted 8 lines
So will you at all interested in this bit, want to wait for it to cook some more first, or not interested?
It's basically a "new" instruction, using opcodes that should normally generate undefined/illegal opcode traps, hence it should still be usable
(in some form) if/when doing fast/native x86-on-x86. The point being to provide a a controlled escape to talk with the host -
therefore it's
Quoted 1 line
called "hostapi"...
[. . .]
Ok, I think the things you can achieve with this mechanism are very exciting. But please, *please* do not make another fork in x86!
What if you use the WRMSR instructions instead? Then you can define MSRs which have certain behavior when written to / read from. The whole point of MSRs is that they are model-specific, and that is the way to do this compatibly.
Just a suggestion
--Eric
Quoted 2 lines · EricNorthup
Ok, I think the things you can achieve with this mechanism are very exciting. But please, *please* do not make another fork in x86!
Huh? What do you mean by "another fork in x86"? Or are you simply referring to the fact that I've (re)defined a special instruction?
Quoted 4 lines
What if you use the WRMSR instructions instead? Then you can define MSRs which have certain behavior when written to / read from. The whole point of MSRs is that they are model-specific, and that is the way to do this compatibly.
Hmm - a possibility.
I can look at changing to that once I've got the redir stuff working. My initial concern was actually not to use / change any target visible register, so that I can inject this anywhere as a debug hook - where it's currently quite useful.
DF
Quoted 7 lines · Derek Fawcus
Quoted 4 lines · EricNorthup
What if you use the WRMSR instructions instead? Then you can define MSRs which have certain behavior when written to / read from. The whole point of MSRs is that they are model-specific, and that is the way to do this compatibly.
Hmm - a possibility.
For what it's worth, VMware products use a magic I/O port for guest<->host communication according to
http://chitchat.at.infoseek.co.jp/vmware/backdoor.html
Signature · 3 lines
Ben Pfaff email: [email protected] web: http://benpfaff.org