summaryrefslogtreecommitdiff
path: root/scripts/cleanpatch
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2026-05-30 12:55:41 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2026-06-12 10:43:52 +0200
commit8503953e266c78e4bbe281ea3a0a06b1a37b7836 (patch)
tree86699a9c1f9bf222bc02873a1b4227e5173cc58b /scripts/cleanpatch
parent9fb628b4cd3488a36e3fc9b22bb840048aa1a9d2 (diff)
KVM: x86: remove nested_mmu from mmu_is_nested()
nested_mmu is always stored into vcpu->arch.walk_mmu at the same time as guest_mmu is stored into vcpu->arch.mmu. But nested_mmu is not even a proper MMU, it is only used for page walking; plus the fact that walk_mmu has to be switched at all is just an implementation detail. In the end what matters here is whether the guest is using nested page tables; vmx/nested.c and svm/nested.c check it to see if they are in nEPT or nNPT context respectively. So switch to checking root_mmu vs. guest_mmu, which is a more cogent test. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20260511150648.685374-2-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20260530165545.25599-2-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions