[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 16/18] stubs: split record/replay stubs further
|
From: |
Paolo Bonzini |
|
Subject: |
Re: [PATCH v2 16/18] stubs: split record/replay stubs further |
|
Date: |
Mon, 8 Apr 2024 19:14:53 +0200 |
On Mon, Apr 8, 2024 at 6:59 PM Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 4/8/24 05:53, Paolo Bonzini wrote:
> > replay.c symbols are only needed by user mode emulation, with the
> > exception of replay_mode that is needed by both user mode emulation
> > (by way of qemu_guest_getrandom) and block layer tools (by way of
> > util/qemu-timer.c).
> >
> > Since it is needed by libqemuutil rather than specific files that
> > are part of the tools and emulators, split the replay_mode stub
> > into its own file.
>
> I don't see how this helps.
>
> With qemu_guest_getrandom you still pull in replay_read_random and
> replay_save_random.
> With timerlist_run_timers you still pull in replay_checkpoint.
>
> So both stubs files are still used in the same cases.
But user-mode emulation does not use timerlist_run_timers, and block
layer tools do not use qemu_guest_getrandom. In fact the next patch
wouldn't compile if that wasn't the case.
Paolo
- Re: [PATCH v2 13/18] ramfb: move stubs out of stubs/, (continued)
- [PATCH v2 14/18] memory-device: move stubs out of stubs/, Paolo Bonzini, 2024/04/08
- [PATCH v2 15/18] colo: move stubs out of stubs/, Paolo Bonzini, 2024/04/08
- [PATCH v2 17/18] stubs: include stubs only if needed, Paolo Bonzini, 2024/04/08
- [PATCH v2 16/18] stubs: split record/replay stubs further, Paolo Bonzini, 2024/04/08
- [PATCH v2 18/18] stubs: move monitor_fdsets_cleanup with other fdset stubs, Paolo Bonzini, 2024/04/08