Re: [PATCH] KVM : Set success rflags when emulate VMXON/VMXOFF in nested virt

2013-07-03 Thread Gleb Natapov
On Thu, Jul 04, 2013 at 12:09:32AM +0800, Arthur Chunqi Li wrote: > Before moving the 3 functions ahead, they will be declared twice in > the same file before handle_vmon(). I don't know if this small change > can be committed together in one patch. If this change is needless or > should be committ

Re: [PATCH] KVM : Set success rflags when emulate VMXON/VMXOFF in nested virt

2013-07-03 Thread Jan Kiszka
On 2013-07-03 18:05, Arthur Chunqi Li wrote: > Set success rflags after emulating VMXON/VMXOFF in nested environment. > > Re-arrange the code sequence of 3 functions, > nested_vmx_succeed()/failValid()/failInvalid(), to avoid double > declaration in the same file. Just don't forget to provide cor

Re: [PATCH] KVM : Set success rflags when emulate VMXON/VMXOFF in nested virt

2013-07-03 Thread Arthur Chunqi Li
Before moving the 3 functions ahead, they will be declared twice in the same file before handle_vmon(). I don't know if this small change can be committed together in one patch. If this change is needless or should be committed in a separate patch, tell me and I will commit another version. Arthur

[PATCH] KVM : Set success rflags when emulate VMXON/VMXOFF in nested virt

2013-07-03 Thread Arthur Chunqi Li
Set success rflags after emulating VMXON/VMXOFF in nested environment. Re-arrange the code sequence of 3 functions, nested_vmx_succeed()/failValid()/failInvalid(), to avoid double declaration in the same file. Signed-off-by: Arthur Chunqi Li --- arch/x86/kvm/vmx.c | 85 +++