On Thu, 2009-10-01 at 19:16 -0300, Marcelo Tosatti wrote:
> It is possible that stale EPTP-tagged mappings are used, if a 
> vcpu migrates to a different pcpu.
> 
> Set KVM_REQ_TLB_FLUSH in vmx_vcpu_load, when switching pcpus, which
> will invalidate both VPID and EPT mappings on the next vm-entry.
> 
> Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com>
> 
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> index e86f1a6..97f4265 100644
> --- a/arch/x86/kvm/vmx.c
> +++ b/arch/x86/kvm/vmx.c
> @@ -708,7 +708,7 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
>       if (vcpu->cpu != cpu) {
>               vcpu_clear(vmx);
>               kvm_migrate_timers(vcpu);
> -             vpid_sync_vcpu_all(vmx);
> +             set_bit(KVM_REQ_TLB_FLUSH, &vcpu->requests);
>               local_irq_disable();
>               list_add(&vmx->local_vcpus_link,
>                        &per_cpu(vcpus_on_cpu, cpu));
> --

This patch fixes my ept misconfig problem seen very so often while
installing sles11 guest.

thanks,
RP

 

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to