Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2068EC0015E for ; Thu, 13 Jul 2023 08:32:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234440AbjGMIcL (ORCPT ); Thu, 13 Jul 2023 04:32:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234359AbjGMIbs (ORCPT ); Thu, 13 Jul 2023 04:31:48 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4CE05BAA for ; Thu, 13 Jul 2023 01:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689236476; 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=jKDC12Vuv9wLWICjMpw42qHMl5EhA99+6gECr+MAJew=; b=GMhtvF3kdW7csP/v5Xs8uLKzW9Zn6hh8yuoOrQq4L5+bvZuFOUDbg72sWsoUmhFvonlgDA em4zXsfzvEvYC5Xdtc0NH+zlmBIotrX6eFYh72KqNeb3ZJ16EEZUd/PqWOP7rqDLUCPpvd Oly3UJ5RMcmVQm35W6t6Efw6BibuF7g= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-508-40z_xA_IPAOyiD9dYaI9Lg-1; Thu, 13 Jul 2023 04:21:14 -0400 X-MC-Unique: 40z_xA_IPAOyiD9dYaI9Lg-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7656a0f8565so109419485a.1 for ; Thu, 13 Jul 2023 01:21:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689236474; x=1691828474; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jKDC12Vuv9wLWICjMpw42qHMl5EhA99+6gECr+MAJew=; b=IDbtaVS65M74jvMDjpOraa7tgff5kbGHhzgsHQI3pRdz8EqU/fJ9a4iz3PkzV2e9Fm x4gAr/1AX4YJIbxvB8PkiMZW5Tu9vn9QJGPaOtZnhLeqh50u83v4e1vLw3dmnAlm9h77 dz7DCAU6c9+yHYcEpYiUx3UBSW3H6+Fd+2hNIKwO95oayV7866ZzQL24cwi3dg6vX+Zm bh/+a9FH3PODab3N78YHrcwUa+cSB9n45EPVaHYr0Ds0165QhLBwqZd/+U5kUPr2wVzh DA5yFDtaPn5+gRdovSedbdHXjLiCrGhhMu9sibjTWtCePY+mmko1m83oLekwH7cTD8nF yVdg== X-Gm-Message-State: ABy/qLZP05R71VORcgN/6JpiO9eOn9PRjdePuHBJTy3C9qy1f65HtDgI tWK4KCArtSyXqT+K+d8YNbgHa1r5bMj/v1Rcz2dMDLDMKTI+489yE5XmVjrQiB/QsmQZVAs8TKC YwG8l430YX+mp X-Received: by 2002:ac8:7f95:0:b0:403:a9e1:2ae4 with SMTP id z21-20020ac87f95000000b00403a9e12ae4mr4838746qtj.22.1689236474537; Thu, 13 Jul 2023 01:21:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlHrCN28U1pVIFfdhJ5pC209ToaxshKrVEyEsbK9Bu4N3LbyT6oB6EEZVaH8LNZPKja4jn5Lww== X-Received: by 2002:ac8:7f95:0:b0:403:a9e1:2ae4 with SMTP id z21-20020ac87f95000000b00403a9e12ae4mr4838741qtj.22.1689236474336; Thu, 13 Jul 2023 01:21:14 -0700 (PDT) Received: from [10.33.192.205] (nat-pool-str-t.redhat.com. [149.14.88.106]) by smtp.gmail.com with ESMTPSA id f13-20020ac87f0d000000b00401217aa51dsm2908044qtk.76.2023.07.13.01.21.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jul 2023 01:21:14 -0700 (PDT) Message-ID: Date: Thu, 13 Jul 2023 10:21:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [kvm-unit-tests PATCH v5 3/6] s390x: sie: switch to home space mode before entering SIE Content-Language: en-US To: Claudio Imbrenda Cc: Nico Boehr , frankja@linux.ibm.com, kvm@vger.kernel.org, linux-s390@vger.kernel.org References: <20230712114149.1291580-1-nrb@linux.ibm.com> <20230712114149.1291580-4-nrb@linux.ibm.com> <3dbe3094-b796-6b78-a97f-130a82780421@redhat.com> <20230713101707.1d1da214@p-imbrenda> From: Thomas Huth In-Reply-To: <20230713101707.1d1da214@p-imbrenda> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 13/07/2023 10.17, Claudio Imbrenda wrote: > On Thu, 13 Jul 2023 09:28:19 +0200 > Thomas Huth wrote: > > [...] > >>> + irq_set_dat_mode(IRQ_DAT_ON, AS_PRIM); >>> + psw_mask_clear_bits(PSW_MASK_HOME); >>> + >>> + /* restore the old CR 13 */ >>> + lctlg(13, old_cr13); >> >> Wouldn't it be better to always switch to HOME address mode directly in our >> startup code already (where we enable DAT)? Switching back and forth every >> time we enter SIE looks confusing to me ... or is there a reason why we >> should continue to run in primary address mode by default and only switch to >> home mode here? > > the existing tests are written with the assumption that they are > running in primary mode. > > switching back and forth might be confusing, but avoids having to > fix all the tests Which tests are breaking? And why? And how much effort would it be to fix them? Thomas