]> 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)
commitd8784219e39ee5fe15334c6e5b996960c58f36f1
treedc41f731fd1689fa9dccb1b561ad9c9ceb6bc24e
parent2758caac769638cfcd3bed28518351c4319fe883
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