Package: kvm
Version: 85+dfsg-4.1
Severity: normal
Tags: patch
Currently, if the system's CPU does not support virt extensions, we
print an error and exit 0. If the CPU does support them, but the BIOS
has them disabled, we exit with an error. This seems inconsistent, and
causes the install of kvm to fail in one case and not the other.
I think 'exit 0' should be used in both cases, so that you can install
kvm with the cpu extensions disabled.
--- kvm-85+dfsg/debian/kvm.init.orig 2009-10-14 09:43:50.000000000 -0600
+++ kvm-85+dfsg/debian/kvm.init 2009-10-14 10:07:44.000000000 -0600
@@ -37,6 +37,10 @@
if modprobe "$module"
then
log_success_msg "Loading kvm module $module"
+ elif dmesg | grep -q "kvm: disabled by bios"
+ then
+ log_failure_msg "The CPU extensions required to use KVM are
disabled by your BIOS. Not doing anything."
+ exit 0
else
log_failure_msg "Module $module failed to load"
exit 1
-- System Information:
Debian Release: squeeze/sid
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'unstable'), (1, 'experimental')
Architecture: ia64
Kernel: Linux 2.6.30-2-mckinley (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]