mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 05:21:55 -06:00
accel/kvm: Make kvm_dirty_ring_reaper_init() void
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>
This commit is contained in:
parent
4625742cd2
commit
43a5e377f4
1 changed files with 2 additions and 7 deletions
|
@ -1454,15 +1454,13 @@ static void *kvm_dirty_ring_reaper_thread(void *data)
|
||||||
return NULL;
|
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;
|
struct KVMDirtyRingReaper *r = &s->reaper;
|
||||||
|
|
||||||
qemu_thread_create(&r->reaper_thr, "kvm-reaper",
|
qemu_thread_create(&r->reaper_thr, "kvm-reaper",
|
||||||
kvm_dirty_ring_reaper_thread,
|
kvm_dirty_ring_reaper_thread,
|
||||||
s, QEMU_THREAD_JOINABLE);
|
s, QEMU_THREAD_JOINABLE);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int kvm_dirty_ring_init(KVMState *s)
|
static int kvm_dirty_ring_init(KVMState *s)
|
||||||
|
@ -2744,10 +2742,7 @@ static int kvm_init(MachineState *ms)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->kvm_dirty_ring_size) {
|
if (s->kvm_dirty_ring_size) {
|
||||||
ret = kvm_dirty_ring_reaper_init(s);
|
kvm_dirty_ring_reaper_init(s);
|
||||||
if (ret) {
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kvm_check_extension(kvm_state, KVM_CAP_BINARY_STATS_FD)) {
|
if (kvm_check_extension(kvm_state, KVM_CAP_BINARY_STATS_FD)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue