Projects
home:dongzhihai
qemu
_service:tar_scm:accel-kvm-Use-correct-id-for-p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:accel-kvm-Use-correct-id-for-parked-vcpu.patch of Package qemu
From 9de26d69c52db67f48619ad20b8cb9d8ee71e42c Mon Sep 17 00:00:00 2001 From: Keqian Zhu <zhukeqian1@huawei.com> Date: Tue, 26 Mar 2024 15:42:57 +0800 Subject: [PATCH] accel/kvm: Use correct id for parked vcpu kvm_arch_vcpu_id is correct for all platform. Signed-off-by: Keqian Zhu <zhukeqian1@huawei.com> --- accel/kvm/kvm-all.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 6d503aa614..75a3075c14 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -327,11 +327,10 @@ err: void kvm_park_vcpu(CPUState *cpu) { - unsigned long vcpu_id = cpu->cpu_index; struct KVMParkedVcpu *vcpu; vcpu = g_malloc0(sizeof(*vcpu)); - vcpu->vcpu_id = vcpu_id; + vcpu->vcpu_id = kvm_arch_vcpu_id(cpu); vcpu->kvm_fd = cpu->kvm_fd; QLIST_INSERT_HEAD(&kvm_state->kvm_parked_vcpus, vcpu, node); } -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2