From nobody Wed Nov 12 10:12:59 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1569613599; cv=none; d=zoho.com; s=zohoarc; b=EItRxf9s3bbWBaVy2RcOsU+1vXdSs8UKNpn+v3aT+J1fhlgppGHolBduK61PabfYgjcg6RGP7nlJ0G+iaB8tl5LfUrTvt8vwOlfFfoL4sReL0oLDgkBAYCbJ3DfF/4+NSxnw12YB18yiYHwlMEW7hIO4RZTTuVCH/e9u0sZCNJc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569613599; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=vmomdltG4SHs0hB1D0S9fmCLBesupAAj+oL64yYCJ5w=; b=LiaF/YI4zKJd0NX0siEHmgQ9HTeFPg4dl80ClM7fMlzNq/9uieUjsV+ezvalzUVp1+MmcaVi7C1//J/97BXyCMVMuJxh1NGf+i2Y0O381BYcUzdPZes0VwM/yJRx8Yk39PNS2E9atw9cGD6+lGxEBni3iQPWb25sUvA/TBJ6RL8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15696135996731.9655023745308426; Fri, 27 Sep 2019 12:46:39 -0700 (PDT) Received: from localhost ([::1]:56824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDwCL-0001Au-SC for importer@patchew.org; Fri, 27 Sep 2019 15:46:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46743) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDw5v-0003TM-2G for qemu-devel@nongnu.org; Fri, 27 Sep 2019 15:40:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDw5s-0006a2-Fu for qemu-devel@nongnu.org; Fri, 27 Sep 2019 15:39:58 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:39864) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iDw5r-0006Yu-QT for qemu-devel@nongnu.org; Fri, 27 Sep 2019 15:39:56 -0400 Received: by mail-pf1-x444.google.com with SMTP id v4so2135049pff.6 for ; Fri, 27 Sep 2019 12:39:55 -0700 (PDT) Received: from localhost.localdomain ([12.206.46.62]) by smtp.gmail.com with ESMTPSA id 192sm3676403pfb.110.2019.09.27.12.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 12:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vmomdltG4SHs0hB1D0S9fmCLBesupAAj+oL64yYCJ5w=; b=bBpNxCm3tlmRASePBTIFSk9X2pDzqK5qGbUCpg9yJpMWgpWwc+KL+WAn4BKmm1oWIU niao6NK7nItkHpwzJg6W6R/fWpGXRAa9C+3Adha/gvyifryNMyS6TSfD/2wmCMkrGaR+ wJP8dGf6+B+D89ODr9cj4qeYjrU+/PyZ5DR85Mk88a27zi8heKcggY5+ULFt860dn7AE 74ZgWogpkmUNUzId2e1ngZGLlzyK3vsjygyPX13AGXwA+dL5PUt8KqYS5YOx5L6revH1 77bQri6xhw9xrEOADdTwD983Jek72dgPiMKRUrumMd45uc/iSdyVktvpIHVzIvutzDsh EOXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vmomdltG4SHs0hB1D0S9fmCLBesupAAj+oL64yYCJ5w=; b=Afwlbs+/U162rzb+7VD/NxZkdAnZGIAjoWspJwsJDpEgDR1EVWhmMh7195yNjvVxlR 3sk2YfugsiFuZmuXCOrYC6/wai6XSdUKYSEF3TacUx7DXrJdlCaR7D6NrDzYEb8hDVcg Zs/gVHnUnXtRv3txrx8pAEvrvY1hmLNSrG6r/IDFpbj9MbiC1/fjPCIQN0/ixQxyd3sU uKsCVq0/tqE64FrE49gS5hkHm8A+SZtMLlJPBctu06uSYYW/R3lh7vrAhZ6GalOA6PUq 312zsIdhpUbroA8qyWWMxBDf+MFGAHPiKjAp43YAgOydd5IoUh8tMdG9B6OmzJzlo9S1 deBQ== X-Gm-Message-State: APjAAAUuc0BFVHYjUQitiEzbRqgN2ICHnRYRTuM531DHEkMwvPRK1/20 BqDoqPfg6V9SDYNiYQAWT+4x2Kzyif0= X-Google-Smtp-Source: APXvYqx9Rw+7JUDAtL7Tig8qyuMGQH8dwN9BiY5YeV1SdPzTd9q5Viv015iCDazN4I4cNxvJLT6KVw== X-Received: by 2002:a17:90a:9d87:: with SMTP id k7mr12106460pjp.103.1569613194228; Fri, 27 Sep 2019 12:39:54 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 14/18] target/s390x: Rely on unwinding in s390_cpu_virt_mem_rw Date: Fri, 27 Sep 2019 12:39:21 -0700 Message-Id: <20190927193925.23567-15-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190927193925.23567-1-richard.henderson@linaro.org> References: <20190927193925.23567-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-s390x@nongnu.org, david@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" For TCG, we will always call s390_cpu_virt_mem_handle_exc, which will go through the unwinder to set ILEN. For KVM, we do not go through do_program_interrupt, so this argument is unused. Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/mmu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/s390x/mmu_helper.c b/target/s390x/mmu_helper.c index 98ac58574c..437e211366 100644 --- a/target/s390x/mmu_helper.c +++ b/target/s390x/mmu_helper.c @@ -511,7 +511,7 @@ int s390_cpu_virt_mem_rw(S390CPU *cpu, vaddr laddr, uin= t8_t ar, void *hostbuf, =20 ret =3D translate_pages(cpu, laddr, nr_pages, pages, is_write, &tec); if (ret) { - trigger_access_exception(&cpu->env, ret, ILEN_AUTO, tec); + trigger_access_exception(&cpu->env, ret, ILEN_UNWIND, tec); } else if (hostbuf !=3D NULL) { /* Copy data by stepping through the area page by page */ for (i =3D 0; i < nr_pages; i++) { --=20 2.17.1