Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-19 Thread Nadav Amit
Radim Krčmář wrote: > 2017-07-19 13:34+0800, Wanpeng Li: >> Ping, :) > > I misunderstood where the ball is ... is the patch below ok? > > ---8<--- > This can be reproduced by EPT=1, unrestricted_guest=N, emulate_invalid_state=Y > or EPT=0, the trace of

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-19 Thread Nadav Amit
Radim Krčmář wrote: > 2017-07-19 13:34+0800, Wanpeng Li: >> Ping, :) > > I misunderstood where the ball is ... is the patch below ok? > > ---8<--- > This can be reproduced by EPT=1, unrestricted_guest=N, emulate_invalid_state=Y > or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like

[PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-19 Thread Radim Krčmář
2017-07-19 13:34+0800, Wanpeng Li: > Ping, :) I misunderstood where the ball is ... is the patch below ok? ---8<--- This can be reproduced by EPT=1, unrestricted_guest=N, emulate_invalid_state=Y or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it tries to emulate invalid

[PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-19 Thread Radim Krčmář
2017-07-19 13:34+0800, Wanpeng Li: > Ping, :) I misunderstood where the ball is ... is the patch below ok? ---8<--- This can be reproduced by EPT=1, unrestricted_guest=N, emulate_invalid_state=Y or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it tries to emulate invalid

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-18 Thread Wanpeng Li
Ping, :) 2017-07-11 15:13 GMT+08:00 Wanpeng Li : > From: Wanpeng Li > > This can be reproduced by EPT=1, unrestricted_guest=N, emulate_invalid_state=Y > or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it tries > to emulate invalid

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-18 Thread Wanpeng Li
Ping, :) 2017-07-11 15:13 GMT+08:00 Wanpeng Li : > From: Wanpeng Li > > This can be reproduced by EPT=1, unrestricted_guest=N, emulate_invalid_state=Y > or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it tries > to emulate invalid guest state task-switch: > > kvm_exit:

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-12 Thread Wanpeng Li
2017-07-12 0:09 GMT+08:00 Paolo Bonzini : > On 11/07/2017 17:54, Radim Krčmář wrote: >> 2017-07-11 00:13-0700, Wanpeng Li: >>> From: Wanpeng Li >>> >>> This can be reproduced by EPT=1, unrestricted_guest=N, >>> emulate_invalid_state=Y >>> or EPT=0,

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-12 Thread Wanpeng Li
2017-07-12 0:09 GMT+08:00 Paolo Bonzini : > On 11/07/2017 17:54, Radim Krčmář wrote: >> 2017-07-11 00:13-0700, Wanpeng Li: >>> From: Wanpeng Li >>> >>> This can be reproduced by EPT=1, unrestricted_guest=N, >>> emulate_invalid_state=Y >>> or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-11 Thread Paolo Bonzini
On 11/07/2017 17:54, Radim Krčmář wrote: > 2017-07-11 00:13-0700, Wanpeng Li: >> From: Wanpeng Li >> >> This can be reproduced by EPT=1, unrestricted_guest=N, >> emulate_invalid_state=Y >> or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it >> tries

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-11 Thread Paolo Bonzini
On 11/07/2017 17:54, Radim Krčmář wrote: > 2017-07-11 00:13-0700, Wanpeng Li: >> From: Wanpeng Li >> >> This can be reproduced by EPT=1, unrestricted_guest=N, >> emulate_invalid_state=Y >> or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it >> tries >> to emulate invalid

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-11 Thread Radim Krčmář
2017-07-11 00:13-0700, Wanpeng Li: > From: Wanpeng Li > > This can be reproduced by EPT=1, unrestricted_guest=N, > emulate_invalid_state=Y > or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it > tries > to emulate invalid guest state task-switch:

Re: [PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-11 Thread Radim Krčmář
2017-07-11 00:13-0700, Wanpeng Li: > From: Wanpeng Li > > This can be reproduced by EPT=1, unrestricted_guest=N, > emulate_invalid_state=Y > or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it > tries > to emulate invalid guest state task-switch: > > kvm_exit: reason

[PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-11 Thread Wanpeng Li
From: Wanpeng Li This can be reproduced by EPT=1, unrestricted_guest=N, emulate_invalid_state=Y or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it tries to emulate invalid guest state task-switch: kvm_exit: reason TASK_SWITCH rip 0x0 info 4058

[PATCH] KVM: VMX: Fix invalid guest state detection after task-switch emulation

2017-07-11 Thread Wanpeng Li
From: Wanpeng Li This can be reproduced by EPT=1, unrestricted_guest=N, emulate_invalid_state=Y or EPT=0, the trace of kvm-unit-tests/taskswitch2.flat is like below, it tries to emulate invalid guest state task-switch: kvm_exit: reason TASK_SWITCH rip 0x0 info 4058 0 kvm_emulate_insn: