Re: [PATCH 2/3] target/ppc/kvm: Replace variable length array in kvmppc_read_hptes()

2024-02-21 Thread Peter Maydell
On Wed, 21 Feb 2024 at 16:26, Thomas Huth wrote: > > HPTES_PER_GROUP is 8 and HASH_PTE_SIZE_64 is 16, so we don't waste > too many bytes by always allocating the maximum amount of bytes on > the stack here to get rid of the variable length array. > > Suggested-by: Peter Maydell > Signed-off-by:

[PATCH 2/3] target/ppc/kvm: Replace variable length array in kvmppc_read_hptes()

2024-02-21 Thread Thomas Huth
HPTES_PER_GROUP is 8 and HASH_PTE_SIZE_64 is 16, so we don't waste too many bytes by always allocating the maximum amount of bytes on the stack here to get rid of the variable length array. Suggested-by: Peter Maydell Signed-off-by: Thomas Huth --- target/ppc/kvm.c | 4 ++-- 1 file changed, 2