diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-06 12:26:18 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 15:22:04 +0200 |
commit | 4bc5c9ab62f28f66f83648c82508cce16d805a0d (patch) | |
tree | 9fb8bee47d4c6e1f5d78091cff77bcfc633c4c51 | |
parent | 7bdeb984cd3a382ec2b22b8b8c4a5207c316482f (diff) | |
download | qemu-4bc5c9ab62f28f66f83648c82508cce16d805a0d.zip qemu-4bc5c9ab62f28f66f83648c82508cce16d805a0d.tar.gz qemu-4bc5c9ab62f28f66f83648c82508cce16d805a0d.tar.bz2 |
accel/kvm: Prefer local AccelState over global MachineState::accel
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-Id: <20250703173248.44995-32-philmd@linaro.org>
-rw-r--r-- | accel/kvm/kvm-all.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 264f288..72fba12 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -2588,15 +2588,13 @@ static int kvm_init(AccelState *as, MachineState *ms) { /* end of list */ } }, *nc = num_cpus; int soft_vcpus_limit, hard_vcpus_limit; - KVMState *s; + KVMState *s = KVM_STATE(as); const KVMCapabilityInfo *missing_cap; int ret; int type; qemu_mutex_init(&kml_slots_lock); - s = KVM_STATE(ms->accelerator); - /* * On systems where the kernel can support different base page * sizes, host page size may be different from TARGET_PAGE_SIZE, |