[PATCH 0/2] target/i386/sev: Replace malloc with local variables

Dov Murik posted 2 patches 2 years, 6 months ago
Failed in applying to current master (apply log)
target/i386/sev.c | 39 +++++++++++++++++----------------------
1 file changed, 17 insertions(+), 22 deletions(-)
[PATCH 0/2] target/i386/sev: Replace malloc with local variables
Posted by Dov Murik 2 years, 6 months ago
In two places in sev.c we use malloc+free to manage memory for small
constant struct variables.  Modify this to use local variables.

This small series can be applied on top of master or on top of Phil's
Housekeeping SEV series [1].

[1] https://lore.kernel.org/qemu-devel/20211007161716.453984-1-philmd@redhat.com/

Dov Murik (2):
  target/i386/sev: Use local variable for kvm_sev_launch_start
  target/i386/sev: Use local variable for kvm_sev_launch_measure

 target/i386/sev.c | 39 +++++++++++++++++----------------------
 1 file changed, 17 insertions(+), 22 deletions(-)

-- 
2.25.1


Re: [PATCH 0/2] target/i386/sev: Replace malloc with local variables
Posted by Paolo Bonzini 2 years, 6 months ago
On 11/10/21 19:30, Dov Murik wrote:
> In two places in sev.c we use malloc+free to manage memory for small
> constant struct variables.  Modify this to use local variables.
> 
> This small series can be applied on top of master or on top of Phil's
> Housekeeping SEV series [1].
> 
> [1] https://lore.kernel.org/qemu-devel/20211007161716.453984-1-philmd@redhat.com/
> 
> Dov Murik (2):
>    target/i386/sev: Use local variable for kvm_sev_launch_start
>    target/i386/sev: Use local variable for kvm_sev_launch_measure
> 
>   target/i386/sev.c | 39 +++++++++++++++++----------------------
>   1 file changed, 17 insertions(+), 22 deletions(-)
> 

Queued, thanks.

Paolo