summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2021-09-02 01:09:04 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-09-06 14:23:46 +0200
commit109bbba5066b42431399b40e947243f049d8dc8d (patch)
treea505a96290f7e3b9850e5930296ddb44290694e7 /virt
parentKVM: x86: Update vCPU's hv_clock before back to guest when tsc_offset is adju... (diff)
downloadlinux-109bbba5066b42431399b40e947243f049d8dc8d.tar.xz
linux-109bbba5066b42431399b40e947243f049d8dc8d.zip
KVM: Drop unused kvm_dirty_gfn_invalid()
Drop the unused function as reported by test bot. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20210901230904.15164-1-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/dirty_ring.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/virt/kvm/dirty_ring.c b/virt/kvm/dirty_ring.c
index 7aafefc50aa7..88f4683198ea 100644
--- a/virt/kvm/dirty_ring.c
+++ b/virt/kvm/dirty_ring.c
@@ -91,11 +91,6 @@ static inline void kvm_dirty_gfn_set_dirtied(struct kvm_dirty_gfn *gfn)
gfn->flags = KVM_DIRTY_GFN_F_DIRTY;
}
-static inline bool kvm_dirty_gfn_invalid(struct kvm_dirty_gfn *gfn)
-{
- return gfn->flags == 0;
-}
-
static inline bool kvm_dirty_gfn_harvested(struct kvm_dirty_gfn *gfn)
{
return gfn->flags & KVM_DIRTY_GFN_F_RESET;