Re: [PATCH v2] KVM: nVMX: fix nested_vmx_check_vmptr failure paths under debugging

2017-05-30 Thread Paolo Bonzini
On 19/05/2017 15:48, Radim Krčmář wrote: > kvm_skip_emulated_instruction() will return 0 if userspace is > single-stepping the guest. > > kvm_skip_emulated_instruction() uses return status convention of exit > handler: 0 means "exit to userspace" and 1 means "continue vm entries". > The problem

[PATCH v2] KVM: nVMX: fix nested_vmx_check_vmptr failure paths under debugging

2017-05-19 Thread Radim Krčmář
kvm_skip_emulated_instruction() will return 0 if userspace is single-stepping the guest. kvm_skip_emulated_instruction() uses return status convention of exit handler: 0 means "exit to userspace" and 1 means "continue vm entries". The problem is that nested_vmx_check_vmptr() return status means so