On Sun, 31 Jul 2011 11:48:40 +0300
Avi Kivity <[email protected]> wrote:

> On 07/30/2011 12:03 PM, Takuya Yoshikawa wrote:
> > From: Takuya Yoshikawa<[email protected]>
> >
> > Return EMULATION_OK/FAILED consistently.  Also treat instruction fetch
> > errors, not restricted to X86EMUL_UNHANDLEABLE, as EMULATION_FAILED;
> > although this cannot happen in practice, the current logic will continue
> > the emulation even if the decoder fails to fetch the instruction.
> 
> In fact it can happen in practice, but not through normal usage.  For 
> example, one vcpu can execute an instruction which traps into the 
> emulator, while another vcpu changes the page tables to make the 
> instruction unfetchable.
> 

Really virtualization specific!
I need to think about multiple vcpus more.

Thanks,
  Takuya

-- 
Takuya Yoshikawa <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to