Do not force hypervisor flag in guests` CPUID - let invoker decide this. It is needed for hidding hypervisor from guest and aimed to run Hyper-V nested in KVM.
Signed-off-by: Vladislav A Yarmak <yarmak.vladis...@gmail.com> --- target-i386/kvm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 41d09e5..63026cc 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -213,10 +213,6 @@ uint32_t kvm_arch_get_supported_cpuid(KVMState *s, uint32_t function, /* KVM before 2.6.30 misreports the following features */ ret |= CPUID_MTRR | CPUID_PAT | CPUID_MCE | CPUID_MCA; } else if (function == 1 && reg == R_ECX) { - /* We can set the hypervisor flag, even if KVM does not return it on - * GET_SUPPORTED_CPUID - */ - ret |= CPUID_EXT_HYPERVISOR; /* tsc-deadline flag is not returned by GET_SUPPORTED_CPUID, but it * can be enabled if the kernel has KVM_CAP_TSC_DEADLINE_TIMER, * and the irqchip is in the kernel. -- 2.1.4