]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Stop passing "direct" to mmu_alloc_root()
authorDavid Matlack <dmatlack@google.com>
Wed, 22 Jun 2022 19:26:50 +0000 (15:26 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:53 +0000 (04:51 -0400)
commitf3c15d88ed293f402a2253475c04561164def5c5
tree601290640f4c77e0061eb70fbbec76bbb6c725f9
parent93ef11248b30013a503431745f3e6805e2e87feb
KVM: x86/mmu: Stop passing "direct" to mmu_alloc_root()

The "direct" argument is vcpu->arch.mmu->root_role.direct,
because unlike non-root page tables, it's impossible to have
a direct root in an indirect MMU.  So just use that.

Suggested-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220516232138.1783324-4-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c