Re: [PATCH v8 4/4] KVM: X86: Add flush_on_enter before guest enter

From: Peter Zijlstra
Date: Wed Dec 13 2017 - 07:55:38 EST


On Tue, Dec 12, 2017 at 05:33:04PM -0800, Wanpeng Li wrote:
> +static void kvm_vcpu_flush_tlb(struct kvm_vcpu *vcpu, bool invalidate_gpa)
> +{
> + ++vcpu->stat.tlb_flush;
> + kvm_x86_ops->tlb_flush(vcpu, invalidate_gpa);

WRT to PTI; how much does this actually invalidate? Does this invalidate
the _entire_ guest TLB, or only the current guest PCID?

> +}