Skip to content

virt: use /dev/kvm to detect KVM - #60420

Merged
Ch3LL merged 5 commits into
saltstack:masterfrom
cbosdo:kvm-detection-fix
Jul 12, 2021
Merged

virt: use /dev/kvm to detect KVM#60420
Ch3LL merged 5 commits into
saltstack:masterfrom
cbosdo:kvm-detection-fix

Conversation

@cbosdo

@cbosdo cbosdo commented Jun 22, 2021

Copy link
Copy Markdown
Contributor

What does this PR do?

checking for kvm_* modules to be loaded is not robust enough since the
kernel could be compiled with builtin modules. /dev/kvm is much more
reliable.

What issues does this PR fix or reference?

Fixes: #60419

Merge requirements satisfied?

Commits signed with GPG?

Yes

checking for kvm_* modules to be loaded is not robust enough since the
kernel could be compiled with builtin modules. /dev/kvm is much more
reliable.
@cbosdo
cbosdo requested a review from Ch3LL July 7, 2021 09:23
@Ch3LL
Ch3LL merged commit 46ab10f into saltstack:master Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

virt._is_kvm_hyper returns False when KVM modules are builtin

3 participants