Re: [PATCH 3/3] target/riscv/kvm: get/set vector vregs[]

2024-01-24 Thread Alistair Francis
On Wed, Jan 24, 2024 at 2:18 AM Daniel Henrique Barboza wrote: > > vregs[] have variable size that depends on the current vlenb set by the > host, meaning we can't use our regular kvm_riscv_reg_id() to retrieve > it. > > Create a generic kvm_encode_reg_size_id() helper to encode any given > size i

[PATCH 3/3] target/riscv/kvm: get/set vector vregs[]

2024-01-23 Thread Daniel Henrique Barboza
vregs[] have variable size that depends on the current vlenb set by the host, meaning we can't use our regular kvm_riscv_reg_id() to retrieve it. Create a generic kvm_encode_reg_size_id() helper to encode any given size in bytes into a given kvm reg id. kvm_riscv_vector_reg_id() will use it to enc