From nobody Mon Feb 9 08:57:05 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 (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1543329549259801.1825579498593; Tue, 27 Nov 2018 06:39:09 -0800 (PST) Received: from localhost ([::1]:42781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gReVy-0005Hn-VG for importer@patchew.org; Tue, 27 Nov 2018 09:39:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gReTm-0003i1-Vx for qemu-devel@nongnu.org; Tue, 27 Nov 2018 09:36:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gReTk-00018a-GR for qemu-devel@nongnu.org; Tue, 27 Nov 2018 09:36:46 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:51313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gReTk-000166-AB for qemu-devel@nongnu.org; Tue, 27 Nov 2018 09:36:44 -0500 Received: by mail-wm1-x343.google.com with SMTP id j207so14987481wmj.1 for ; Tue, 27 Nov 2018 06:36:44 -0800 (PST) Received: from 640k.localdomain ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id n62sm2821869wmd.25.2018.11.27.06.36.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Nov 2018 06:36:40 -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=xprJIO+4NLUMGQfS8niwGYeGpb77M/bLs+wqO0ZLwRY=; b=sUonLcZ+X+MYSi1RAb1P1O1ypfhU6E2tdGnQKf8cjURLLxErd1sE1Tkv3OUhmUnaCe oecaUljsG8UbY9g4dE+lT//rj5lGGOsNZ5KDgJV9GY6DXpe6j5in4yR7RdpmrIV7+vAx YxUxAQsZDJrroZaQX04pPaHwydxQ7Lwmz46n6byedZNmPlMbro5TiuxV8w2Wve5BrVmB DyXpSorjrh15m8EWD+rY4cjEfmnsyFxvUAAfunNYMFpa62qGUcDBBjUp5QONxc4CCUxj PWtp3J75yEwy3aGLcE5AB4/XmjJP26phaw0HIhS54ZO58D7Wp1zqUoepFdtdppy8ZtT3 9ocA== 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=xprJIO+4NLUMGQfS8niwGYeGpb77M/bLs+wqO0ZLwRY=; b=aUtfNtaAwFEEi+f6L8qjhwSN1PLOcMYnL0shS0VbyLLg1r4txhF92kx89v6/mtpzX7 Ov30/aalufOLosE9ryHrAcuqRj2ublPz1WfILlOewspOnXGTW6Pp1tuuAgAdsZLyt/yc a6RmFIglIaDtozdSDGsJCV/KzdJUO/7A86twxlwwmPqqYqrmxXBaBmZSIIMRd8wlKloM AH6WEDxdi6eLtCxxu8+/zfEIJr+X/YLC/35RWGRJ/UwUMbDrJU8NZXgIaERrqtcAFL4G 9tLyoxP4s3JHCqpHisDnehNfOsm9OHH+7GeGliUvYptVltQDKR3T40l5LpeSGMbo3f3m U5cg== X-Gm-Message-State: AGRZ1gL8i3MBCO9gozAtsHozJXv7REXEFPv2qdlY5SXBJAxrJ9N7xkrq Ylr5QUuIu6epJFsqehVbc/K0xFFT X-Google-Smtp-Source: AJdET5f0dCIQj/+SKRoHexm+RbtV3wEMf3SdSJiqFCYLPcTLwJKWs39ayvuDG735joJdIEXU56rcsQ== X-Received: by 2002:a1c:ce0e:: with SMTP id e14mr29311045wmg.53.1543329402373; Tue, 27 Nov 2018 06:36:42 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 27 Nov 2018 15:36:23 +0100 Message-Id: <1543329397-48407-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1543329397-48407-1-git-send-email-pbonzini@redhat.com> References: <1543329397-48407-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::343 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 3d6739a..2724800 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -855,6 +855,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 @@ -1247,6 +1248,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