diff options
author | David Matlack <dmatlack@google.com> | 2022-09-21 20:35:38 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-27 14:02:57 +0300 |
commit | 991c8047b740f192a057d5f22df2f91f087cdb72 (patch) | |
tree | fe87b7220cb571b79eacd60498f9fa5b456634b0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3af15ff47c4df3af7b36ea8315f43c6b0af49253 (diff) | |
download | linux-991c8047b740f192a057d5f22df2f91f087cdb72.tar.xz |
KVM: x86/mmu: Move TDP MMU VM init/uninit behind tdp_mmu_enabled
Move kvm_mmu_{init,uninit}_tdp_mmu() behind tdp_mmu_enabled. This makes
these functions consistent with the rest of the calls into the TDP MMU
from mmu.c, and which is now possible since tdp_mmu_enabled is only
modified when the x86 vendor module is loaded. i.e. It will never change
during the lifetime of a VM.
This change also enabled removing the stub definitions for 32-bit KVM,
as the compiler will just optimize the calls out like it does for all
the other TDP MMU functions.
No functional change intended.
Signed-off-by: David Matlack <dmatlack@google.com>
Reviewed-by: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220921173546.2674386-3-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions