From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQDqX-0006ML-1U for qemu-devel@nongnu.org; Wed, 28 Jun 2017 10:21:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQDqT-0005jI-Te for qemu-devel@nongnu.org; Wed, 28 Jun 2017 10:21:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43474) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dQDqT-0005hx-OU for qemu-devel@nongnu.org; Wed, 28 Jun 2017 10:21:29 -0400 References: <20170627161032.5014-1-david@redhat.com> From: Thomas Huth Message-ID: <251b8047-7df4-50a5-cce7-b66858c781a1@redhat.com> Date: Wed, 28 Jun 2017 16:21:20 +0200 MIME-Version: 1.0 In-Reply-To: <20170627161032.5014-1-david@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1] s390x/cpumodel: allow to enable "idtes" feature for TCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Hildenbrand , qemu-devel@nongnu.org Cc: rth@twiddle.net, agraf@suse.de, Aurelien Jarno On 27.06.2017 18:10, David Hildenbrand wrote: > 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. Not sure, but why do we need this bit in add_qemu_cpu_model_features() if Linux does not care about it? We will get it automatically once we support the z9 in TCG... Thomas