|
@@ -64,10 +64,10 @@ static noinline __init void detect_machine_type(void)
|
|
|
if (stsi(vmms, 3, 2, 2) || !vmms->count)
|
|
if (stsi(vmms, 3, 2, 2) || !vmms->count)
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
- /* Running under KVM? If not we assume z/VM */
|
|
|
|
|
|
|
+ /* Detect known hypervisors */
|
|
|
if (!memcmp(vmms->vm[0].cpi, "\xd2\xe5\xd4", 3))
|
|
if (!memcmp(vmms->vm[0].cpi, "\xd2\xe5\xd4", 3))
|
|
|
S390_lowcore.machine_flags |= MACHINE_FLAG_KVM;
|
|
S390_lowcore.machine_flags |= MACHINE_FLAG_KVM;
|
|
|
- else
|
|
|
|
|
|
|
+ else if (!memcmp(vmms->vm[0].cpi, "\xa9\x61\xe5\xd4", 4))
|
|
|
S390_lowcore.machine_flags |= MACHINE_FLAG_VM;
|
|
S390_lowcore.machine_flags |= MACHINE_FLAG_VM;
|
|
|
}
|
|
}
|
|
|
|
|
|