KVM: MMU: Add missing large page accounting to drop_large_spte()
Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
37178b8bf0
commit
6addd1aa2c
@ -1798,6 +1798,7 @@ static void drop_large_spte(struct kvm_vcpu *vcpu, u64 *sptep)
|
|||||||
{
|
{
|
||||||
if (is_large_pte(*sptep)) {
|
if (is_large_pte(*sptep)) {
|
||||||
drop_spte(vcpu->kvm, sptep);
|
drop_spte(vcpu->kvm, sptep);
|
||||||
|
--vcpu->kvm->stat.lpages;
|
||||||
kvm_flush_remote_tlbs(vcpu->kvm);
|
kvm_flush_remote_tlbs(vcpu->kvm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user