Re: [Xen-devel] [PATCH v4 10/24] x86/emul: Always use fault semantics for software events
>>> On 01.12.16 at 17:55, wrote: > The common case is already using fault semantics out of x86_emulate(), as that > is how VT-x/SVM expects to inject the event (given suitable hardware support). > > However, x86_emulate() returning X86EMUL_EXCEPTION and also completing a > register writeback is problematic for callers. > > Switch the logic to always using fault semantics, and leave svm_inject_trap() > to fix up %eip if necessary. > > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel
Re: [Xen-devel] [PATCH v4 10/24] x86/emul: Always use fault semantics for software events
On 12/01/2016 11:55 AM, Andrew Cooper wrote: > The common case is already using fault semantics out of x86_emulate(), as that > is how VT-x/SVM expects to inject the event (given suitable hardware support). > > However, x86_emulate() returning X86EMUL_EXCEPTION and also completing a > register writeback is problematic for callers. > > Switch the logic to always using fault semantics, and leave svm_inject_trap() > to fix up %eip if necessary. > > Signed-off-by: Andrew Cooper Reviewed-by: Boris Ostrovsky ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel