From: Marcelo Tosatti Date: Tue, 21 Jul 2009 15:47:45 +0000 (-0300) Subject: KVM: SVM: force new asid on vcpu migration X-Git-Tag: v2.6.31-rc6~29^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b656b1202498184a0ecef86b3b89ff613b9c6ab;p=pandora-kernel.git KVM: SVM: force new asid on vcpu migration If a migrated vcpu matches the asid_generation value of the target pcpu, there will be no TLB flush via TLB_CONTROL_FLUSH_ALL_ASID. The check for vcpu.cpu in pre_svm_run is meaningless since svm_vcpu_load already updated it on schedule in. Such vcpu will VMRUN with stale TLB entries. Based on original patch from Joerg Roedel (http://patchwork.kernel.org/patch/10021/) Signed-off-by: Marcelo Tosatti Acked-by: Joerg Roedel Signed-off-by: Avi Kivity --- Reading git-diff-tree failed