[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230316154554.1237-1-shameerali.kolothum.thodi@huawei.com>
Date: Thu, 16 Mar 2023 15:45:54 +0000
From: Shameer Kolothum <shameerali.kolothum.thodi@...wei.com>
To: <linux-kernel@...r.kernel.org>, <kvm@...r.kernel.org>
CC: <gshan@...hat.com>, <maz@...nel.org>
Subject: [PATCH] KVM: Add the missing stub function for kvm_dirty_ring_check_request()
The stub for !CONFIG_HAVE_KVM_DIRTY_RING case is missing.
Fixes: cf87ac739e48 ("KVM: x86: Introduce KVM_REQ_DIRTY_RING_SOFT_FULL")
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@...wei.com>
---
include/linux/kvm_dirty_ring.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/linux/kvm_dirty_ring.h b/include/linux/kvm_dirty_ring.h
index 4862c98d80d3..a00301059da5 100644
--- a/include/linux/kvm_dirty_ring.h
+++ b/include/linux/kvm_dirty_ring.h
@@ -69,6 +69,11 @@ static inline void kvm_dirty_ring_free(struct kvm_dirty_ring *ring)
{
}
+static inline bool kvm_dirty_ring_check_request(struct kvm_vcpu *vcpu)
+{
+ return false;
+}
+
#else /* CONFIG_HAVE_KVM_DIRTY_RING */
int kvm_cpu_dirty_log_size(void);
--
2.34.1
Powered by blists - more mailing lists