KVM: x86/mmu: Remove unnecessary warnings from restore_acc_track_spte()
authorDavid Matlack <dmatlack@google.com>
Wed, 19 Jan 2022 23:07:29 +0000 (23:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:39 +0000 (13:50 -0500)
commit59940e76d13da7d0b5f81194be7a17ad4639bcd3
treecd3be4dff3719ad9ced7cc1a02dc79efd00bcc7e
parent7b7e1ab6fdc554f77f98c597aa9375b52b3a5454
KVM: x86/mmu: Remove unnecessary warnings from restore_acc_track_spte()

The warnings in restore_acc_track_spte() can be removed because the only
caller checks is_access_track_spte(), and is_access_track_spte() checks
!spte_ad_enabled(). In other words, the warning can never be triggered.

No functional change intended.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220119230739.2234394-9-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c