]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
accel: Remove unused MachineState argument of AccelClass::setup_post()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 30 Jun 2025 13:33:25 +0000 (15:33 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 4 Jul 2025 10:08:44 +0000 (12:08 +0200)
This method only accesses xen_domid/xen_domid_restrict, which are both
related to the 'accelerator', not the machine. Besides, xen_domid aims
to be in Xen AccelState and xen_domid_restrict a xen_domid_restrict
QOM property.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250703173248.44995-36-philmd@linaro.org>

accel/accel-system.c
accel/xen/xen-all.c
include/qemu/accel.h

index 913b7155d77ea837d323622ac7e438fce48e4ddb..af713cc9024d80f03148c8feec81a4d18d992371 100644 (file)
@@ -58,7 +58,7 @@ void accel_setup_post(MachineState *ms)
     AccelState *accel = ms->accelerator;
     AccelClass *acc = ACCEL_GET_CLASS(accel);
     if (acc->setup_post) {
-        acc->setup_post(ms, accel);
+        acc->setup_post(accel);
     }
 }
 
index 8279746f115c1f2a9e9ffd89f1c9d662b026c6f1..bd0ff64befc28bba0244ff97a048d951bc57238c 100644 (file)
@@ -64,7 +64,7 @@ static void xen_set_igd_gfx_passthru(Object *obj, bool value, Error **errp)
     xen_igd_gfx_pt_set(value, errp);
 }
 
-static void xen_setup_post(MachineState *ms, AccelState *accel)
+static void xen_setup_post(AccelState *as)
 {
     int rc;
 
index f327a71282c7a943e90dffd6625e3b0fcaf338a6..a6a95ff0bcd801d7c63dbe64bb183d0fa2fb1def 100644 (file)
@@ -45,7 +45,7 @@ typedef struct AccelClass {
     void (*cpu_common_unrealize)(CPUState *cpu);
 
     /* system related hooks */
-    void (*setup_post)(MachineState *ms, AccelState *accel);
+    void (*setup_post)(AccelState *as);
     bool (*has_memory)(AccelState *accel, AddressSpace *as,
                        hwaddr start_addr, hwaddr size);