KVM: nSVM: Track the ASID generation of the vmcb vmrun through the vmcb
authorCathy Avery <cavery@redhat.com>
Tue, 12 Jan 2021 16:43:13 +0000 (11:43 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:42:30 +0000 (04:42 -0400)
commit193015adf40d0465c240d4e9a7b6e4b84b531f8b
tree52c0569fdbe12c8bda09b3ec2470e07610ceca3f
parentaf18fa775d07aeb92d4598df5364a21489aa4141
KVM: nSVM: Track the ASID generation of the vmcb vmrun through the vmcb

This patch moves the asid_generation from the vcpu to the vmcb
in order to track the ASID generation that was active the last
time the vmcb was run. If sd->asid_generation changes between
two runs, the old ASID is invalid and must be changed.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Cathy Avery <cavery@redhat.com>
Message-Id: <20210112164313.4204-3-cavery@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h