KVM: x86/mmu: Don't update nested guest's paging bitmasks if CR0.PG=0
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:27 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:45 +0000 (18:00 -0400)
commitaf0eb17e99e5df76380404881e3e5042d582a6b3
treec481e60939239013a3d6b565a733eef35f3e73fc
parentfa4b558802c0ed4ef8132c1b2d1e993c519eb0ae
KVM: x86/mmu: Don't update nested guest's paging bitmasks if CR0.PG=0

Don't bother updating the bitmasks and last-leaf information if paging is
disabled as the metadata will never be used.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210622175739.3610207-43-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c