Re: [PATCH] target/arm: Initialize debug capabilities only once

2023-04-11 Thread Peter Maydell
On Wed, 5 Apr 2023 at 16:36, Akihiko Odaki wrote: > > kvm_arm_init_debug() used to be called several times on a SMP system as > kvm_arch_init_vcpu() calls it. Move the call to kvm_arch_init() to make > sure it will be called only once; otherwise it will overwrite pointers > to memory allocated wit

[PATCH] target/arm: Initialize debug capabilities only once

2023-04-05 Thread Akihiko Odaki
kvm_arm_init_debug() used to be called several times on a SMP system as kvm_arch_init_vcpu() calls it. Move the call to kvm_arch_init() to make sure it will be called only once; otherwise it will overwrite pointers to memory allocated with the previous call and leak it. Fixes: e4482ab7e3 ("target-