]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm: Fix VM support check for unrecognized CPUs
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 14 Jul 2010 11:30:50 +0000 (14:30 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Wed, 14 Jul 2010 11:30:50 +0000 (14:30 +0300)
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/kvm.c

index 3baa67e202145701337786d8af31578d159fe590..8a8aa8015ebd910a5b915ff5af1bb21d737e53f7 100644 (file)
@@ -129,10 +129,14 @@ static bool kvm__cpu_supports_vm(void)
                eax_base        = 0x00;
                feature         = KVM__X86_FEATURE_VMX;
                break;
+
        case CPUID_VENDOR_AMD_1:
                eax_base        = 0x80000000;
                feature         = KVM__X86_FEATURE_SVM;
                break;
+
+       default:
+               return false;
        }
 
        regs    = (struct cpuid_regs) {