KVM: x86/mmu: Move restore_acc_track_spte() to spte.h
authorDavid Matlack <dmatlack@google.com>
Wed, 19 Jan 2022 23:07:31 +0000 (23:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:40 +0000 (13:50 -0500)
commit315d86da89ebee1263500c81a4aa3334cc25e169
treeef3a9e3be58d5666635a5792efb0124d59373ccd
parent77c23c77f915cb1470b3036a8dd6400f5ef8986e
KVM: x86/mmu: Move restore_acc_track_spte() to spte.h

restore_acc_track_spte() is pure SPTE bit manipulation, making it a good
fit for spte.h. And now that the WARN_ON_ONCE() calls have been removed,
there isn't any good reason to not inline it.

This move also prepares for a follow-up commit that will need to call
restore_acc_track_spte() from spte.c

No functional change intended.

Reviewed-by: Ben Gardon <bgardon@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220119230739.2234394-11-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/spte.h