Commit d48086d1 authored by Joerg Roedel's avatar Joerg Roedel Committed by Avi Kivity

KVM: SVM: Add clean-bit for the ASID

This patch implements the clean-bit for the asid in the
vmcb.
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent f56838e4
...@@ -189,6 +189,7 @@ enum { ...@@ -189,6 +189,7 @@ enum {
VMCB_INTERCEPTS, /* Intercept vectors, TSC offset, VMCB_INTERCEPTS, /* Intercept vectors, TSC offset,
pause filter count */ pause filter count */
VMCB_PERM_MAP, /* IOPM Base and MSRPM Base */ VMCB_PERM_MAP, /* IOPM Base and MSRPM Base */
VMCB_ASID, /* ASID */
VMCB_DIRTY_MAX, VMCB_DIRTY_MAX,
}; };
...@@ -1488,6 +1489,8 @@ static void new_asid(struct vcpu_svm *svm, struct svm_cpu_data *sd) ...@@ -1488,6 +1489,8 @@ static void new_asid(struct vcpu_svm *svm, struct svm_cpu_data *sd)
svm->asid_generation = sd->asid_generation; svm->asid_generation = sd->asid_generation;
svm->vmcb->control.asid = sd->next_asid++; 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) static void svm_set_dr7(struct kvm_vcpu *vcpu, unsigned long value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment