Skip to content

Commit 1e9fb43

Browse files
committed
accel: Remove unused MachineState argument of AccelClass::setup_post()
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>
1 parent 8dd5e6b commit 1e9fb43

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

accel/accel-system.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void accel_setup_post(MachineState *ms)
5858
AccelState *accel = ms->accelerator;
5959
AccelClass *acc = ACCEL_GET_CLASS(accel);
6060
if (acc->setup_post) {
61-
acc->setup_post(ms, accel);
61+
acc->setup_post(accel);
6262
}
6363
}
6464

accel/xen/xen-all.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static void xen_set_igd_gfx_passthru(Object *obj, bool value, Error **errp)
6464
xen_igd_gfx_pt_set(value, errp);
6565
}
6666

67-
static void xen_setup_post(MachineState *ms, AccelState *accel)
67+
static void xen_setup_post(AccelState *as)
6868
{
6969
int rc;
7070

include/qemu/accel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ typedef struct AccelClass {
4545
void (*cpu_common_unrealize)(CPUState *cpu);
4646

4747
/* system related hooks */
48-
void (*setup_post)(MachineState *ms, AccelState *accel);
48+
void (*setup_post)(AccelState *as);
4949
bool (*has_memory)(AccelState *accel, AddressSpace *as,
5050
hwaddr start_addr, hwaddr size);
5151

0 commit comments

Comments
 (0)