Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4598463iob; Sun, 8 May 2022 18:43:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmeJFoYLRiRGQ80eyxwBr5vcvQguTp0nc4IJ5RskiGqBvvqfqQehSwm7zjuPvAR1tTkcQZ X-Received: by 2002:a63:ff0b:0:b0:3c6:b0b:dfee with SMTP id k11-20020a63ff0b000000b003c60b0bdfeemr11679957pgi.346.1652060604698; Sun, 08 May 2022 18:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652060604; cv=none; d=google.com; s=arc-20160816; b=ABol0Sv36GdJ0VdydmeXbeAQ2jCoQnvv5ko+RlzHDxuPRdhD+7gvVUqMgtzBNl2n9P +4J/E1mWA2phNZQ4bP1MKXggxvqYHZSM5k+/qv5JeMh41b8JnusBt+BDwLo36cfGMl9f e5EW4mkzEHPbDpVdbGX2qJO8sei3c4w3f3iQwW9wa03tJ263hZQdwHk5k8HyOFV3vzA2 +GzCnne41Xy6K6G+jalt3RbA1JXJ3oCqAB4ufv9fjveTXxKKR/04I+s6hyJ1Uzg5IRlr pKFPMzlJF2JMrAuYXamGwQgZ9s73arLjPrhGbSngvqEDwMP4NSB5m2hiaOvvdzpndg+9 ALTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+kiADHH0OTUEekRfTTqboMY0mUFLqzmSHiGBuu3QXQA=; b=LHCYsEVvlWNMxKCNwD/zwcTX+0tJq046xe/UFjwQL2AeOqzDcLbP6BqBMuaqAPPKTC kLgoh26fB3foepLtxNA86tkeWUVihZ4mY1xAQ/f8BWL30/eUbk9g4nLtFHBw2rQHOPX/ LN11rN5eS/Dn/JH2fRPK0fLKyufoX5fDl2Hp0mri0nJF5Ul3KiIqCIpf18lov9SnQB// ctTSGoqrpvwryZoGY61OTfybGjG6AJe4zFnlY2D+9KF74bIXivz4U0/9MkvgAJFD2ziz WoW0kjTKK6+o7YRggJZEMAp7rCxmfcXvHgEU7cY2cfwuoTaKfunzMkPIfSQb1suY57mw gQ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UTMoBhW4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k7-20020a170902c40700b0015ea33c252esi13272602plk.234.2022.05.08.18.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 18:43:24 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UTMoBhW4; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 95F5E3D493; Sun, 8 May 2022 18:43:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379923AbiEENhG (ORCPT + 99 others); Thu, 5 May 2022 09:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379805AbiEENga (ORCPT ); Thu, 5 May 2022 09:36:30 -0400 Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [170.10.129.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6D4F57114 for ; Thu, 5 May 2022 06:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651757546; 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=+kiADHH0OTUEekRfTTqboMY0mUFLqzmSHiGBuu3QXQA=; b=UTMoBhW4SoONg1+zanmHNFXftfBWlFuobTeaCDOz/J1CgZJR2zF9qJaN5cLiGxwnojQ09P XJCUMKnZdNWW8JuXQZU5P1R6o/GKodqunViH10vBltMaQCShVIWjlv+huAXO/OsE6yVxqw PWjwak1p/BB4gtaqWRM+pTLoxFIQ3ME= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-127-ST_BgvSbPYivES7cdVsQXA-1; Thu, 05 May 2022 09:32:25 -0400 X-MC-Unique: ST_BgvSbPYivES7cdVsQXA-1 Received: by mail-ed1-f69.google.com with SMTP id k13-20020a50ce4d000000b00425e4447e64so2317206edj.22 for ; Thu, 05 May 2022 06:32:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=+kiADHH0OTUEekRfTTqboMY0mUFLqzmSHiGBuu3QXQA=; b=mOOrQ0kI+Hfy0Q+efie6JAOdzX4Im9mV0iuaF52VyUsnXYj692v+3C6gsMhH8vA8ng MQZAL5mjhzN5g1N3WK3RNyhxPoXygMu6qMA9CWlXaDgJY9dLxTCdg4AlnOYMvW6vs0Pe LAOvJDtd+LQWkQfqrSqPRYltzzjZfaVw9rOQKiHeOpoxNH0c6As19B66LX+i89MJsNti TOL20gqk/J/RL+oaBXdyzbhLjWvH5WehVL/dar0+jojRBiJHRupxXk9tsnOP01QU2NMl FpBuCtOrTB/HHZha4CLtf17kuB7mO7TlhvxffqVJgYMOFxu975H22M8QkxkxS56HRlTa CsPg== X-Gm-Message-State: AOAM530+g2Z5uLVHGjyKid3s6YY1yBv+ppvwlZS9oBl7btVJbeCOmQeZ aKEaGTZHAUYLYK6rRNQAnSqzSlYduxXoMPT1/eqIUGSmdCpPZdmP4OcwDp1mdN+NxR2XcgXwS3y e0cmdfDLcUMBQhGJB8puNZndb X-Received: by 2002:a17:907:9053:b0:6f3:9f7e:5325 with SMTP id az19-20020a170907905300b006f39f7e5325mr26644991ejc.455.1651757544355; Thu, 05 May 2022 06:32:24 -0700 (PDT) X-Received: by 2002:a17:907:9053:b0:6f3:9f7e:5325 with SMTP id az19-20020a170907905300b006f39f7e5325mr26644966ejc.455.1651757544125; Thu, 05 May 2022 06:32:24 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.googlemail.com with ESMTPSA id bc20-20020a056402205400b0042617ba63cesm812545edb.88.2022.05.05.06.32.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 06:32:23 -0700 (PDT) Message-ID: <688a817f-b2e2-4620-ef4b-f3c5f73ae34d@redhat.com> Date: Thu, 5 May 2022 15:32:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] selftests: KVM: aarch64: Let hypercalls use UAPI *_BIT_COUNT Content-Language: en-US To: Marc Zyngier , Oliver Upton Cc: Raghavendra Rao Ananta , Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Reiji Watanabe , Jing Zhang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org References: <20220504184415.1905224-1-rananta@google.com> <87zgjw6v9k.wl-maz@kernel.org> From: Paolo Bonzini In-Reply-To: <87zgjw6v9k.wl-maz@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/5/22 14:04, Marc Zyngier wrote: > diff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h > index e523bb6eac67..3cde9f958eee 100644 > --- a/arch/arm64/include/uapi/asm/kvm.h > +++ b/arch/arm64/include/uapi/asm/kvm.h > @@ -342,6 +342,10 @@ struct kvm_arm_copy_mte_tags { > > enum { > KVM_REG_ARM_STD_BIT_TRNG_V1_0 = 0, > + /* > + * KVM_REG_ARM_STD_BMAP_BIT_COUNT will vary as new services > + * are added, and is explicitely not part of the ABI. > + */ > KVM_REG_ARM_STD_BMAP_BIT_COUNT, > }; That seems like a bad idea. Perhaps you can wrap it in #ifdef __KERNEL_OR_SELFTESTS__? I can't find any prior art. Paolo