Reviewed-by: Joao Martins <joao.m.martins@xxxxxxxxxx> Signed-off-by: Liran Alon <liran.alon@xxxxxxxxxx> --- target/i386/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index e4b4f5756a34..b57f873ec9e8 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -1714,7 +1714,7 @@ int kvm_arch_init_vcpu(CPUState *cs) env->nested_state->size = max_nested_state_len; - if (IS_INTEL_CPU(env)) { + if (cpu_has_vmx(env)) { struct kvm_vmx_nested_state_hdr *vmx_hdr = &env->nested_state->hdr.vmx; -- 2.20.1