Re: [PATCH v2 17/18] target/riscv/kvm.c: add kvmconfig_get_cfg_addr() helper

2023-06-19 Thread Andrew Jones
On Tue, Jun 13, 2023 at 05:58:56PM -0300, Daniel Henrique Barboza wrote: > There are 2 places in which we need to get a pointer to a certain > property of the cpu->cfg struct based on property offset. Next patch > will add a couple more. > > Create a helper to avoid repeating this code over and ov

[PATCH v2 17/18] target/riscv/kvm.c: add kvmconfig_get_cfg_addr() helper

2023-06-13 Thread Daniel Henrique Barboza
There are 2 places in which we need to get a pointer to a certain property of the cpu->cfg struct based on property offset. Next patch will add a couple more. Create a helper to avoid repeating this code over and over. Signed-off-by: Daniel Henrique Barboza --- target/riscv/kvm.c | 11 +++--