Message ID | 20241118210834.2366046-5-mjt@tls.msk.ru |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp838369wrx; Mon, 18 Nov 2024 13:09:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW/9w14ffk7uE7fxPe4+MMjpKJ3klaQAhESamybUEGfPNI4yztgbFeIOkbG9Tksx/1qbzd+3A==@linaro.org X-Google-Smtp-Source: AGHT+IHk6zkWP1rZwroav+2qJWuPe5/R54FpbvY8cZeg3pRa8hHcZCgL4W+7kL8r1gUpq2qRchBz X-Received: by 2002:a05:620a:4491:b0:7b1:4762:87 with SMTP id af79cd13be357-7b3622db3e9mr2197076485a.37.1731964199123; Mon, 18 Nov 2024 13:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731964199; cv=none; d=google.com; s=arc-20240605; b=JncvvsVdNoRdZf4QG0F65GcwQ08xJGagkdFFRjTIptB1KPx9smzZKSsp/fy9UdywCA Ggrh026SvKYCYony/QsMcYtJ3FicORUUMNXfeZ96BmrHKmx4tMC3NaeWKx2T8n3yxZTm l2Y6laezpeu9oDgOpGjSQR1Mh2r+XN7RX9hLHvyRHirOzNodtiLQZIc2lbxN1By3pUed wBP+8GzcfwKEhmCLlVIuRUcVdaRv25fiMD/csBWyDeIE2JfYk4WdnMTB1zwPrNQM/mIg DtZzOSabRSM6kqpegKxJRVG9ASoSi6ToTfX2kTt0eDO1flkPmOSU2n0Q9D/IHzCahk7e qa0A== 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; bh=5EpCGLBGMamdDSO2jfrCF5SwQvZHNrpbfk/1AuDTRcg=; fh=fA8wXgZkOijV3QzeJqIqYxlGqKQb9nNVVJRQwjQ6hao=; b=TPuGzB4SMBcBdXKqmR9EUAskHLuurJMFG03/5n7DSbMFMBExEQmzrRp8F+pReiVUQo LeEIkm66e02RFZvgs2vTy2aCVZMPQGaM5D20LCQ0a7yhMECH71VeVt/AJXX29PMO7BXd LTtHYhl8s8tabB9ba4g+sKD8GF/I4gt+ZrT8bjf2REj1imkNFTzuSb17V4WKas/z+HaF 7SVLJeH8JXEcVksKI2sWJBOnisASwJ/EP2M0wgqA2wZ2G6YWoAv08TWagAcXwkdbQ4zI EOFP79qNYg0vPHkZTcTZwij8Q8cBruuczoW6ywB3ghIpOTMN1pH2MkyLUaoR+F3MzkFz GIjw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b37a83cb21si61031285a.101.2024.11.18.13.09.58 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Nov 2024 13:09:59 -0800 (PST) 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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tD8zT-0001vc-H2; Mon, 18 Nov 2024 16:08:59 -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 <mjt@tls.msk.ru>) id 1tD8zK-0001si-TT; Mon, 18 Nov 2024 16:08:51 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mjt@tls.msk.ru>) id 1tD8zI-0005NL-JN; Mon, 18 Nov 2024 16:08:50 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 7FD9AA560B; Tue, 19 Nov 2024 00:08:31 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 19296173624; Tue, 19 Nov 2024 00:08:35 +0300 (MSK) Received: (nullmailer pid 2366109 invoked by uid 1000); Mon, 18 Nov 2024 21:08:34 -0000 From: Michael Tokarev <mjt@tls.msk.ru> To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson <richard.henderson@linaro.org>, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Michael Tokarev <mjt@tls.msk.ru> Subject: [Stable-9.0.4 62/71] accel/tcg: Fix user-only probe_access_internal plugin check Date: Tue, 19 Nov 2024 00:08:19 +0300 Message-Id: <20241118210834.2366046-5-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.5 In-Reply-To: <qemu-stable-9.0.4-20241118223714@cover.tls.msk.ru> References: <qemu-stable-9.0.4-20241118223714@cover.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
None
|
expand
|
diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c index 3cac3a78c4..50a9d32bd3 100644 --- a/accel/tcg/user-exec.c +++ b/accel/tcg/user-exec.c @@ -796,7 +796,7 @@ static int probe_access_internal(CPUArchState *env, vaddr addr, if (guest_addr_valid_untagged(addr)) { int page_flags = page_get_flags(addr); if (page_flags & acc_flag) { - if ((acc_flag == PAGE_READ || acc_flag == PAGE_WRITE) + if (access_type != MMU_INST_FETCH && cpu_plugin_mem_cbs_enabled(env_cpu(env))) { return TLB_MMIO; }