]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86/mmu: Remove disallowed_hugepage_adjust shadow_walk_iterator arg
authorBen Gardon <bgardon@google.com>
Wed, 14 Oct 2020 18:26:49 +0000 (11:26 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 22:17:02 +0000 (18:17 -0400)
commitd50f31d469412f9372f895106f9e5c5d888ac53c
tree5a8c0e04b34a8e581cb73793ea579f9bfa8c21df
parent56d8cae20031e6c6dc15821c25616537c274efb6
kvm: x86/mmu: Remove disallowed_hugepage_adjust shadow_walk_iterator arg

In order to avoid creating executable hugepages in the TDP MMU PF
handler, remove the dependency between disallowed_hugepage_adjust and
the shadow_walk_iterator. This will open the function up to being used
by the TDP MMU PF handler in a future patch.

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-10-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h