Re: [PATCH v2 02/10] KVM: x86: extend struct kvm_vcpu_pv_apf_data with token info

2020-06-03 Thread Vivek Goyal
On Thu, May 28, 2020 at 10:42:38AM +0200, Vitaly Kuznetsov wrote: > Vivek Goyal writes: > > > On Mon, May 25, 2020 at 04:41:17PM +0200, Vitaly Kuznetsov wrote: > >> > > > > [..] > >> diff --git a/arch/x86/include/asm/kvm_host.h > >> b/arch/x86/include/asm/kvm_host.h > >> index 0a6b35353fc7..c19

Re: [PATCH v2 02/10] KVM: x86: extend struct kvm_vcpu_pv_apf_data with token info

2020-05-28 Thread Paolo Bonzini
On 28/05/20 10:42, Vitaly Kuznetsov wrote: > How does it work with the patchset: 'page not present' case remains the > same. 'page ready' case now goes through interrupts so it may not get > handled immediately. External interrupts will be handled by L0 in host > mode (when L2 is not running). For

Re: [PATCH v2 02/10] KVM: x86: extend struct kvm_vcpu_pv_apf_data with token info

2020-05-28 Thread Vitaly Kuznetsov
Vivek Goyal writes: > On Mon, May 25, 2020 at 04:41:17PM +0200, Vitaly Kuznetsov wrote: >> > > [..] >> diff --git a/arch/x86/include/asm/kvm_host.h >> b/arch/x86/include/asm/kvm_host.h >> index 0a6b35353fc7..c195f63c1086 100644 >> --- a/arch/x86/include/asm/kvm_host.h >> +++ b/arch/x86/include/

Re: [PATCH v2 02/10] KVM: x86: extend struct kvm_vcpu_pv_apf_data with token info

2020-05-26 Thread Vivek Goyal
On Mon, May 25, 2020 at 04:41:17PM +0200, Vitaly Kuznetsov wrote: > [..] > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index 0a6b35353fc7..c195f63c1086 100644 > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -767,7 +767,7 @@

[PATCH v2 02/10] KVM: x86: extend struct kvm_vcpu_pv_apf_data with token info

2020-05-25 Thread Vitaly Kuznetsov
Currently, APF mechanism relies on the #PF abuse where the token is being passed through CR2. If we switch to using interrupts to deliver page-ready notifications we need a different way to pass the data. Extent the existing 'struct kvm_vcpu_pv_apf_data' with token information for page-ready notifi