Make executor state available to the harness V2
Alternative to #1847, without changing Executor.
With this implementation, GenericInProcessExecutor stores (in addition to its internal state) the state of the parent structure (like QemuExecutor inner state). It's quite unnatural, but it works out well.
Is it a reasonable thing to do?
GenericInProcessExecutor stores (in addition to its internal state) the state of the parent structure (like QemuExecutor inner state).
which part does this? i only see QemuExecutorWithState calling executor_state
GenericInProcessExecutor stores (in addition to its internal state) the state of the parent structure (like QemuExecutor inner state).
which part does this? i only see QemuExecutorWithState calling executor_state
GenericInProcessExecutorWithState does, sorry I didn't make it clear. It's basically GenericInProcessExecutor, with the state of the parent structure (here QemuExecutorWithState) embedded inside.
It's basically GenericInProcessExecutor, with the state of the parent structure (here QemuExecutorWithState) embedded inside.
Ok. Will it feel less odd if you rename QemuExecutorState to QemuInternalState?
It's basically GenericInProcessExecutor, with the state of the parent structure (here QemuExecutorWithState) embedded inside.
Ok. Will it feel less odd if you rename
QemuExecutorStatetoQemuInternalState?
Not sure, since it suggests it represents the state of QEMU itself, which is not the case
But your QemuExecutorState has just first_exec as its only owned member. but whether the execution is first or not is not qemu-specific state right?
How about naming it to BasicExecutorState
I applied the renaming propositions. Is there any other remark for this PR?