[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/14] accel: Rename NVMM struct qemu_vcpu -> struct AccelvCP
From: |
Richard Henderson |
Subject: |
Re: [PATCH 10/14] accel: Rename NVMM struct qemu_vcpu -> struct AccelvCPUState |
Date: |
Fri, 7 Apr 2023 16:11:00 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
On 4/5/23 03:18, Philippe Mathieu-Daudé wrote:
- struct qemu_vcpu *qcpu = get_qemu_vcpu(cpu);
+ struct AccelvCPUState *qcpu = get_qemu_vcpu(cpu);
With the typedef in hw/core/cpu.h, you can drop the 'struct' at the same time.
Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
- qcpu = g_try_malloc0(sizeof(*qcpu));
+ qcpu = g_try_new0(struct AccelvCPUState, 1);
Another 'try' to clean up. :-)
r~
- [PATCH 06/14] accel: Use a typedef for struct hax_vcpu_state, (continued)
- [PATCH 06/14] accel: Use a typedef for struct hax_vcpu_state, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 07/14] accel: Rename struct hax_vcpu_state -> struct AccelvCPUState, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 08/14] accel: Move HAX hThread to accelerator context, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 09/14] accel: Allocate NVMM vCPU using g_try_FOO(), Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 10/14] accel: Rename NVMM struct qemu_vcpu -> struct AccelvCPUState, Philippe Mathieu-Daudé, 2023/04/05
- Re: [PATCH 10/14] accel: Rename NVMM struct qemu_vcpu -> struct AccelvCPUState,
Richard Henderson <=
- [PATCH 11/14] accel: Inline NVMM get_qemu_vcpu(), Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 12/14] accel: Rename WHPX struct whpx_vcpu -> struct AccelvCPUState, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 13/14] accel: Inline WHPX get_whpx_vcpu(), Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 14/14] accel: Rename HVF struct hvf_vcpu_state -> struct AccelvCPUState, Philippe Mathieu-Daudé, 2023/04/05