]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0569c7a583ca5806644caf68c89107fc12dcfae1
treec481e60939239013a3d6b565a733eef35f3e73fc
parente4d7ebfab9a13d13fb0d190423d60caed1b3fc37
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