From nobody Mon Feb 9 11:06:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 150014015388033.13504631413173; Sat, 15 Jul 2017 10:35:53 -0700 (PDT) Received: from localhost ([::1]:42813 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWQyu-0001r6-N6 for importer@patchew.org; Sat, 15 Jul 2017 13:35:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWQuP-0006WK-Ep for qemu-devel@nongnu.org; Sat, 15 Jul 2017 13:31:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWQuM-0000uq-C1 for qemu-devel@nongnu.org; Sat, 15 Jul 2017 13:31:13 -0400 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:34851) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWQuM-0000ug-5y for qemu-devel@nongnu.org; Sat, 15 Jul 2017 13:31:10 -0400 Received: by mail-pf0-x244.google.com with SMTP id q85so14630098pfq.2 for ; Sat, 15 Jul 2017 10:31:10 -0700 (PDT) Received: from bigtime.twiddle.net (rrcs-173-197-98-123.west.biz.rr.com. [173.197.98.123]) by smtp.gmail.com with ESMTPSA id w66sm27366075pfi.63.2017.07.15.10.31.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Jul 2017 10:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=bKjeI1vGMJ7UqsWgj8SMjKGm2Dk59QRuhpUojVZvOuA=; b=BSuPeF9onwc395xeFFPkI5EWfdMHzcZd3pwfXQ1AmGaXNyYo2FdTlIT4ISfGnmhNvw RuRmnlMoM/x8nbpoW401v8pnr7A3ZR1aPQUtn3pAx3txFKL51h4TTlWJXmeub7uo0S45 0u7X/0GG8oNkVn5BBu9B+KPGpKN2SYJMN2I88QNZpLGx3KV2EowydwGXqfpQagnINvV1 VNGnamFqjX1KtNc92/zsDfaeiWpUJf6YEJ6iHOS/XVCVNQI1iBOrryuQOkTmGkahCTF3 2UplEvmZuKq/AZEcvBQ190L5HsJny2mUoDIV8P8dzzZUq7nZyabzh0gUrw9fGqUwbDTr VKaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=bKjeI1vGMJ7UqsWgj8SMjKGm2Dk59QRuhpUojVZvOuA=; b=SiJ6LmUX1YQSiF1HV3SI2SGKIR60jGnFjUPOe3fSy1mAkYbZ1A5iB9QmUIwD5TvahD yNMPYAf7aHyqoHhkdjO0LkEsGdfu+oJ6aNeFKYEUd4/vYmy8iSDXfcpfBCYhZOeMRd6M caqX0be/58toZEaUDcTl/Rb2E6J1zrHCATFvaVB8+q8zQtK9zUIXbMsDrEiVZCXUBTjD a33rcn6Zfs4/W6hYLpZPtHFljsGYbhePrEAmB5RYbInSmtqJJWc1REc2p195pJQ/jUvq WqGeoH4hKdRdnwfntJU7HIQht1htLyGDMdK3EN515ztcI+WlPoPw1NDbETvjkJKam7bg FEXw== X-Gm-Message-State: AIVw1109WxDSqJOAy8ubIvWbRlhrUUypHfSNpKm7eV+6kGs8A2NE4MtU kaz6vVnycwZ4XjgnHbo= X-Received: by 10.99.188.18 with SMTP id q18mr262560pge.274.1500139869017; Sat, 15 Jul 2017 10:31:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 15 Jul 2017 07:30:49 -1000 Message-Id: <20170715173050.31018-8-rth@twiddle.net> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170715173050.31018-1-rth@twiddle.net> References: <20170715173050.31018-1-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::244 Subject: [Qemu-devel] [PULL 7/8] target/s390x: Allow to enable "idtes" feature for TCG X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, David Hildenbrand Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: David Hildenbrand STFL bit 4 and 5 are just indications to the guest, which TLB entries an IDTE call will clear. These are performance indicators for the guest. STFL bit 4: INVALIDATE DAT TABLE ENTRY (IDTE) performs the invalidation-and-clearing operation by selectively clearing TLB segment-table entries when a segment-table entry or entries are invalidated. IDTE also performs the clearing-by- ASCE operation. Unless bit 4 is one, IDTE simply purges all TLBs. Bit 3 is one if bit 4 is one. We can simply set STFL bit 4 ("idtes") and still purge the complete TLB. Purging more than advertised is never bad. E.g. Linux doesn't even care about this bit. We can optimized this later. This is helpful, as the z9 base model contains this facility. STFL bit 5 (clearing TLB region-table-entries) was never implemented on real HW, therefore we can simply ignore it for now. Signed-off-by: David Hildenbrand Message-Id: <20170627161032.5014-1-david@redhat.com> Signed-off-by: Richard Henderson --- target/s390x/cpu_models.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/s390x/cpu_models.c b/target/s390x/cpu_models.c index 9e9e649..f4f73b8 100644 --- a/target/s390x/cpu_models.c +++ b/target/s390x/cpu_models.c @@ -779,6 +779,7 @@ static void add_qemu_cpu_model_features(S390FeatBitmap = fbm) { static const int feats[] =3D { S390_FEAT_DAT_ENH, + S390_FEAT_IDTE_SEGMENT, S390_FEAT_STFLE, S390_FEAT_EXTENDED_IMMEDIATE, S390_FEAT_EXTENDED_TRANSLATION_2, --=20 2.9.4