Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp271836rwb; Tue, 13 Dec 2022 17:26:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7FNS0I+6gDIiyMLXJEltF1VCNNnO8Q2uFB5RFQCLbMBl4HFt6FhZoWD5gADeUDBIyPKh72 X-Received: by 2002:a05:6a20:9d8f:b0:a9:ec2a:100e with SMTP id mu15-20020a056a209d8f00b000a9ec2a100emr27855760pzb.32.1670981169287; Tue, 13 Dec 2022 17:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670981169; cv=none; d=google.com; s=arc-20160816; b=G6Wle/0sGTyFV16VSMNOHm1LFhANHIVzDU82ZShMQ64T6ISUQnMEnXLGI5zxpUeTaY 5xTZMUHdcbr5scv7BkhKB1xi1COr4JJ3eJh0UsX/b6luzfU0gL3V+PVLfP11ob63OsMF 18BOodeIO3R6SRz09OsKybh2XaP9oC9jys4j5G+/UCWJ8rR6YWo3WPDX5cseGNCscnnO MtRXxV/Hu7omWjQaSijDHsU6cy36c5K6P2a0x0HBQY3Eet0CCMkKlZ6vyfvGDxhjEd6E ufZrwQ6+0Q+JEwIDisfqWA5FL3RcV1IOBEwQ9zGaSsEPtiecFygMqat4xRrIy9qVFQkf GHxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=qbKxRIPYAhQPs9JSjFRsJUAAmMT3SmynUTp6Kob5aSA=; b=K21PItxFv5H75FvVVkSE4Z4oTlTMw4pk5anirVxSuxG1EN8MVcS023ldlD5yneeKEB UZrGSmg+t0DJscaVm9H7Rbd88UJYAvFEO6fIuY+S2PYo8CN2F3loKhpn3HDr+pZlB0Ya RHqXBU8B3oUI/6DJCh6a0Fqh40biWMxMe9yglRZXI9cSBQoIEI+bMlqSYW27TxYP4tfK PJ8chihHqisV7I3Yh0q04x8GQgKbxIQTU1hyJpKrCD9Hc0o5oSRKtloe9HhNEzVWcBiL RlBdxZMx7MDUBwM4z7rqceZoa9n+OWq5wd8YGZK8uL3C3v+AxTkJqin2qDmpsL/T2kzK pj8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BJmn8mmJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t64-20020a638143000000b004772e485146si13039406pgd.6.2022.12.13.17.25.58; Tue, 13 Dec 2022 17:26:09 -0800 (PST) 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; dkim=pass header.i=@linux.dev header.s=key1 header.b=BJmn8mmJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237593AbiLNA7a (ORCPT + 72 others); Tue, 13 Dec 2022 19:59:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237594AbiLNA71 (ORCPT ); Tue, 13 Dec 2022 19:59:27 -0500 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE26521894 for ; Tue, 13 Dec 2022 16:59:24 -0800 (PST) Date: Wed, 14 Dec 2022 00:59:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1670979562; 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: in-reply-to:in-reply-to:references:references; bh=qbKxRIPYAhQPs9JSjFRsJUAAmMT3SmynUTp6Kob5aSA=; b=BJmn8mmJMMe4GC4cqN0JMmdIVim+izlQOZFM7XZq1llY0jN+dMVlj1H4EP4eIBEmXp8lYK MXbZuomcvx54TXdefIJEo1RVkbTUFi+HJtKiWnQoFfOhiWeNG5+ZIYpfylkQgVG/nu5OMS hIMZmFyTmHWQIDkc9Qi42jOvL1qPC/g= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Akihiko Odaki Cc: Marc Zyngier , linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, Mathieu Poirier , Suzuki K Poulose , Alexandru Elisei , James Morse , Will Deacon , Catalin Marinas , asahi@lists.linux.dev, Alyssa Rosenzweig , Sven Peter , Hector Martin Subject: Re: [PATCH 0/3] KVM: arm64: Normalize cache configuration Message-ID: References: <20221211051700.275761-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221211051700.275761-1-akihiko.odaki@daynix.com> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Hi Akihiko, On Sun, Dec 11, 2022 at 02:16:57PM +0900, Akihiko Odaki wrote: > Before this change, the cache configuration of the physical CPU was > exposed to vcpus. This is problematic because the cache configuration a > vcpu sees varies when it migrates between vcpus with different cache > configurations. > > Fabricate cache configuration from arm64_ftr_reg_ctrel0.sys_val, which > holds the CTR_EL0 value the userspace sees regardless of which physical > CPU it resides on. > > HCR_TID2 is now always set as it is troublesome to detect the difference > of cache configurations among physical CPUs. > > CSSELR_EL1 is now held in the memory instead of the corresponding > phyisccal register as the fabricated cache configuration may have a > cache level which does not exist in the physical CPU, and setting the > physical CSSELR_EL1 for the level results in an UNKNOWN behavior. > > CLIDR_EL1 and CCSIDR_EL1 are now writable from the userspace so that > the VMM can restore the values saved with the old kernel. > > Akihiko Odaki (3): > arm64/sysreg: Add CCSIDR2_EL1 > arm64/cache: Move CLIDR macro definitions > KVM: arm64: Normalize cache configuration Next time you do a respin can you please bump the version number? I.e. the next version should be v3. Additionally, it is tremendously helpful to reviewers if you can provide (1) a summary of what has changed in the current revision and (2) a lore.kernel.org link to the last series you mailed out. -- Thanks, Oliver