Re: [PATCH 3/5] i386/hvf: Fixes startup memory leak (vmcs caps)

2024-11-06 Thread Roman Bolshakov
On Tue, Nov 05, 2024 at 04:57:58PM +0100, Phil Dennis-Jordan wrote: > The hvf_caps data structure only exists once as part of the hvf accelerator > state, but it is initialised during vCPU initialisation. This change therefore > adds a check to ensure memory for it is only allocated once. > Looks

[PATCH 3/5] i386/hvf: Fixes startup memory leak (vmcs caps)

2024-11-05 Thread Phil Dennis-Jordan
The hvf_caps data structure only exists once as part of the hvf accelerator state, but it is initialised during vCPU initialisation. This change therefore adds a check to ensure memory for it is only allocated once. Signed-off-by: Phil Dennis-Jordan --- target/i386/hvf/hvf.c | 4 +++- 1 file cha