From nobody Wed Nov 27 06:37:16 2024 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=1701441179; cv=none; d=zohomail.com; s=zohoarc; b=JkvZetcGC9ulR5vLjnXhOq7AvXm3UQCohKTwxmKhw43YFnJLHKiMjwEW2VwB5xQn3kV9N6ZPkDoC3zz8rfRyr/i7tWNN+Ty61/TpvE7mKtuUY6jfeO47Ds31H7Ttz+CgsgsITzKPsv/fLyNsx9VZvnzKi1zLY/OFRKlZCEYNhDE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701441179; h=Content-Type:Content-Transfer-Encoding:Cc:Cc: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; bh=H2r7iA7OoHYzxctfj3egfbT+slVUvULOjb8ti2ra+So=; b=bDZya3lb3TDgiUN86j33fA4K+9ZS2hG6N1oZz7AwLQJMzcQYWTEFBlbIMmtnS67FfIRIKr9YVYSZ8d5LtHyN/FeTVAB8VFUDE9C1XnGw7kn3RGml8YQ2lwo65/GTOKaK4wgzVgNdVmG3bSs4rN7f39Z1GpXkaVMg+G8ulkMIvE4= 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 1701441179494939.131081265911; Fri, 1 Dec 2023 06:32:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r94Yw-0003YN-6v; Fri, 01 Dec 2023 09:32:14 -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 1r94Yu-0003Xp-GX for qemu-devel@nongnu.org; Fri, 01 Dec 2023 09:32:12 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r94Ys-0002WX-UU for qemu-devel@nongnu.org; Fri, 01 Dec 2023 09:32:12 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-33330305372so663653f8f.3 for ; Fri, 01 Dec 2023 06:32:10 -0800 (PST) Received: from m1x-phil.lan ([176.176.160.225]) by smtp.gmail.com with ESMTPSA id dq4-20020a0560000cc400b00332e7f9e2a8sm4277513wrb.68.2023.12.01.06.32.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 01 Dec 2023 06:32:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701441129; x=1702045929; 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=H2r7iA7OoHYzxctfj3egfbT+slVUvULOjb8ti2ra+So=; b=KADm7TplXpHqeQkRyKD8tPYVHOdRVOhIinLHImGZ2VcV5ReJ4tgkNKfniMY/e6eg0V wYy1gnygbp+TNUtOnvUnLKOf3NcXlJF1vYp7T/nS25i5Vs/cjvyQE4IpaLu4PeDLD5/k S02Ig2oZtt/kZ3Pi0IuJGvLAdC1xR3/4SNxuvtov2LQH2iabmMG0JuZ9vIQjkRnk2O7i Xs3V2HYRpuE0OH+1EThYclKv0A5sxlD4s2Rptxi6df6ej1VOIU0fHIHr9BKHFX7Chyo3 g05uO+X/Xegx78ScnqsgcW1dksq0N8veUpwpZ5K6YTMiUrhjfhwPlzOmt6RBZz95Eurj kb+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701441129; x=1702045929; 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=H2r7iA7OoHYzxctfj3egfbT+slVUvULOjb8ti2ra+So=; b=b0QolRmdEqKiPRD649JvdJDzrzS48lvpKhbJTHxG3tOu3pmW7MLm+ys2YYg4FiWWHu rNkSOcPbGDlrCEddbQbdTv2v4MZhveZFVATPWPhEO7cY4xrAFmG1Rkckry3OSHHpYXBL XYD5+zKfEec64MI5hsh3tu4nfYb/Fn1vomFH9KKYuzXzB35TS/q0IGwglwUGepUJ/WHN IHmr3dKUUDU8thT1kSTG7IuXY3tPH2Z1a0tFiUDa0P0pRN8kpQFWE3bg+SzzvN53oodR EINduUurX35Vsa95/sCff22SAEetL9WodFvT3l2S1sZi3sAPxadKJ1feqWo/vE9P+U/Y 7Zhg== X-Gm-Message-State: AOJu0Yx41oCiGVP2Q5MFpXyVdyCSOPswrfiqqWu3Yck/TFB79KsKvaY+ Xdf4Zy+jePQhszLlPyqARk4dfRMEV1tsPHG+uck= X-Google-Smtp-Source: AGHT+IFRjWrcyt6o2zfMnv+I2s9cP1wBQQTO9OsNacCHUVKUdyh72wWH41cpsgSJYt+qugV5saDEJQ== X-Received: by 2002:a5d:4e8b:0:b0:333:85e:a11f with SMTP id e11-20020a5d4e8b000000b00333085ea11fmr889298wru.59.1701441129295; Fri, 01 Dec 2023 06:32:09 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , Paolo Bonzini , kvm@vger.kernel.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.0 1/2] accel/kvm: Expose kvm_supports_guest_debug() prototype Date: Fri, 1 Dec 2023 15:32:00 +0100 Message-ID: <20231201143201.40182-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231201143201.40182-1-philmd@linaro.org> References: <20231201143201.40182-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1701441182143000003 kvm_supports_guest_debug() should be accessible by KVM implementations. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Gavin Shan --- accel/kvm/kvm-cpus.h | 1 - include/sysemu/kvm.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/accel/kvm/kvm-cpus.h b/accel/kvm/kvm-cpus.h index ca40add32c..a232348c91 100644 --- a/accel/kvm/kvm-cpus.h +++ b/accel/kvm/kvm-cpus.h @@ -18,7 +18,6 @@ void kvm_destroy_vcpu(CPUState *cpu); void kvm_cpu_synchronize_post_reset(CPUState *cpu); void kvm_cpu_synchronize_post_init(CPUState *cpu); void kvm_cpu_synchronize_pre_loadvm(CPUState *cpu); -bool kvm_supports_guest_debug(void); int kvm_insert_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len); int kvm_remove_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len); void kvm_remove_all_breakpoints(CPUState *cpu); diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index d614878164..6ed18f2d6a 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -206,6 +206,7 @@ int kvm_has_gsi_routing(void); */ bool kvm_arm_supports_user_irq(void); =20 +bool kvm_supports_guest_debug(void); =20 int kvm_on_sigbus_vcpu(CPUState *cpu, int code, void *addr); int kvm_on_sigbus(int code, void *addr); --=20 2.41.0