Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from Jul 12, 2021
Merged

Conversation

cbosdo
Copy link
Contributor

@cbosdo cbosdo commented Jun 22, 2021

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