Re: [PATCH 2/3] target/riscv/kvm: initialize 'vlenb' via get-reg-list

2024-01-24 Thread Alistair Francis
On Wed, Jan 24, 2024 at 2:18 AM Daniel Henrique Barboza wrote: > > KVM will check for the correct 'reg_size' when accessing the vector > registers, erroring with EINVAL if we encode the wrong size in reg ID. > Vector registers varies in size with the vector length in bytes, or > 'vlenb'. This mean

[PATCH 2/3] target/riscv/kvm: initialize 'vlenb' via get-reg-list

2024-01-23 Thread Daniel Henrique Barboza
KVM will check for the correct 'reg_size' when accessing the vector registers, erroring with EINVAL if we encode the wrong size in reg ID. Vector registers varies in size with the vector length in bytes, or 'vlenb'. This means that we need the current 'vlenb' being used by the host, otherwise we wo