]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Derive page role for TDP MMU shadow pages from parent
authorDavid Matlack <dmatlack@google.com>
Wed, 19 Jan 2022 23:07:34 +0000 (23:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:41 +0000 (13:50 -0500)
commit6eeb93e13a049d25554761a28b597883aee984f3
treedc41f731fd1689fa9dccb1b561ad9c9ceb6bc24e
parent77fbc833ed3dd14284f15eaec4ae297b1059b6a3
KVM: x86/mmu: Derive page role for TDP MMU shadow pages from parent

Derive the page role from the parent shadow page, since the only thing
that changes is the level. This is in preparation for splitting huge
pages during VM-ioctls which do not have access to the vCPU MMU context.

No functional change intended.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220119230739.2234394-14-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c