]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Consolidate reset_rsvds_bits_mask() calls
authorSean Christopherson <seanjc@google.com>
Tue, 22 Jun 2021 17:57:26 +0000 (10:57 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Jun 2021 22:00:45 +0000 (18:00 -0400)
commite4d7ebfab9a13d13fb0d190423d60caed1b3fc37
tree9abfd8f41b4ce2d124625f4be989fb70464dbc4e
parent9c9c3fc3f78cb96dfbb181237117fc7beb841727
KVM: x86/mmu: Consolidate reset_rsvds_bits_mask() calls

Move calls to reset_rsvds_bits_mask() out of the various mode statements
and under a more generic CR0.PG=1 check.  This will allow for additional
code consolidation in the future.

No functional change intended.

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