Re: [PATCH v2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-10 Thread Raslan, KarimAllah
On Mon, 2018-04-09 at 13:26 +0200, David Hildenbrand wrote: > On 09.04.2018 10:37, KarimAllah Ahmed wrote: > > > > From: Jim Mattson > > > > For nested virtualization L0 KVM is managing a bit of state for L2 guests, > > this state can not be captured through the currently available IOCTLs. In >

Re: [PATCH v2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-10 Thread Raslan, KarimAllah
On Mon, 2018-04-09 at 12:24 -0700, Jim Mattson wrote: > On Mon, Apr 9, 2018 at 1:37 AM, KarimAllah Ahmed wrote: > > > > > + /* > > +* Force a nested exit that guarantees that any state capture > > +* afterwards by any IOCTLs (MSRs, etc) will not capture a mix of L1 > > +

Re: [PATCH v2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-09 Thread Jim Mattson
On Mon, Apr 9, 2018 at 1:37 AM, KarimAllah Ahmed wrote: > + /* > +* Force a nested exit that guarantees that any state capture > +* afterwards by any IOCTLs (MSRs, etc) will not capture a mix of L1 > +* and L2 state. > +* > +* One example where that w

Re: [PATCH v2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-09 Thread Jim Mattson
On Mon, Apr 9, 2018 at 1:37 AM, KarimAllah Ahmed wrote: > From: Jim Mattson > > For nested virtualization L0 KVM is managing a bit of state for L2 guests, > this state can not be captured through the currently available IOCTLs. In > fact the state captured through all of these IOCTLs is usually a

Re: [PATCH v2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-09 Thread David Hildenbrand
On 09.04.2018 10:37, KarimAllah Ahmed wrote: > From: Jim Mattson > > For nested virtualization L0 KVM is managing a bit of state for L2 guests, > this state can not be captured through the currently available IOCTLs. In > fact the state captured through all of these IOCTLs is usually a mix of L1

[PATCH v2] kvm: nVMX: Introduce KVM_CAP_STATE

2018-04-09 Thread KarimAllah Ahmed
From: Jim Mattson For nested virtualization L0 KVM is managing a bit of state for L2 guests, this state can not be captured through the currently available IOCTLs. In fact the state captured through all of these IOCTLs is usually a mix of L1 and L2 state. It is also dependent on whether the L2 gu