Re: [Xen-devel] [PATCH v4 3/3] x86/vvmx: correctly emulate VMREAD

2017-02-13 Thread Tian, Kevin
> From: Sergey Dyasli [mailto:sergey.dya...@citrix.com] > Sent: Monday, February 13, 2017 10:21 PM > > There is an issue with the original __vmread() in nested vmx mode: > emulation of a guest's VMREAD with invalid arguments leads to BUG(). > > Fix this by using vmread_safe() and reporting any ki

Re: [Xen-devel] [PATCH v4 3/3] x86/vvmx: correctly emulate VMREAD

2017-02-13 Thread Jan Beulich
>>> On 13.02.17 at 15:21, wrote: > There is an issue with the original __vmread() in nested vmx mode: > emulation of a guest's VMREAD with invalid arguments leads to BUG(). > > Fix this by using vmread_safe() and reporting any kind of VMfail back > to the guest. > > A new safe versions of get_vv

[Xen-devel] [PATCH v4 3/3] x86/vvmx: correctly emulate VMREAD

2017-02-13 Thread Sergey Dyasli
There is an issue with the original __vmread() in nested vmx mode: emulation of a guest's VMREAD with invalid arguments leads to BUG(). Fix this by using vmread_safe() and reporting any kind of VMfail back to the guest. A new safe versions of get_vvmcs() macro and related functions are introduced