On 20/01/2017 17:55, Jim Mattson wrote: > Why attempt to emulate these instructions at all, if we're not going > to handle a data access to emulated/special memory? > > It seems that one of the following three cases must hold: > > 1) The data accessed by the instruction is emulated/special memory. > 2) The instruction was fetched from emulated/special memory. > 3) The instruction has been modified since the VM-exit. 4) The processor is in big real mode and you don't have unrestricted guest support in your processor (or you disabled EPT). Paolo > The proposed patch is incorrect for case (1). Case (2) violates the > emulator's assumptions outlined in kvm_emulate.h. Case (3) seems best > handled by simply re-entering VMX non-root mode. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html