]> git.proxmox.com Git - mirror_qemu.git/commit
target/i386/sev: Use local variable for kvm_sev_launch_start
authorDov Murik <dovmurik@linux.ibm.com>
Mon, 11 Oct 2021 17:30:25 +0000 (17:30 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Oct 2021 08:47:50 +0000 (10:47 +0200)
commiteb8257a261325988873e047872975b5eda03efb4
treee0dbb07117241c51086e20edd98785e617e0099e
parent69520261204b9a1769134ed24b92cc0fa8445951
target/i386/sev: Use local variable for kvm_sev_launch_start

The struct kvm_sev_launch_start has a constant and small size, and
therefore we can use a regular local variable for it instead of
allocating and freeing heap memory for it.

Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20211011173026.2454294-2-dovmurik@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c