[PATCH v6 03/22] KVM: x86/mmu: Stop passing @direct to mmu_alloc_root()

Sean Christopherson seanjc at google.com
Thu Jun 16 11:47:08 PDT 2022


On Mon, May 16, 2022, David Matlack wrote:
> The argument @direct is vcpu->arch.mmu->root_role.direct, so just use
> that.

It's worth calling out that, unlike non-root page tables, it's impossible to have
a direct root in an indirect MMU.  I.e. provide a hint as to why there's a need to
pass @direct in the first place.

> Suggested-by: Lai Jiangshan <jiangshanlai at gmail.com>
> Signed-off-by: David Matlack <dmatlack at google.com>
> ---



More information about the kvm-riscv mailing list