From nobody Tue Feb 10 01:32:52 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1769703088; cv=none; d=zohomail.com; s=zohoarc; b=Kazu9cYYvwOAg0Jl1tnn1RaQ4ZSPNJ1DZFdmBxQmRMMtz/XA2k8DmHnu7RGkpopWWEjtbfCLFC9gao+SW4ttQ6rqtrRUnFdwwP9GWCnC7FFQM8j+kdcQp81S1vCn3A1fkNTagA7liwyBaTsQF7pUxoHgFFkZZbnBgdBA5YgMPU4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769703088; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=Ht2blUch5J5UITDJcWny0wh5hUzdGhmPTt7vqIgV91o=; b=eT6udIEKUg+tC8a8POxEFU4ep/xXvA+1oG2oGZcWOnq+uWeBOOtwS2uXPSpYWkLr+w51rfdlgUDPDlgsonmR9tvNS2y4rQPNpcMO9vRYTfdVnfAUrNXmDn+KKyen3AV6r+trlTqd5zIs4Wt8OLMH4/iy05C0h1FUwwq7HpVKcmc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1769703088470940.7294253989453; Thu, 29 Jan 2026 08:11:28 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vlUbB-0001os-3m; Thu, 29 Jan 2026 11:10:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vlUaj-0000Tn-GU for qemu-devel@nongnu.org; Thu, 29 Jan 2026 11:10:01 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vlUaf-0006iz-IC for qemu-devel@nongnu.org; Thu, 29 Jan 2026 11:09:56 -0500 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-4327790c4e9so745677f8f.2 for ; Thu, 29 Jan 2026 08:09:53 -0800 (PST) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e10edf62sm16762185f8f.13.2026.01.29.08.09.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jan 2026 08:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769702992; x=1770307792; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Ht2blUch5J5UITDJcWny0wh5hUzdGhmPTt7vqIgV91o=; b=NEGSAaiDR4+0FreQZPgTB+cRrW/eYq174wqpZ0QVRB9RdOS7V2xN78mU4EC+KZVfk2 7cDKF9xoHsSSVd97BoGrVkO6JPWCl4B8T7Xfh1/ZsDNQh1z6MHNgwoyt+GaZbKqJOfC/ f2G3T7XjlHpRdmVHED/VjWOoWWT8CNdASUE+x+2NS6atgftTnYLGbzTKNbA5bm3dp+qp 4ESxgODdu1XhkjRjRXUyHxjOEa44kXHhwp+pAyR+YkkG4QuGjP+rremKLMAYD9BvtYNO j//IV4QlsgLfGJPQhKTOpCfM0N+Zo6JwblgWTuueTiqD8gQtjwJeLIQC0jUOX0gpLUSk XIpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769702992; x=1770307792; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Ht2blUch5J5UITDJcWny0wh5hUzdGhmPTt7vqIgV91o=; b=Bi/Td5tQgPVft18oW0duEhjSNghmZlir8Dc9XSi/oKzVT6gZKxVspILa3wsvf9rIci UNnzt9gYx0NPQrpd2mT+Eo6VU3Rx9i9I4YqjYIkyRKz6uzGjHHPYXTSypBZFzgz5EG2h SoFu+tGoIjUbdG3ZEJkxjosdSqmKPU8a+1vDGvfs16va83reEtygrPP8lh/z9JIY49Ac C3vkKECWDHaa6qu1OghYvsK0hInUkAFTG1P93yY4xyHAxTpKUli9S+5HM/ZF6wvNtEIT JtgMO9rra9PpK07uFUh4Au85DM7Ck/aDlRs1LkAQJ02kDtf4pwn4mdKpTwSPRrHnLcBh F9cg== X-Gm-Message-State: AOJu0YxkCHZrw5eCU3TAqWGwAXFlfVzaOtpY+DoI5Bi0ZvNYXBCLimnm NQj+w2Zf/99GKwV2s8eAilF+lyS7ov1SwEVEW5/ZnPCMQtbYdB13n2lwup1jUjMHt3KAt+37/2g tvEyU0as= X-Gm-Gg: AZuq6aJsXT5dZ9Bccka50wJrVokHFxTQWyD4mLNHbrHB7ci3RwoWDXmpOJKbl+WUYXJ BEcbaNaqkhDqN1hKh33ucQklIWJ0hRXh0fGvvfDc54XVcUmBpEk3Ehf+Ld0CHERwe1Vvij6ck8j SqdpLh3o/buN4L8npBt6Ixt8Sy3OxxmoYBerWI5pc662Z3JpFvONz81F+n9n9AYVluEiruLMUbK KZ57ElRfXToqsUhMtEXihovLipyLTTFZSw/0AKFaYRKhOimhHGl7YD35z8uo/e7TXyCkLNVSaUh Dk4jPuwtK2vOL7h3Wcuf/g4pqJvOqddMoAOA/CJ+6xFtcBZD3ZkEdCODVqvrtXX+s8wCmbHvB5s /M5JC++4Yt6ondwHbnNvyDfbh/qdIzmvRzv+IzrfnD55945uBG30HTPxUOy8LAnpyJRql1Fff3Z eyhM/8ElFVWj5VdG9VbQqA8o+IsTNxOA== X-Received: by 2002:a05:6000:2310:b0:435:a594:33dd with SMTP id ffacd0b85a97d-435f3aafeb2mr165515f8f.46.1769702991802; Thu, 29 Jan 2026 08:09:51 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 27/43] hw/arm/smmuv3: Block migration when accel is enabled Date: Thu, 29 Jan 2026 16:09:01 +0000 Message-ID: <20260129160917.1415092-28-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260129160917.1415092-1-peter.maydell@linaro.org> References: <20260129160917.1415092-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1769703101464158500 Content-Type: text/plain; charset="utf-8" From: Shameer Kolothum Live migration is not supported when the SMMUv3 accelerator mode is enabled. Add a migration blocker to prevent migration in this configuration. Reviewed-by: Nicolin Chen Reviewed-by: Eric Auger Tested-by: Zhangfei Gao Reviewed-by: Jonathan Cameron Tested-by: Eric Auger Signed-off-by: Shameer Kolothum Message-id: 20260126104342.253965-28-skolothumtho@nvidia.com Signed-off-by: Peter Maydell --- hw/arm/smmuv3.c | 6 ++++++ include/hw/arm/smmuv3.h | 1 + 2 files changed, 7 insertions(+) diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c index e301bb467d..2be056d792 100644 --- a/hw/arm/smmuv3.c +++ b/hw/arm/smmuv3.c @@ -20,6 +20,7 @@ #include "qemu/bitops.h" #include "hw/core/irq.h" #include "hw/core/sysbus.h" +#include "migration/blocker.h" #include "migration/vmstate.h" #include "hw/core/qdev-properties.h" #include "hw/core/qdev.h" @@ -1925,6 +1926,11 @@ static void smmu_realize(DeviceState *d, Error **err= p) =20 if (s->accel) { smmuv3_accel_init(s); + error_setg(&s->migration_blocker, "Migration not supported with SM= MUv3 " + "accelerator mode enabled"); + if (migrate_add_blocker(&s->migration_blocker, errp) < 0) { + return; + } } =20 c->parent_realize(d, &local_err); diff --git a/include/hw/arm/smmuv3.h b/include/hw/arm/smmuv3.h index 5616a8a2be..9c39acd5ca 100644 --- a/include/hw/arm/smmuv3.h +++ b/include/hw/arm/smmuv3.h @@ -68,6 +68,7 @@ struct SMMUv3State { bool accel; struct SMMUv3AccelState *s_accel; uint64_t msi_gpa; + Error *migration_blocker; }; =20 typedef enum { --=20 2.43.0