Re: [PATCH 2/9] KVM: x86/mmu: Add separate helper for shadow NPT root page role calc

2020-07-22 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Refactor the shadow NPT role calculation into a separate helper to > better differentiate it from the non-nested shadow MMU, e.g. the NPT > variant is never direct and derives its root level from the TDP level. > > Signed-off-by: Sean Christopherson > --- >

[PATCH 2/9] KVM: x86/mmu: Add separate helper for shadow NPT root page role calc

2020-07-15 Thread Sean Christopherson
Refactor the shadow NPT role calculation into a separate helper to better differentiate it from the non-nested shadow MMU, e.g. the NPT variant is never direct and derives its root level from the TDP level. Signed-off-by: Sean Christopherson --- arch/x86/kvm/mmu/mmu.c | 30