]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit9653f2da7522c5e762e2edd2beb53170669d0a2b
tree41327f7a51e7a15ecf4d55a528cdff7c2d7cbf09
parent71f51d2c3253645ccff69d6fa3a870f47005f0b3
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