From nobody Sun Nov 24 05:46:18 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=reject dis=none) header.from=sifive.com ARC-Seal: i=1; a=rsa-sha256; t=1726124468; cv=none; d=zohomail.com; s=zohoarc; b=fDJuqNLBX17NRc50ieS+KbXAqHIMTKBTGySPl5yKQeVf7swqlQeJGmaIpxuJiXO0rY04NHvRxVNRfLAJDjgxpL3BIUri91PujxAVx/5DrZZoVpd9MhDecPHRcIolzOfD0dkrA+HfOnB+6oHs16MsuAoTt/gXv07aptfDuBuM6bI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726124468; h=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=lkmTzubpfXWhOndmnlWoFaXYzXRHYYUSg1UDMNDwHU0=; b=QMru4n7PKMPW8p46h5nCP7OHcXgGKHObGLQPDHWxz5aTsNKsCsuKOR90bwFgXG9s/HWZrRqekYO3NdbmxTTuEHpEy9qpgrWpmZks7IdurjESb82AGqY3BrH9/SckuznA/bQK/xOO/5IrLOSA9R9BHwJ6yuZijXA9F1wS9bc4olI= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1726124468735495.5358556638039; Thu, 12 Sep 2024 00:01:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sodoo-0001h4-VC; Thu, 12 Sep 2024 03:00:42 -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 1sodon-0001dS-Ui for qemu-devel@nongnu.org; Thu, 12 Sep 2024 03:00:41 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sodom-0004LH-AQ for qemu-devel@nongnu.org; Thu, 12 Sep 2024 03:00:41 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-718e11e4186so545199b3a.2 for ; Thu, 12 Sep 2024 00:00:39 -0700 (PDT) Received: from hsinchu36-syssw02.internal.sifive.com (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71908fe5309sm4001479b3a.84.2024.09.12.00.00.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 00:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1726124438; x=1726729238; 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=lkmTzubpfXWhOndmnlWoFaXYzXRHYYUSg1UDMNDwHU0=; b=nt7tWcBwTylEo6reXiyf32iBvDd9+JLhXG7ndTxfYGr6cPc7q3Ybfhaeld/FUuHZ3j OVZbJxZPTZ4lJWbvHMpB8Xi/U2uhsVCHpSi0Ni9PlNIhJiWgagUSNegvIHk4XAmpRiE9 5CINU7QYQdCT7H7jBDbOh7oFwbCbrh56XzH5MWbfwHlDUyKmWhA4x5AjGdfNxdH0Vah9 0RP4PtSorkDE4K5dJwa1f5FMbxGpJJa6uKxTPQF4IEvO0QTT3FpZgKrgCShmvm9rDxex 348nZxJ+pSBlHhKoZ+gh9a0nRkvWTTFlOKsW39c1sVK7TKOigAfdmX87yZhk4d1JL/Qs gGhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726124438; x=1726729238; 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=lkmTzubpfXWhOndmnlWoFaXYzXRHYYUSg1UDMNDwHU0=; b=PCjLmwqbx5fe/SoPLJdFiYwR8q+Uj2luIbX3nh0YgaLmAIp3lXXZ5nuC+A/4tfc7Cv yWQyKx8IHsUjDs2seGi+eTAqOKQz087le5jlhhukvVwvbC55vPvPvg6wyLciZF2og6by ofdGpsK9a5G2EhKewbn85b+sLbhezYolWKIl4e/DB37NwaKPIRc2Ff6+SjNLD+oMsdMC mOykWE991sCnHXZVrzUF8Lxo5xXR62rE4kvVeMyr0PRZ9GkJjMRmT54TutyuhqVORMFg Hhjt+nXCQPwJrC93DyPi//4HkUK0ztVfm0BBrjZlWe6PLN3r+pJQc14VRWAysm5BgPDb Ledg== X-Gm-Message-State: AOJu0Yxcc7s+FFaOcgtaQmzzfhaZjhF4ZfrW/zR9PDXcAPobH/7yyoE0 4JIgp5S8PILIWITRnxy4bsdcICJPoGHfgr1J8NO7p8DKI8yqwXkmWps9DoB1yW9rD6cdhpaV6Tx BzmvOn3LIb23eqOVfJFFei0JDLaR0ZhjtPXRiKuTGYcKhp7MegmDRdz72O0m64VFVwOu/aQIj8L Rw+cM7Dcf9Ww0sHibRhwHM3D0xcwz79KIsniA= X-Google-Smtp-Source: AGHT+IE7YwfdSbwkgECmNrglp+39irURHKgvc0yTYl89/G5bju5A8IfA7CFEkuvDDpndZQZ4caOL9w== X-Received: by 2002:a05:6a00:1790:b0:706:a931:20da with SMTP id d2e1a72fcca58-719260654f6mr3520676b3a.3.1726124438332; Thu, 12 Sep 2024 00:00:38 -0700 (PDT) From: "Fea.Wang" To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Paolo Bonzini , Peter Xu , David Hildenbrand , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Fea.Wang" Subject: [PATCH 1/1] softmmu/physmem.c: Keep transaction attribute in address_space_map() Date: Thu, 12 Sep 2024 15:04:04 +0800 Message-Id: <20240912070404.2993976-2-fea.wang@sifive.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240912070404.2993976-1-fea.wang@sifive.com> References: <20240912070404.2993976-1-fea.wang@sifive.com> 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::42e; envelope-from=fea.wang@sifive.com; helo=mail-pf1-x42e.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=unavailable 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 @sifive.com) X-ZM-MESSAGEID: 1726124470930116600 Content-Type: text/plain; charset="utf-8" The follow-up transactions may use the data in the attribution, so keep the value of attribution from the function parameter just as flatview_translate() above. Signed-off-by: Fea.Wang Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- system/physmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/physmem.c b/system/physmem.c index d71a2b1bbd..dc1db3a384 100644 --- a/system/physmem.c +++ b/system/physmem.c @@ -3274,7 +3274,7 @@ void *address_space_map(AddressSpace *as, bounce->len =3D l; =20 if (!is_write) { - flatview_read(fv, addr, MEMTXATTRS_UNSPECIFIED, + flatview_read(fv, addr, attrs, bounce->buffer, l); } =20 --=20 2.34.1