]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: SVM: Add clean-bit for the ASID
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 3 Dec 2010 10:45:51 +0000 (11:45 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:26 +0000 (11:30 +0200)
This patch implements the clean-bit for the asid in the
vmcb.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c

index 284c34c997a441ba6174769a29432e2acb4c781f..e188d9e0db91694f2f46199d7eaa9f04dc1a40f5 100644 (file)
@@ -189,6 +189,7 @@ enum {
        VMCB_INTERCEPTS, /* Intercept vectors, TSC offset,
                            pause filter count */
        VMCB_PERM_MAP,   /* IOPM Base and MSRPM Base */
+       VMCB_ASID,       /* ASID */
        VMCB_DIRTY_MAX,
 };
 
@@ -1488,6 +1489,8 @@ static void new_asid(struct vcpu_svm *svm, struct svm_cpu_data *sd)
 
        svm->asid_generation = sd->asid_generation;
        svm->vmcb->control.asid = sd->next_asid++;
+
+       mark_dirty(svm->vmcb, VMCB_ASID);
 }
 
 static void svm_set_dr7(struct kvm_vcpu *vcpu, unsigned long value)