]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Fold all of make_spte()'s writable handling into one if-else
authorSean Christopherson <seanjc@google.com>
Fri, 11 Oct 2024 02:10:35 +0000 (19:10 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 30 Oct 2024 21:46:45 +0000 (14:46 -0700)
commit0387d79e24d6cd816ea600f91607bd27c680a897
tree55883f7b97febcaffcee3cb2934b350db3970620
parentcc7ed3358e418d1008d3bb178f60c3b44e0ecd2e
KVM: x86/mmu: Fold all of make_spte()'s writable handling into one if-else

Now that make_spte() no longer uses a funky goto to bail out for a special
case of its unsync handling, combine all of the unsync vs. writable logic
into a single if-else statement.

No functional change intended.

Link: https://lore.kernel.org/r/20241011021051.1557902-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/spte.c