OSDN Git Service

KVM: x86/mmu: Remove redundant role overrides for TDP MMU shadow pages
authorDavid Matlack <dmatlack@google.com>
Wed, 19 Jan 2022 23:07:33 +0000 (23:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:41 +0000 (13:50 -0500)
commita81399a5735de2f36ecebf2eed866902d88d7e02
tree35004302bf5dfb522b3a8de6e0ec42c2bf806b2c
parent77aa60753a7b11502430c65a9d10d18af019a5b0
KVM: x86/mmu: Remove redundant role overrides for TDP MMU shadow pages

The vCPU's mmu_role already has the correct values for direct,
has_4_byte_gpte, access, and ad_disabled. Remove the code that was
redundantly overwriting these fields with the same values.

No functional change intended.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220119230739.2234394-13-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c