Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2324401iob; Sun, 15 May 2022 15:18:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyHAvBRJY6eaV4yq+oQafxSR6Ml/n1fiYwplZBn9DPWniX3Q1AjYasIVpuZ8riRORqrueP X-Received: by 2002:a5d:5348:0:b0:20d:7eb:53eb with SMTP id t8-20020a5d5348000000b0020d07eb53ebmr2379162wrv.597.1652653097343; Sun, 15 May 2022 15:18:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652653097; cv=none; d=google.com; s=arc-20160816; b=znwW2OpCs3LrfUzmkb00v6WHkRjUxiDft8xJ0ck/DY7ygsN0wNGUqpK+VX1d+GIBA3 Rkj9YD5IPQUgRygFzoHm4zrj9QzHFAvxl9DDo2jN2Z253kpkpqVpafeYoXyMwnCismd1 ScqrG5+VG99KBfmLur6ss4Uy5PcUroFNm5NbQ1vUdv9ryrQxPLT/zO6fQ+3GG+oOc0ib sNMTS1PWUJ88tAErtyc8vQY2yKi4UuRHJup3odEa5/BG6bCXcBJN1HnIq9k1U0gFOupR neHZIY7MsgKPBKTS7s11uDE/hDpGf4VfPrrqiaws5w51IUOqoWylrFRIrKXTjVOoM5ov DvNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=gFcRCXHzFEtlzWz7eSS8KZNL/kcc+zhiRrtANzZvKoU=; b=ksX8w3Ps3tUqkJ59s4RiFD09Bw3d/8QKpuubWgBvleiEq2+d6WB1OAEt9kpk9mkGbv nBcDHw9AL+8ImTHGaMIEFXOJyRbaVoAJw7vZibE4LipusaufaS47GNnFvw/pAn+ybA6K zt9J/OfILukcEaNshBXbM4em8SA8UQFZu0aZ3N09dUiQMQ4T5KAstGskMR9kdZX2Vsbi M7b4R5c7uZ2FbrKoOXJM7qtGvM/pCQMxep993INM8E8nsS0nr2CAUwMtbPE3kIebU15X M22PBjM9UPs2WxF3CcImz/+dBejO3ghnKpxxn88sgNYq0sO1mx2Zq4S7W+abVvvcmMBK VgPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a5d5585000000b0020ac7b98c68si3574764wrv.957.2022.05.15.15.17.51; Sun, 15 May 2022 15:18:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234558AbiEOKfj (ORCPT + 99 others); Sun, 15 May 2022 06:35:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbiEOKfc (ORCPT ); Sun, 15 May 2022 06:35:32 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7C722A279; Sun, 15 May 2022 03:35:31 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4L1JgQ2lXhz4xZ0; Sun, 15 May 2022 20:35:30 +1000 (AEST) From: Michael Ellerman To: Alexander Graf , kvm@vger.kernel.org Cc: Christophe Leroy , linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Matt Evans , linuxppc-dev@lists.ozlabs.org, Paul Mackerras , Michael Ellerman In-Reply-To: <20220510123717.24508-1-graf@amazon.com> References: <20220510123717.24508-1-graf@amazon.com> Subject: Re: [PATCH v3] KVM: PPC: Book3S PR: Enable MSR_DR for switch_mmu_context() Message-Id: <165261089230.1048761.8692230745966082398.b4-ty@ellerman.id.au> Date: Sun, 15 May 2022 20:34:52 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 May 2022 14:37:17 +0200, Alexander Graf wrote: > Commit 863771a28e27 ("powerpc/32s: Convert switch_mmu_context() to C") > moved the switch_mmu_context() to C. While in principle a good idea, it > meant that the function now uses the stack. The stack is not accessible > from real mode though. > > So to keep calling the function, let's turn on MSR_DR while we call it. > That way, all pointer references to the stack are handled virtually. > > [...] Applied to powerpc/fixes. [1/1] KVM: PPC: Book3S PR: Enable MSR_DR for switch_mmu_context() https://git.kernel.org/powerpc/c/ee8348496c77e3737d0a6cda307a521f2cff954f cheers