From patchwork Fri Jun 20 17:27:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 898372 Delivered-To: patch@linaro.org Received: by 2002:a5d:5f54:0:b0:3a4:ee3f:8f15 with SMTP id cm20csp1560524wrb; Fri, 20 Jun 2025 15:20:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXAEdbTgIElEiJRzX0b+LYER0Lq+oU9kq88VtofXdIeZRK66PJ+YsAbZcKqc6+bHZZyScduyA==@linaro.org X-Google-Smtp-Source: AGHT+IHi/ypzc+Ipv4X6MG8rloV/px1PDX2d+eIWr8/rNLqXReVCEu3OlmiK0qIX3ScechMoYB/u X-Received: by 2002:a05:620a:25d2:b0:7cd:4dbf:3c49 with SMTP id af79cd13be357-7d3f9932d71mr706504585a.43.1750458022392; Fri, 20 Jun 2025 15:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1750458022; cv=none; d=google.com; s=arc-20240605; b=JrLSLZ/b20/LUFvGgp0h3/MqLoaOCbX1kLOEoamatLksyAG7IFK6JK+H0YmgRYALD9 s/8ZX1pLFFDRzhyH4X+gDx+DZrlfWtXc5N38Z8Q1kn9CAAe1hZucAzrER5qTKJYmPSlc GoYhzm3ZYsY2nXBFab8RL/W3wUB3C5wnfVkKkCo3WcbphzDYIDgsUp2DSgqs5i65NBZe v2Oh03acm8HrVb9R8e9UD+749MhgSrx5L2OZcdkwUkuKh75f8WM54sdVEeAB/OGzi71l TqPLc+i8izUjuRaJWvOZWRaLLM6n/wI0SXIenmqxx0B0zwNjmcbxyQIw2yjL5xSfnSLk T8nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L4yIceXOfpWG6Pc9FN4242QyS92dqsokOykU1/e0mxI=; fh=AyzBWpdZKvTUKIe2KsNBcRb7uNXo8uS2i+VtImaSwe4=; b=RvN8TeJjt/QjDMA+AHClmITiZCSrGU47aDcjUuHb4z5K+4r6z5xAMAsjS3KyPNhJDd jUMDqzKBA16a6Mk/kKEkUSJ1REp/crcP+uVf5Fu4ZoPwWTpvViSdQp2e+BPngDctt7D4 wBfF5QawRrVwx+4Xhm3B428+x7P8w0c9BAj7oTf90hRb0D9C3rxOPpXSzvGOvEDjo4b4 d/ARtTOiBH5VxonHGhPad6wbojwcOosROsfl+s4tX3ZWkopsMSZZzz4wXaXNULooOkPe W0Bqx5xlNLzKe4btl4LrVIFPZS+n6nvnvJzAB2eFXNfqjMnsn4NSZg0MHq13TMwP2yuf ukKw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AttZDGh2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7d3f9a1ac8asi255588285a.527.2025.06.20.15.20.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jun 2025 15:20:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AttZDGh2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uSk4H-0000dK-8x; Fri, 20 Jun 2025 18:18:43 -0400 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 1uSfbA-0007y5-Ry for qemu-devel@nongnu.org; Fri, 20 Jun 2025 13:32:20 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uSfb8-0006b8-W7 for qemu-devel@nongnu.org; Fri, 20 Jun 2025 13:32:20 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4530921461aso17916425e9.0 for ; Fri, 20 Jun 2025 10:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750440737; x=1751045537; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=L4yIceXOfpWG6Pc9FN4242QyS92dqsokOykU1/e0mxI=; b=AttZDGh2iGX6RtRrDxQc2CYyjuYFAetd+VJkT4ymNdC0l5EI5DUeK1LTPeTIyE5L1G /al56n90OJTwadB/HeudcbTmQe9WbtbJ3stwvMlTfxGCloLnSxT2Ss7gtQ6a4+WCkUMI yrjGnERK8FGR+9SZQfMs+a0fhmE4lgLt+29Cy0S61MpY116sFBxDATNjAH0dcGuGha4p KheJVCRz+EJJxzlQOYQcZfpgPXWb+0I587MA79ygiaYcanzx8fWFtCI7meUzgf2M4wP1 mXVdMHGFjZwcGkifXKx/XyaQMAqvCsrAww3DC3LbttZwbqvDDWi44U+SPFJNdMTahweN g89g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750440737; x=1751045537; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L4yIceXOfpWG6Pc9FN4242QyS92dqsokOykU1/e0mxI=; b=fCP5QLU6NXH6kix0+89OZNhmAaBJM3JRClKJs9qm7iuRmJAluV56jlHeDJqo0E/cRh Tbiwko6HlbuBx54jkGV3XqWvSTPOrf4X+StVuNLACln/TjLDY/kcFJLQcydQnkQPXQaY n8TEKbI996B9xZhuOZoqrlqwB9bYUHgy39XN6BJw5Ucr7WWYmF2rISkeZyM3JHHx4s3O ROcPLzN/8pM2oC2d/A6Eh7ogSDSt9mjVD9Wl7BhOobkwkMRHAtGv9fJcYUk40q3u4tWU zu+6UClTq1soklab6D8p+hcIZs3M4IZYM5rny4CIsgr5FxxE5so2P48PGnkqN+R25r+K KV0g== X-Gm-Message-State: AOJu0YzTWiBrTGp28m0z0Kj2gcMd/rr9b2OVLwoloZrsuP+V66GPKywh GQja/oSDILBvlqd9fUhTbMUH99L3rnmgcnuIgqMdu6aMVwEp3j+h0hk8mFBR6QaDPM3wYoVXoxd gHYr5sIu6PA== X-Gm-Gg: ASbGncus9qN7WCTaltkmkEP0t49CsFPl20gTKOvbezvVQ0snSx4zNpR2OP07zfxwl6n ftM9RPmXF1b6PVqfSHOZA6zhjoUuIrwpKj0O96cD3lvc0SYjRvqtg9+qPCROvy5g4HmaF6LedZF 8GMtqr0yDACfO6XXLsH6g+Bm+eh/oZtCtPNmaBFoD2cOo0ZgMLNI8WK4SKXMZsT2puZa3BalBNe YUEITerS90d78qmpPRxI2hc8gCAITZ42eZvGUPv26CpuqSV1dxsviRSLKy1IbZik2/hFlEHEZ3N jUVuKsMLKlXs/cvH4lmAK/VfJgi5zU1bOv8p+0mUtk58KdWSFvJcJD4SWuD9QdSxxuvx8JGA7BD oiexennxUZIjBQOXxX2fayxYkLGCoCmhsyAjqDwscE6AZlcgtkJen7Sm/ X-Received: by 2002:a05:600c:4e50:b0:453:7bd:2e30 with SMTP id 5b1f17b1804b1-453655c2b6fmr33948515e9.29.1750440737310; Fri, 20 Jun 2025 10:32:17 -0700 (PDT) Received: from localhost.localdomain (101.red-95-127-63.dynamicip.rima-tde.net. [95.127.63.101]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a6d1187e80sm2577352f8f.78.2025.06.20.10.32.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Jun 2025 10:32:16 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Alexander Graf , =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson , Paolo Bonzini , Peter Maydell , Julian Armistead , Cameron Esfahani , Mark Burton , Thomas Huth , "Edgar E. Iglesias" , Pierrick Bouvier , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [RFC PATCH RESEND 30/42] accel/split: Implement remove_all_breakpoints() Date: Fri, 20 Jun 2025 19:27:38 +0200 Message-ID: <20250620172751.94231-31-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250620172751.94231-1-philmd@linaro.org> References: <20250620172751.94231-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- accel/split/split-accel-ops.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/accel/split/split-accel-ops.c b/accel/split/split-accel-ops.c index e1d91ace2fa..0f3d48fc68d 100644 --- a/accel/split/split-accel-ops.c +++ b/accel/split/split-accel-ops.c @@ -269,7 +269,16 @@ static int split_remove_breakpoint(CPUState *cpu, int type, static void split_remove_all_breakpoints(CPUState *cpu) { - g_assert_not_reached(); + SplitAccelState *sas = SPLIT_ACCEL(cpu->accel->accel); + AccelClass *hwc = ACCEL_GET_CLASS(sas->hw); + AccelClass *swc = ACCEL_GET_CLASS(sas->sw); + + if (hwc->ops->remove_all_breakpoints) { + hwc->ops->remove_all_breakpoints(cpu); + } + if (swc->ops->remove_all_breakpoints) { + swc->ops->remove_all_breakpoints(cpu); + } } static void split_get_vcpu_stats(CPUState *cpu, GString *buf)