]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Drop 'shared' param from tdp_mmu_link_page()
authorSean Christopherson <seanjc@google.com>
Tue, 10 Aug 2021 22:45:54 +0000 (15:45 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Aug 2021 20:06:35 +0000 (16:06 -0400)
commit9438f6fab1ea7d455a4e3c960d98447895611bb1
tree41327f7a51e7a15ecf4d55a528cdff7c2d7cbf09
parent823c7fe2579bd534df39fd8868b9ae337902e1d7
KVM: x86/mmu: Drop 'shared' param from tdp_mmu_link_page()

Drop @shared from tdp_mmu_link_page() and hardcode it to work for
mmu_lock being held for read.  The helper has exactly one caller and
in all likelihood will only ever have exactly one caller.  Even if KVM
adds a path to install translations without an initiating page fault,
odds are very, very good that the path will just be a wrapper to the
"page fault" handler (both SNP and TDX RFCs propose patches to do
exactly that).

No functional change intended.

Cc: Ben Gardon <bgardon@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210810224554.2978735-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c