mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-09 18:40:49 -07:00
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>
This commit is contained in:
parent
0fdcfc3baf
commit
f0db25adcf
1 changed files with 1 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue