diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-06-30 15:30:24 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-07-04 12:08:44 +0200 |
commit | 583d1c8f1652777e7d60f09eb58c1f6378d897f1 (patch) | |
tree | a37e77680249302ca1027b6131d4eaf6dcfc16f1 | |
parent | f0db25adcfa930a97b5192a6f59fd08c369c32e6 (diff) | |
download | qemu-583d1c8f1652777e7d60f09eb58c1f6378d897f1.zip qemu-583d1c8f1652777e7d60f09eb58c1f6378d897f1.tar.gz qemu-583d1c8f1652777e7d60f09eb58c1f6378d897f1.tar.bz2 |
accel/kvm: Directly pass KVMState argument to do_kvm_create_vm()
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250703173248.44995-35-philmd@linaro.org>
-rw-r--r-- | accel/kvm/kvm-all.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 72fba12..007f82a 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -2470,13 +2470,10 @@ uint32_t kvm_dirty_ring_size(void) return kvm_state->kvm_dirty_ring_size; } -static int do_kvm_create_vm(MachineState *ms, int type) +static int do_kvm_create_vm(KVMState *s, int type) { - KVMState *s; int ret; - s = KVM_STATE(ms->accelerator); - do { ret = kvm_ioctl(s, KVM_CREATE_VM, type); } while (ret == -EINTR); @@ -2646,7 +2643,7 @@ static int kvm_init(AccelState *as, MachineState *ms) goto err; } - ret = do_kvm_create_vm(ms, type); + ret = do_kvm_create_vm(s, type); if (ret < 0) { goto err; } |