> > + /*
> > +* 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
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 +
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
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
4 matches
Mail list logo