]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386/sev: Remove stubs by using code elision
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 7 Oct 2021 16:17:09 +0000 (18:17 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Oct 2021 08:47:49 +0000 (10:47 +0200)
commit02eacf31374152e6fb44554a4632f477d82dd9fc
treef3e3845b7b22136583c704d361b26af630eb407c
parentdeae846f944a330e69109af8c807d6f2e66c95e6
target/i386/sev: Remove stubs by using code elision

Only declare sev_enabled() and sev_es_enabled() when CONFIG_SEV is
set, to allow the compiler to elide unused code. Remove unnecessary
stubs.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20211007161716.453984-17-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/meson.build
target/i386/sev-stub.c [deleted file]
target/i386/sev.h