]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386/sev: Use local variable for kvm_sev_launch_measure
authorDov Murik <dovmurik@linux.ibm.com>
Mon, 11 Oct 2021 17:30:26 +0000 (17:30 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Oct 2021 08:47:50 +0000 (10:47 +0200)
commit59e42d88b6851b238927cbe48505b1cef547ce3b
treea7a333cf749822fbb4a9357f4af257fb605b3a51
parenteb8257a261325988873e047872975b5eda03efb4
target/i386/sev: Use local variable for kvm_sev_launch_measure

The struct kvm_sev_launch_measure 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-3-dovmurik@linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c