Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1697876lqm; Fri, 3 May 2024 04:03:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7c76wj1jrA0oBy3rUhWxJ/e+HcYousgVVsiTaegmw066ZamFf8e7YAmcTKzRDwOPHR0Rp+7Bq/D3MQECgVk6gOZp59epGGUlN5ce2Jg== X-Google-Smtp-Source: AGHT+IHfmN50euvHCbaaP3gg2ekUgv66SI4FLiDJQc5ZC0fg0VD4VZc6Hp5BYCaKWd5msZx0Uni2 X-Received: by 2002:a50:d6da:0:b0:570:5b70:d76d with SMTP id l26-20020a50d6da000000b005705b70d76dmr1450843edj.28.1714734221348; Fri, 03 May 2024 04:03:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714734221; cv=pass; d=google.com; s=arc-20160816; b=SnB2qMFTbJRfRL7p2DCJ3G8EKwBDygENTPhFe3+0Exlp2kN2Jj3vywSZOJJAKD8qVb yTgCirT9oEkNdawy4FABl2XBrqOvKI7SfBMEiY1cNgbtdOmczsflyqij3dOc9IRo9u05 erm7BO/Azro+JxeSXEsCND22RCRFx+U5WEjk+gGspxdPyBGlaujtHJZWu2cR2x+wPQjr AMwd3iXXeAPt7ttN7FHw6uhfwWz26DHD8xmpry/EiXnaEh98ZgriGVlKSaQ0zl+9X8oF FGjQlX8hDH1+POcI3LgKA+qxmpKoUUw2aVqfsZ8Tc9lHOzTl4M2O0KiDzaEu3kkOWaYx RPdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=U8pbEeU6q3HFr1TucM82IKlHv9be5/rhk+jTB/vMHrQ=; fh=/Nca4EkdXD/ZMueYwXMN+cS5oZqY7rXhdJsrOIz9eJY=; b=MLes5rYPctg8CM/ngB4k+khsRjAGpPF7Pefa9Hz1cB+Q0sf0MIHCfiKyBVsN/NUliT WdEG7/ojirwqJmxrVsp1NfSs130zzy6gqaVKVAmjQaoLcbv1iTWSXfoUjXJTNaN85mUa mdW5phtf7ErmWgBE8gNTwYkF/eVE+HOGf44KRl1aTXcNg7hJ/aU552Klco/Zi5K59c1+ I8FfDCbGqF/EivsvoQ7vU8jR5bekxTOYjJYGhzy3Yj8BfB3tWx13p/mrkpBQ1RrAo+nX Q+2HHt6y1D1CeF98Ff+0QP8lszyD7IhaSjEpV+unc7c/m6E3txhHCHHMyToiE3UdCJpa koMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T4Z9eGLt; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-167562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id df25-20020a05640230b900b00572ad5ba9efsi1484518edb.110.2024.05.03.04.03.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 04:03:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T4Z9eGLt; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-167562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 17D0C1F2174C for ; Fri, 3 May 2024 11:03:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74FCA15252A; Fri, 3 May 2024 11:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="T4Z9eGLt" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49478152523 for ; Fri, 3 May 2024 11:03:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714734206; cv=none; b=c4PJlP4VHGp1Ov9Ph8BzEtgjpOuA1+sx80pz5A2SOfOiE6CAMCe9UQ3Yb4zeSfDVrtaVdhEfL6ZWhmRzibpyybT2eTz+9pHz+fWnGviuk+4N4hxWy/h7yQCavi9HI3caVs9E6sq8ha4hxnxz1BBLBNc2tZuYR3JQqFAOeQb8ZV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714734206; c=relaxed/simple; bh=U8pbEeU6q3HFr1TucM82IKlHv9be5/rhk+jTB/vMHrQ=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=XeiWVkXARRPI4f9H7oH2feGFyb5ycCAov0pn6bDyQf40JNiVJaWz0Fe33ZrmUouVxqM7RtEYu+eJUGJrswHcM1AhsPGOHdhgAIGzyaP3nLbPJ8KHrd8DPj8MpU6WSl5ix3BhmzchCyq49IvjPKIsr1PheZ8So8qw8MP7be/jLnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=T4Z9eGLt; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714734204; 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=U8pbEeU6q3HFr1TucM82IKlHv9be5/rhk+jTB/vMHrQ=; b=T4Z9eGLtvDQP4Xg2qXytevGXqNCRIgA8miw1Aim6fxfiGiiCXg6Emz9zfB0rfnYjkTge9v 6lGx+YRhsOhiNhEpgQHzPinCTps8Vez5YaSNIxM83/DM8ZQAKCP0mbZNkZp7pvg+SbmUp4 93bXJPO3IYfuR7mAk4McXOK6qjEGsyE= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-306-Iz6ugXzeOjuJGL15kRTzmA-1; Fri, 03 May 2024 07:03:23 -0400 X-MC-Unique: Iz6ugXzeOjuJGL15kRTzmA-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-6a0b3599f2cso84080576d6.3 for ; Fri, 03 May 2024 04:03:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714734201; x=1715339001; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U8pbEeU6q3HFr1TucM82IKlHv9be5/rhk+jTB/vMHrQ=; b=U4rprUkees2Hjam4g7d3VxGRgfaLBd/BmvZ6VCrbDr6MbgLo9kGfIYlu+nZnz6WMBS NbY7uWw5ovcBbiPY2nvqIhTI35AZeUZkIRWF/s3MAcKrBEq95W0x11WSt+M0rG2Ksn6p MoVr2cvDG1nEvKRTwtX+FBMHxttUpazdgK5++TroaNVBU3oEH8UF5pGrSyhmjdO4DNEN vB6SGLO19wZFw3fthSNebDsvGbOijec9LwDw4/Wuat3qDWmf+z+myKb+N5BOPg+8hQTk TVSjdrtXlEA/LyQRWfCtn5CPRRYBlZBmyaAI9L/I24uMchtYIt4bjdT6XSbB9KMBCSrR H6+g== X-Forwarded-Encrypted: i=1; AJvYcCWuFKLSGn13PdXLpegZx2Ze8sEdhufQOuisqQLqJt7V58SYj2Q0YUz9JKN85vuEYoln2KGRor9G0u4TuHPtrdScqhQNoE2HWZAO3gdt X-Gm-Message-State: AOJu0Yw+Ean3JV+8vApu1pMeMitXQqEgBFOYI6tUdUpf1SUXAYu9Z4V6 Uu1OxmphL4HaGbXosoWQ+rnG54PZ/TRR8lj1NoMhpd9xefqZ8R3qRCCZjqpvooQzzDu2KdF5LRL doL1bucc+ouC1upGgcCzQZZMk07PznKbg7hhn7rCgybKdQuOXpM0hoBMT2+R9vq6hgL4tVw== X-Received: by 2002:a05:6214:20ea:b0:6a0:b507:9be2 with SMTP id 10-20020a05621420ea00b006a0b5079be2mr2172158qvk.38.1714734200734; Fri, 03 May 2024 04:03:20 -0700 (PDT) X-Received: by 2002:a05:6214:20ea:b0:6a0:b507:9be2 with SMTP id 10-20020a05621420ea00b006a0b5079be2mr2172136qvk.38.1714734200390; Fri, 03 May 2024 04:03:20 -0700 (PDT) Received: from rh (p200300c93f4cc600a5cdf10de606b5e2.dip0.t-ipconnect.de. [2003:c9:3f4c:c600:a5cd:f10d:e606:b5e2]) by smtp.gmail.com with ESMTPSA id m15-20020ad44a0f000000b006a0e0e93aa7sm1107669qvz.57.2024.05.03.04.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 04:03:20 -0700 (PDT) Date: Fri, 3 May 2024 13:03:15 +0200 (CEST) From: Sebastian Ott To: Oliver Upton cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Marc Zyngier , James Morse , Suzuki K Poulose , Catalin Marinas , Will Deacon Subject: Re: [PATCH v2 5/6] KVM: arm64: show writable masks for feature registers In-Reply-To: Message-ID: References: <20240426104950.7382-1-sebott@redhat.com> <20240426104950.7382-6-sebott@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed On Wed, 1 May 2024, Oliver Upton wrote: > On Fri, Apr 26, 2024 at 12:49:49PM +0200, Sebastian Ott wrote: >> Instead of using ~0UL provide the actual writable mask for >> non-id feature registers in the output of the >> KVM_ARM_GET_REG_WRITABLE_MASKS ioctl. > > Urgh, yeah in retrospect I think we should've constrained this to the > registers KVM considers "id regs" (the space occupied by known registers > or otherwise RAZ). > >> Explicitely set the mask for CLIDR_EL1 to make sure we present >> the same value to userspace than before. > > typo: explicitly > > Also, we know the set of mutable bits for CLIDR_EL1 as it is handled in > set_clidr(). The mask really should match that, since the UAPI is > documented as "allowing userspace to know what fields can be changed for > the system register" Done for the next revision. Thanks, Sebastian