]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Decouple rmap_add() and link_shadow_page() from kvm_vcpu
authorDavid Matlack <dmatlack@google.com>
Wed, 22 Jun 2022 19:27:02 +0000 (15:27 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:57 +0000 (04:51 -0400)
commitaab512a0a34b9f98db57ee915843265d4ccd2e0a
tree45b4b0ea81cc0bb1e16c2f8798431245511131fd
parent1ce7472cbdcf27145abc3d0d22730ae101bd4fdf
KVM: x86/mmu: Decouple rmap_add() and link_shadow_page() from kvm_vcpu

Allow adding new entries to the rmap and linking shadow pages without a
struct kvm_vcpu pointer by moving the implementation of rmap_add() and
link_shadow_page() into inner helper functions.

No functional change intended.

Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220516232138.1783324-16-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c