From nobody Mon Feb 9 06:09:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1543261368719403.03309922263077; Mon, 26 Nov 2018 11:42:48 -0800 (PST) Received: from localhost ([::1]:38440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRMmI-0000i1-VP for importer@patchew.org; Mon, 26 Nov 2018 14:42:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRMkN-000816-81 for qemu-devel@nongnu.org; Mon, 26 Nov 2018 14:40:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRMkL-0004DM-Az for qemu-devel@nongnu.org; Mon, 26 Nov 2018 14:40:43 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:33492) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRMkL-0004D6-5T for qemu-devel@nongnu.org; Mon, 26 Nov 2018 14:40:41 -0500 Received: by mail-wm1-x342.google.com with SMTP id 79so17316773wmo.0 for ; Mon, 26 Nov 2018 11:40:41 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id s139sm2412468wmd.3.2018.11.26.11.40.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Nov 2018 11:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=OJEMfS+oCLp6yUpHNPlhcOgcYGFdPt/lj3ovE/kcFCs=; b=W/ZwOIw6YQYyYJzSQ5f+Z08hluHd4Qv0lihXbL1TME5JwoZmr2WDOjkApPsYvsoAJD u5C7Xw39uojuiTylZsKZZ5FpwkWJwAzXYxzUi6K/7siZsuvWeguhdM1jZMw772KMZSp6 djsamWxy1AnN0p/OYfee09/UyGBitLE/XHpQm7g+wL6EvlAUuu9OCDjnPLo9J4aUYCDt 6Lwhza508Y+mvaS662orG/U9qe4nbippWdPDxPNBF3WZ780Erhh13Jh7Q+UJy1yjCE83 955yDj/I6OkwJZR9ZFQrb4FY9Ad6BGw7Qju7AQGhUfYaSLh4goNBcBFZA4BGQCuYng6q 20Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=OJEMfS+oCLp6yUpHNPlhcOgcYGFdPt/lj3ovE/kcFCs=; b=t8m7iZjijQg1oXmN03hdy5CEzmJcha1bXWYbm8Jz05vvvI6gA+ocA6UT4NrM1z3lcZ b8NNheBKUU83xpTh38UqY+M0MHStJsUMadP3n+LSKshzaXZ2gVZJQ9qDlswhmHNN22P4 Qg32/hvsh4LHeI/AC/n3wSueS2Kp2VwyqBBndt50I7YGnkQTfAW/Ft1OQL8cg+2Qrnq6 5BanemBaeXdJhcQtR23rkqQQix4RyVqqvFmfg9khLec27QuqM4jhoi+CrsVt9dX4LhBD UrvupLf+HBQnU/Vl976Groi06A+NBThaOJdIFA1KPBiscJZAITJIX/WSKOSqR+Yn+iYF TPDQ== X-Gm-Message-State: AGRZ1gK1w4oP67ZkZf4h3YQYsL/dXMmZ/TFDkCW8J/nt1syPJoH/Sj/d TRFGF9Ji7xFyk9RleTSKeFtN1wE5 X-Google-Smtp-Source: AJdET5eSzM0nn1VlkKqtqFx/t0CxTlUKjm/GsgcMHRk6HG8vroKlU5zzOdu87+JevR21mhhWtcFumA== X-Received: by 2002:a1c:4406:: with SMTP id r6mr25240537wma.151.1543261238886; Mon, 26 Nov 2018 11:40:38 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Mon, 26 Nov 2018 20:40:21 +0100 Message-Id: <1543261235-2834-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1543261235-2834-1-git-send-email-pbonzini@redhat.com> References: <1543261235-2834-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 Subject: [Qemu-devel] [PULL 01/15] target/i386: kvm: add VMX migration blocker X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Nested VMX does not support live migration yet. Add a blocker until that is worked out. Nested SVM only does not support it, but unfortunately it is enabled by default for -cpu host so we cannot really disable it. Signed-off-by: Paolo Bonzini --- target/i386/kvm.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index f524e7d..27dcca5 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -854,6 +854,7 @@ static int hyperv_init_vcpu(X86CPU *cpu) } =20 static Error *invtsc_mig_blocker; +static Error *vmx_mig_blocker; =20 #define KVM_MAX_CPUID_ENTRIES 100 =20 @@ -1246,6 +1247,17 @@ int kvm_arch_init_vcpu(CPUState *cs) !!(c->ecx & CPUID_EXT_SMX); } =20 + if ((env->features[FEAT_1_ECX] & CPUID_EXT_VMX) && !vmx_mig_blocker) { + error_setg(&vmx_mig_blocker, + "Nested VMX virtualization does not support live migrat= ion yet"); + r =3D migrate_add_blocker(vmx_mig_blocker, &local_err); + if (local_err) { + error_report_err(local_err); + error_free(vmx_mig_blocker); + return r; + } + } + if (env->mcg_cap & MCG_LMCE_P) { has_msr_mcg_ext_ctl =3D has_msr_feature_control =3D true; } --=20 1.8.3.1