Re: [patch 06/10] KVM: x86: trap invlpg

Avi Kivity
2008-09-20T00:53:19Z

Marcelo Tosatti wrote:
>
> +static int FNAME(shadow_invlpg_entry)(struct kvm_shadow_walk *_sw,
> + struct kvm_vcpu *vcpu, u64 addr,
> + u64 *sptep, int level)
> +{
> +
> + if (level == PT_PAGE_TABLE_LEVEL) {
> + if (is_shadow_present_pte(*sptep))
> + rmap_remove(vcpu->kvm, sptep);
> + set_shadow_pte(sptep, shadow_trap_nonpresent_pte);
>

Need to flush the real tlb as well.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.