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 12:08:44 +0200 |
commit | f0db25adcfa930a97b5192a6f59fd08c369c32e6 (patch) | |
tree | cd55990410af1842e4e36bb69393bb3dfbe5f9ce | |
parent | 0fdcfc3baf9af2f2e1903eebf23edc9dd8b0aec2 (diff) | |
download | qemu-f0db25adcfa930a97b5192a6f59fd08c369c32e6.zip qemu-f0db25adcfa930a97b5192a6f59fd08c369c32e6.tar.gz qemu-f0db25adcfa930a97b5192a6f59fd08c369c32e6.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>
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, |