Re: [PATCH 2/3] KVM: use separate generations for each address space

2017-02-17 Thread Paolo Bonzini
> > + /* > > +* Generations must be different for each address space. > > +* Init kvm generation close to the maximum to easily test the > > +* code of handling generation number wrap-around. > > +*/ > > + slots->generation = i * 2

Re: [PATCH 2/3] KVM: use separate generations for each address space

2017-02-16 Thread Bandan Das
Paolo Bonzini writes: > This will make it easier to support multiple address spaces in > kvm_gfn_to_hva_cache_init. Instead of having to check the address > space id, we can keep on checking just the generation number. > > Signed-off-by: Paolo Bonzini > --- > virt/kvm/kvm_main.c | 24 +

Re: [PATCH 2/3] KVM: use separate generations for each address space

2017-02-16 Thread Radim Krčmář
2017-02-15 23:00+0100, Paolo Bonzini: > This will make it easier to support multiple address spaces in > kvm_gfn_to_hva_cache_init. Instead of having to check the address > space id, we can keep on checking just the generation number. > > Signed-off-by: Paolo Bonzini > --- Reviewed-by: Radim Kr

[PATCH 2/3] KVM: use separate generations for each address space

2017-02-15 Thread Paolo Bonzini
This will make it easier to support multiple address spaces in kvm_gfn_to_hva_cache_init. Instead of having to check the address space id, we can keep on checking just the generation number. Signed-off-by: Paolo Bonzini --- virt/kvm/kvm_main.c | 24 1 file changed, 16 i