Re: [Xen-devel] [PATCH v7 2/2] x86/monitor: Notify monitor if an emulation fails.

2017-08-06 Thread Andrew Cooper
On 06/08/17 11:00, Jan Beulich wrote: Petre Pircalabu 08/04/17 8:36 PM >>> >> @@ -2114,6 +2116,8 @@ void hvm_emulate_one_vm_event(enum emul_kind kind, >> unsigned int trapnr, >> */ >> return; >> case X86EMUL_UNIMPLEMENTED: >> +if (

Re: [Xen-devel] [PATCH v7 2/2] x86/monitor: Notify monitor if an emulation fails.

2017-08-06 Thread Jan Beulich
>>> Petre Pircalabu 08/04/17 8:36 PM >>> >@@ -2114,6 +2116,8 @@ void hvm_emulate_one_vm_event(enum emul_kind kind, >unsigned int trapnr, >*/ >return; >case X86EMUL_UNIMPLEMENTED: >+if ( hvm_monitor_emul_unimplemented() ) >+return; >case

[Xen-devel] [PATCH v7 2/2] x86/monitor: Notify monitor if an emulation fails.

2017-08-04 Thread Petre Pircalabu
If case of a vm_event with the emulate_flags set, if the instruction is not implemented by the emulator, the monitor should be notified instead of directly injecting a hw exception. This behavior can be used to re-execute an instruction not supported by the emulator using the real processor (e.g.