Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-15 0:18 GMT+08:00 Radim Krčmář : > 2017-06-14 22:32+0800, Wanpeng Li: >> 2017-06-14 21:20 GMT+08:00 Radim Krčmář : >> > 2017-06-14 21:02+0800, Wanpeng Li: >> >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : >> >> > 2017-06-14

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-15 0:18 GMT+08:00 Radim Krčmář : > 2017-06-14 22:32+0800, Wanpeng Li: >> 2017-06-14 21:20 GMT+08:00 Radim Krčmář : >> > 2017-06-14 21:02+0800, Wanpeng Li: >> >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : >> >> > 2017-06-14 09:07+0800, Wanpeng Li: >> >> >> 2017-06-14 2:55 GMT+08:00 Radim

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Radim Krčmář
2017-06-14 22:32+0800, Wanpeng Li: > 2017-06-14 21:20 GMT+08:00 Radim Krčmář : > > 2017-06-14 21:02+0800, Wanpeng Li: > >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : > >> > 2017-06-14 09:07+0800, Wanpeng Li: > >> >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Radim Krčmář
2017-06-14 22:32+0800, Wanpeng Li: > 2017-06-14 21:20 GMT+08:00 Radim Krčmář : > > 2017-06-14 21:02+0800, Wanpeng Li: > >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : > >> > 2017-06-14 09:07+0800, Wanpeng Li: > >> >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : > >> >> > Using vcpu->arch.cr2 is

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-14 21:20 GMT+08:00 Radim Krčmář : > 2017-06-14 21:02+0800, Wanpeng Li: >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : >> > 2017-06-14 09:07+0800, Wanpeng Li: >> >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : >> >> > Using

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-14 21:20 GMT+08:00 Radim Krčmář : > 2017-06-14 21:02+0800, Wanpeng Li: >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : >> > 2017-06-14 09:07+0800, Wanpeng Li: >> >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : >> >> > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM >> >> >

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-14 21:20 GMT+08:00 Radim Krčmář : > 2017-06-14 21:02+0800, Wanpeng Li: >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : >> > 2017-06-14 09:07+0800, Wanpeng Li: >> >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : >> >> > Using

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-14 21:20 GMT+08:00 Radim Krčmář : > 2017-06-14 21:02+0800, Wanpeng Li: >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : >> > 2017-06-14 09:07+0800, Wanpeng Li: >> >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : >> >> > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM >> >> >

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-14 21:20 GMT+08:00 Radim Krčmář : > 2017-06-14 21:02+0800, Wanpeng Li: >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : >> > 2017-06-14 09:07+0800, Wanpeng Li: >> >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : >> >> > Using

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-14 21:20 GMT+08:00 Radim Krčmář : > 2017-06-14 21:02+0800, Wanpeng Li: >> 2017-06-14 20:52 GMT+08:00 Radim Krčmář : >> > 2017-06-14 09:07+0800, Wanpeng Li: >> >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : >> >> > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM >> >> >

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Radim Krčmář
2017-06-14 21:02+0800, Wanpeng Li: > 2017-06-14 20:52 GMT+08:00 Radim Krčmář : > > 2017-06-14 09:07+0800, Wanpeng Li: > >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : > >> > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM > >> > exits; isn't

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Radim Krčmář
2017-06-14 21:02+0800, Wanpeng Li: > 2017-06-14 20:52 GMT+08:00 Radim Krčmář : > > 2017-06-14 09:07+0800, Wanpeng Li: > >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : > >> > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM > >> > exits; isn't this going to change the CR2 visible in

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-14 20:52 GMT+08:00 Radim Krčmář : > 2017-06-14 09:07+0800, Wanpeng Li: >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : >> > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM >> > exits; isn't this going to change the CR2 visible in L2

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Wanpeng Li
2017-06-14 20:52 GMT+08:00 Radim Krčmář : > 2017-06-14 09:07+0800, Wanpeng Li: >> 2017-06-14 2:55 GMT+08:00 Radim Krčmář : >> > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM >> > exits; isn't this going to change the CR2 visible in L2 guest after a >> > nested VM entry? >> >>

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Radim Krčmář
2017-06-14 09:07+0800, Wanpeng Li: > 2017-06-14 2:55 GMT+08:00 Radim Krčmář : > > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM > > exits; isn't this going to change the CR2 visible in L2 guest after a > > nested VM entry? > > Sorry, I don't fully

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-14 Thread Radim Krčmář
2017-06-14 09:07+0800, Wanpeng Li: > 2017-06-14 2:55 GMT+08:00 Radim Krčmář : > > Using vcpu->arch.cr2 is suspicious as VMX doesn't update CR2 on VM > > exits; isn't this going to change the CR2 visible in L2 guest after a > > nested VM entry? > > Sorry, I don't fully understand the question. As

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-13 Thread Wanpeng Li
2017-06-14 2:55 GMT+08:00 Radim Krčmář : > 2017-06-12 23:08-0700, Wanpeng Li: >> From: Wanpeng Li >> >> Add an async_page_fault field to vcpu->arch.exception to identify an async >> page fault, and constructs the expected vm-exit information fields.

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-13 Thread Wanpeng Li
2017-06-14 2:55 GMT+08:00 Radim Krčmář : > 2017-06-12 23:08-0700, Wanpeng Li: >> From: Wanpeng Li >> >> Add an async_page_fault field to vcpu->arch.exception to identify an async >> page fault, and constructs the expected vm-exit information fields. Force >> a nested VM exit from

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-13 Thread Radim Krčmář
2017-06-12 23:08-0700, Wanpeng Li: > From: Wanpeng Li > > Add an async_page_fault field to vcpu->arch.exception to identify an async > page fault, and constructs the expected vm-exit information fields. Force > a nested VM exit from nested_vmx_check_exception() if the

Re: [PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-13 Thread Radim Krčmář
2017-06-12 23:08-0700, Wanpeng Li: > From: Wanpeng Li > > Add an async_page_fault field to vcpu->arch.exception to identify an async > page fault, and constructs the expected vm-exit information fields. Force > a nested VM exit from nested_vmx_check_exception() if the injected #PF > is async

[PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-13 Thread Wanpeng Li
From: Wanpeng Li Add an async_page_fault field to vcpu->arch.exception to identify an async page fault, and constructs the expected vm-exit information fields. Force a nested VM exit from nested_vmx_check_exception() if the injected #PF is async page fault. Cc: Paolo

[PATCH 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

2017-06-13 Thread Wanpeng Li
From: Wanpeng Li Add an async_page_fault field to vcpu->arch.exception to identify an async page fault, and constructs the expected vm-exit information fields. Force a nested VM exit from nested_vmx_check_exception() if the injected #PF is async page fault. Cc: Paolo Bonzini Cc: Radim