From nobody Thu Nov 28 11:31:02 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=1692822490; cv=none; d=zohomail.com; s=zohoarc; b=PY2k7RVOytb+XxMf3D2BcvAcS2WcNJZ9ErC4o0BI8l8lgUjn87F+KRmhg/6+K6LBx9FHqXYWoNwAWJ7pnynl69Ai3ha98/+MHY1h/UXai4sgH/aYqlyVFXG4h0X+3CPdE0ymg2L/FSv7sLxd0GpMzxU+d5/yi6w3N32nIZA0cMw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692822490; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Sag9wYjn+T6sNPgSHmtKDLhQdqb9BHIQ8q3YF6+2bV0=; b=VBDmVUsdQbozjnxk5ohO+uF0SgpYA0As+RJEPawaeE+OtxYNEj1LLOdQ7wWOQWFvE2EbWYTyg+vU+bg4hzOpwU+Y80k46yxg2usIS3tucOUdteeECmqhRZ3U+MIKhiI39XnOn2wPO/yQPFeOaA63mi4fBIKCauAQDKqLe19L8GI= 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 1692822490236641.5311133323082; Wed, 23 Aug 2023 13:28:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYuOj-0000K5-4m; Wed, 23 Aug 2023 16:24:13 -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 1qYuOT-0008KA-4k for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:23:58 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYuOB-0005TM-VO for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:23:49 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1bda9207132so48316985ad.0 for ; Wed, 23 Aug 2023 13:23:30 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:72f0:1ea7:85d2:141e]) by smtp.gmail.com with ESMTPSA id iz22-20020a170902ef9600b001b9da42cd7dsm11418641plb.279.2023.08.23.13.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 13:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692822209; x=1693427009; 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=Sag9wYjn+T6sNPgSHmtKDLhQdqb9BHIQ8q3YF6+2bV0=; b=C0qtO0Kl87dxlFvgLLgkHnHWv/+fc9hWcETKjsH8OsH5clCkBhGvwA6ebOLqpnquks ZqPHevlc4ZrnvE17BUw2TNXUv0IXsav/yUYGGB7USqoYfexhfjiCXkMfuqlXDQ77ozt0 I9OxF71hulGYdGxMzqkyfHT4gJGk7b8J/KvgsD4u70HjXGiZBxmaIoqegGAwLWsOhSgz KoNzbjwIxFGCPEKTWbT7ayR7bk9nVL44VYpThqAYNlUzKyjywn1OT5uRX5dtDdpMGokm FkCzoAjKSFq/R8yI/PnaA8RMdMNian1/+KOa9MKFTviEIJxKi/NoqmnK3XMPPjYZ9Ooz kcwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692822209; x=1693427009; 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=Sag9wYjn+T6sNPgSHmtKDLhQdqb9BHIQ8q3YF6+2bV0=; b=Fk7OeTr1Xe1eKNEt7EH57u/o9udeZrOMdB1vbg1/5Z5N589XXbOarnVMYP6W3FrAqI fc9zo3v3NmEbG/Tp0hPKFUBo4yT4Jnv1NLq4EnwU9EOzPnkzDiJxMFbJ59TuidQj5h30 PDU3tPdGUWmpWA/WODfyGcCpn+C8tD0RcIcC5HXYJtQZ2fbvepOrHw64qi2H8LD/9gZ0 2uVR2HQgmHyewRu5ru3IB3+eeNL+GkKdHqizeJWmtJYLpNNwRyruEg5330M02CpXTAom qw2lu1FVfKMJGRFx0lwlW12kgrWhTttO9s3X2NZTvl232ULe+3SyT/DeOmUXB1dO3RAa CTFw== X-Gm-Message-State: AOJu0YwNw4uDVZ6++cI22Af7GkercRMm/RwiMbGz9JZxN9FsOJhAer5m bDhCaXwhaTXGy2Vws6+2eYmgLfHbMaKnz00CbW8= X-Google-Smtp-Source: AGHT+IHC8HZrtrwH6/j7XsTNIUtChh7IgdZVeZ4/mdW6xqcDf/lA9oukib11xg03tEyrKBh7PcPCaw== X-Received: by 2002:a17:902:c20d:b0:1c0:bf62:c921 with SMTP id 13-20020a170902c20d00b001c0bf62c921mr908199pll.18.1692822209146; Wed, 23 Aug 2023 13:23:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Anton Johansson Subject: [PULL 01/48] accel/kvm: Widen pc/saved_insn for kvm_sw_breakpoint Date: Wed, 23 Aug 2023 13:22:39 -0700 Message-Id: <20230823202326.1353645-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230823202326.1353645-1-richard.henderson@linaro.org> References: <20230823202326.1353645-1-richard.henderson@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=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1692822490623100001 Content-Type: text/plain; charset="utf-8" From: Anton Johansson via Widens the pc and saved_insn fields of kvm_sw_breakpoint from target_ulong to vaddr. The pc argument of kvm_find_sw_breakpoint is also widened to match. Signed-off-by: Anton Johansson Reviewed-by: Richard Henderson Message-Id: <20230807155706.9580-2-anjo@rev.ng> Signed-off-by: Richard Henderson --- include/sysemu/kvm.h | 6 +++--- accel/kvm/kvm-all.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 115f0cca79..5670306dbf 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -411,14 +411,14 @@ struct kvm_guest_debug; struct kvm_debug_exit_arch; =20 struct kvm_sw_breakpoint { - target_ulong pc; - target_ulong saved_insn; + vaddr pc; + vaddr saved_insn; int use_count; QTAILQ_ENTRY(kvm_sw_breakpoint) entry; }; =20 struct kvm_sw_breakpoint *kvm_find_sw_breakpoint(CPUState *cpu, - target_ulong pc); + vaddr pc); =20 int kvm_sw_breakpoints_active(CPUState *cpu); =20 diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 7b3da8dc3a..76a6d91d15 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -3306,8 +3306,7 @@ bool kvm_arm_supports_user_irq(void) } =20 #ifdef KVM_CAP_SET_GUEST_DEBUG -struct kvm_sw_breakpoint *kvm_find_sw_breakpoint(CPUState *cpu, - target_ulong pc) +struct kvm_sw_breakpoint *kvm_find_sw_breakpoint(CPUState *cpu, vaddr pc) { struct kvm_sw_breakpoint *bp; =20 --=20 2.34.1