Re: [RFC] VMX CR3 cache

Avi Kivity
2008-01-28T17:23:38Z

Marcelo Tosatti wrote:
> So the questions are, why the benefit is not similar (vm-exit's are now
> way cheaper?) and is it worth to merge this given the results?
>

Yes, vmexits are now about 5 times faster compared to older kvm.

> +
> +/*
> + * Avoid the VM exit upon cr3 load by using the cached
> + * ->active_mm->pgd value:
> + */
> +static void kvm_flush_tlb_user(void)
> +{
> + kvm_write_cr3(__pa(current->active_mm->pgd));
> +}

Would be nice to get this for non-paravirt kernels (perhaps by keeping
__pa(pgd) in a pda variable, instead of reading it through current).

--
error compiling committee.c: too many arguments to function