Message ID | 20230405101811.76663-1-philmd@linaro.org |
---|---|
Headers | show |
Series | accel: Share CPUState accel context (HAX/NVMM/WHPX/HVF) | expand |
On 4/5/23 03:17, Philippe Mathieu-Daudé wrote: > These headers are meant to be include by any file to check > the availability of accelerators, thus are not accelerator > specific. > > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > include/sysemu/hax.h | 2 ++ > include/sysemu/kvm.h | 2 ++ > include/sysemu/nvmm.h | 2 ++ > include/sysemu/tcg.h | 2 ++ > include/sysemu/whpx.h | 2 ++ > include/sysemu/xen.h | 2 ++ > 6 files changed, 12 insertions(+) Acked-by: Richard Henderson <richard.henderson@linaro.org> r~
On 4/5/23 03:18, Philippe Mathieu-Daudé wrote: > hThread is only used on the error path in hax_kick_vcpu_thread(). > > Fixes: b0cb0a66d6 ("Plumb the HAXM-based hardware acceleration support") > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > target/i386/hax/hax-all.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
On 4/5/23 03:18, Philippe Mathieu-Daudé wrote: > We want all accelerators to share the same opaque pointer in > CPUState. Start with the HAX context, renaming its forward > declarated structure 'hax_vcpu_state' as 'AccelvCPUState'. > > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > include/hw/core/cpu.h | 7 +++---- > target/i386/hax/hax-i386.h | 3 ++- > target/i386/nvmm/nvmm-all.c | 2 +- > target/i386/whpx/whpx-all.c | 2 +- > 4 files changed, 7 insertions(+), 7 deletions(-) Can this be squashed with previous? It seems odd to change the name twice in a row. Is the "v" in AccelvCPUState helpful? > + struct AccelvCPUState *accel; > /* shared by kvm, hax and hvf */ > bool vcpu_dirty; Move below the comment? Or is that later? r~
On 4/5/23 03:18, Philippe Mathieu-Daudé wrote:
> +struct AccelvCPUState;
Missing typedef?
r~