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)
commita3aca4de0da99699c5b94fc3fc4e1817e756edd1
treedc41f731fd1689fa9dccb1b561ad9c9ceb6bc24e
parenta81399a5735de2f36ecebf2eed866902d88d7e02
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