]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kvm: x86/mmu: Don't clear write flooding count for direct roots
authorBen Gardon <bgardon@google.com>
Wed, 14 Oct 2020 18:26:59 +0000 (11:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Oct 2020 07:42:15 +0000 (03:42 -0400)
commitdaa5b6c12337a0e6e269d022baa21b0549f507c3
tree9635671d4832b2cb86636ae880146bc2a032f4c5
parent95fb5b0258b7bd2d540102771e31cfd76b72aa7b
kvm: x86/mmu: Don't clear write flooding count for direct roots

Direct roots don't have a write flooding count because the guest can't
affect that paging structure. Thus there's no need to clear the write
flooding count on a fast CR3 switch for direct roots.

Tested by running kvm-unit-tests and KVM selftests on an Intel Haswell
machine. This series introduced no new failures.

This series can be viewed in Gerrit at:
https://linux-review.googlesource.com/c/virt/kvm/kvm/+/2538

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20201014182700.2888246-20-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c