Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87786C4338F for ; Fri, 6 Aug 2021 11:35:44 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E422261050 for ; Fri, 6 Aug 2021 11:35:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E422261050 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:60074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBy8b-0007o0-PE for qemu-devel@archiver.kernel.org; Fri, 06 Aug 2021 07:35:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBy63-0004tW-Gc for qemu-devel@nongnu.org; Fri, 06 Aug 2021 07:33:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:27200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBy62-0002bw-15 for qemu-devel@nongnu.org; Fri, 06 Aug 2021 07:33:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628249581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v+9cgZiaPEuepgnhnbeW3DfHAGVEbyNxMhkIWPhqZcA=; b=PPjlmH90uBxCO0nMBj1lfCBIFqpDjuf4jZ/w7y/nlwZp1uLhN8Jmct5UYfYF4rfeBHamlZ cOfx797LOjcu5HX3fstdXnyiYLc9OYeVM9rpJ06hRCR3stindoefIwlK2hEONIi5lyBYFB o0AoAbqfTENZ/q4HFUeh8KFf2Td9UCY= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-462-crgEC7F0Ofm6_EmElI789w-1; Fri, 06 Aug 2021 07:32:59 -0400 X-MC-Unique: crgEC7F0Ofm6_EmElI789w-1 Received: by mail-wm1-f69.google.com with SMTP id c41-20020a05600c4a29b0290253935d0f82so3746500wmp.9 for ; Fri, 06 Aug 2021 04:32:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=v+9cgZiaPEuepgnhnbeW3DfHAGVEbyNxMhkIWPhqZcA=; b=Z2GcRpG5UzhKRpJjOW+60gETZ17juuMupL5UdrESyMdVNvXQf+0KN7FAYbei0jxR41 pBQFXniOmSpMyi+d2Ya+TI0mDW7HiLIJJVDmxszZeQKZ5YBXYIWDMsIVX62sRlNk2MG7 uhQRPET01nX9HXG9YFicVuYdJyazFtHvezzs07v8us6ki91+uu7EUl947D8dPn4O4DqZ B3ZL5Wlh65bnA3FVSk0Pgw9T+3mTYIayKqcAIAc2Iwd8Fj+lmT8CAzmCs6nLk64iTIVm m+NSIu3Bb9z5qEuEtmkLqVrdbj3WXVmx8Wx1qpY12w2YAiW4hstmVX0dDzQx33Wh1IWW zWUw== X-Gm-Message-State: AOAM532QVM97ycLyg2JoPtz4/8//OSQ7WRD+C2goD6LY8XN3IqKPGr3E fzFju3aJfZmPdFv+btUo9FtyjZak+c/xS8EHEy8Edt7slSjqDhBoyqnoyuohrTTbDyg/SwhmBOs bnsY6wwoAfkqcgaQ= X-Received: by 2002:a7b:c318:: with SMTP id k24mr2827870wmj.144.1628249578633; Fri, 06 Aug 2021 04:32:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr4pO+gEffbE/H4+iF9jJIg6HWhSpNcJoFCrLw+Irj1uIgQSpgjiV1EScIRt+xvsT0Q9T/0g== X-Received: by 2002:a7b:c318:: with SMTP id k24mr2827862wmj.144.1628249578476; Fri, 06 Aug 2021 04:32:58 -0700 (PDT) Received: from [192.168.3.132] (p5b0c6104.dip0.t-ipconnect.de. [91.12.97.4]) by smtp.gmail.com with ESMTPSA id x15sm8951984wrs.57.2021.08.06.04.32.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Aug 2021 04:32:58 -0700 (PDT) Subject: Re: [PATCH v1 03/12] s390x/tcg: convert real to absolute address for RRBE, SSKE and ISKE To: Cornelia Huck , Thomas Huth , qemu-devel@nongnu.org References: <20210805152804.100333-1-david@redhat.com> <20210805152804.100333-4-david@redhat.com> <33c1f057-fd79-d15f-e8d5-2d261fbd1255@redhat.com> <2806b81b-4e80-6f85-5f0a-ce78bb6ee3c0@redhat.com> <8735rmzufm.fsf@redhat.com> From: David Hildenbrand Organization: Red Hat Message-ID: <635e1291-ef23-4397-85ca-be24417f42e5@redhat.com> Date: Fri, 6 Aug 2021 13:32:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <8735rmzufm.fsf@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=david@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -60 X-Spam_score: -6.1 X-Spam_bar: ------ X-Spam_report: (-6.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.7, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-2.619, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Jason J . Herne" , Janosch Frank , Richard Henderson , Halil Pasic , Christian Borntraeger , qemu-s390x@nongnu.org, Claudio Imbrenda Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 06.08.21 13:25, Cornelia Huck wrote: > On Fri, Aug 06 2021, David Hildenbrand wrote: > >> On 06.08.21 09:11, Thomas Huth wrote: >>> On 06/08/2021 08.52, David Hildenbrand wrote: >>>>> >>>>> According to the PoP: >>>>> >>>>> "When the enhanced-DAT facility 1 is not installed, or >>>>>    when the facility is installed but the multiple-block >>>>>    control is zero, general register R 2 contains a real >>>>>    address. When the enhanced-DAT facility 1 is >>>>>    installed and the multiple-block control is one, gen- >>>>>    eral register R 2 contains an absolute address." >>>>> >>>>> Don't we have to take that into consideration here, too? >>>> >>>> We don't support EDAT1 a.k.a. huge pages yet. If we ever do, we have to >>>> further extend this code. >>> >>> Ok, then maybe add a comment or assert() to make sure that we don't forget? >> >> Well, we'll need modifications and extensions all over the place to >> support EDAT1, so I'm not sure this will really help ... we'll have to >> carefully scan the PoP either way. > > Something like > /* always real address, as long as we don't implement EDAT1 */ > would still be useful, I think. I am not a friend of describing what to be done with additional CPU features. We have the PoP for that: just imagine you read an old version of the PoP, the code as is would make perfect sense even without ever knowing what EDAT1 is -- and you can verify that the code is correct. For now I added to the patch description: " In the future, when adding EDAT1 support, we'll have to pay attention to SSKE handling, as we'll be dealing with absolute addresses when the multiple-block control is one. " -- Thanks, David / dhildenb