59 lines
1.7 KiB
Diff
59 lines
1.7 KiB
Diff
|
|
From e11f4d10f843f46a8659d0134220f8712f15b451 Mon Sep 17 00:00:00 2001
|
||
|
|
From: qihao <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Mon, 28 Aug 2023 19:04:32 +0800
|
||
|
|
Subject: [PATCH] accel/kvm: Make kvm_dirty_ring_reaper_init() void
|
||
|
|
MIME-Version: 1.0
|
||
|
|
Content-Type: text/plain; charset=UTF-8
|
||
|
|
Content-Transfer-Encoding: 8bit
|
||
|
|
|
||
|
|
cheery-pick from 43a5e377f42d1d3ed12ea562196f723b354ce411
|
||
|
|
|
||
|
|
The returned value was always zero and had no meaning.
|
||
|
|
|
||
|
|
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
|
||
|
|
Message-id: 20230727073134.134102-7-akihiko.odaki@daynix.com
|
||
|
|
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
|
||
|
|
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
||
|
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
|
||
|
|
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
accel/kvm/kvm-all.c | 9 ++-------
|
||
|
|
1 file changed, 2 insertions(+), 7 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
|
||
|
|
index 799d993f6c..83881e1d96 100644
|
||
|
|
--- a/accel/kvm/kvm-all.c
|
||
|
|
+++ b/accel/kvm/kvm-all.c
|
||
|
|
@@ -1436,15 +1436,13 @@ static void *kvm_dirty_ring_reaper_thread(void *data)
|
||
|
|
return NULL;
|
||
|
|
}
|
||
|
|
|
||
|
|
-static int kvm_dirty_ring_reaper_init(KVMState *s)
|
||
|
|
+static void kvm_dirty_ring_reaper_init(KVMState *s)
|
||
|
|
{
|
||
|
|
struct KVMDirtyRingReaper *r = &s->reaper;
|
||
|
|
|
||
|
|
qemu_thread_create(&r->reaper_thr, "kvm-reaper",
|
||
|
|
kvm_dirty_ring_reaper_thread,
|
||
|
|
s, QEMU_THREAD_JOINABLE);
|
||
|
|
-
|
||
|
|
- return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
static void kvm_region_add(MemoryListener *listener,
|
||
|
|
@@ -2573,10 +2571,7 @@ static int kvm_init(MachineState *ms)
|
||
|
|
}
|
||
|
|
|
||
|
|
if (s->kvm_dirty_ring_size) {
|
||
|
|
- ret = kvm_dirty_ring_reaper_init(s);
|
||
|
|
- if (ret) {
|
||
|
|
- goto err;
|
||
|
|
- }
|
||
|
|
+ kvm_dirty_ring_reaper_init(s);
|
||
|
|
}
|
||
|
|
|
||
|
|
return 0;
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|