]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: Fix virt-host-validate SEV detection
authorJim Fehlig <jfehlig@suse.com>
Wed, 6 Oct 2021 04:34:57 +0000 (22:34 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 6 Oct 2021 17:23:24 +0000 (11:23 -0600)
commit3f9c1a4bb8416dafdaa89358498233aa6684377c
tree9eaeba82b3cbec2062081cedd89fd8cd9fe882bd
parentb96ca3b8485bebc4f8bdabd6837e957acf4ed7a6
tools: Fix virt-host-validate SEV detection

virt-host-validate checks if AMD SEV is enabled by verifying
/sys/module/kvm_amd/parameters/sev is set to '1'. On a system
running kernel 5.13, the parameter is reported as 'Y'. To be
extra paranoid, add a check for 'y' along with 'Y' to complement
the existing check for '1'.

Fixes: https://bugzilla.opensuse.org/show_bug.cgi?id=1188715
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
tools/virt-host-validate-common.c