Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp536956iob; Wed, 18 May 2022 07:34:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9lCeq57deuPK+0nQx9lMNO7moQSXHtdFA0AIYr+326ucc245stAjC4Zijk4lrBajYGa6d X-Received: by 2002:a63:7450:0:b0:3c6:234f:e70a with SMTP id e16-20020a637450000000b003c6234fe70amr24543842pgn.619.1652884474691; Wed, 18 May 2022 07:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652884474; cv=none; d=google.com; s=arc-20160816; b=yL5hxTyXYxWhLmDZWhmjgU5iKwlf6DLE8HZvVPfSLaECH4HVI0P50wSsRkDPUHxa2x 9F491+ySpuFnGqptszQLwbVL8x4NqqIMxTy1td8u2N3CiaBm/8onQTfINKxBL0zasJiU FBnMMIg3gObzo/qMQlxzfcAPRkzwt8j2U4oUdxbYrSG66ta7F6wZpTdbfYW0HvdM5ZFG Noo7tTf6Sa06jZVMlxTsQJECsyGtGzubU+dT/SeydyjrQIzlCrAsQC5ar1ocJaYtrfWY zVgxrxWZmV6Hp6ASYwl5sw8zxPKLDZUtv1trYnnjUNRS5hnl2NQISED39Uccx+RsBFjh mdJA== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=S0qz9PSvGbMs60yKx28nBLXwqA08nBMklYt7Mvsb4Pk=; b=oGZqPnVIELArc4q9PGk68Vt+CiyWpqPBwRRydTLlk/5mwiG4HyYc0nfV03RkxXNO/S NAlKBCQZJahlowXfwZZ4orj1wLObYYWQH1xG41EwEO6wmnsA3Hcuni6xU7yti0G5f1mI VfQWoZcrxl55sCAkJsFJ0mE7pEAfXBignOHc39vFauzLVG5GWWV3uwuPe5b++03XlKou UIP4IJHdFhHstvsPVOFU1rRaP382T9QdJyKcHxQSKmpFdNmjn+mmn/vnBw4BSh2mx65v Veehhq1TjNBwPLMC7ZaK/JKF/lp18QLr/7CCYDQjOoEbchHrrRKuCh+oGiTzNKjas61z 5WzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JlJOFk8U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k17-20020a056a00169100b0050d5b68b53bsi3270694pfc.172.2022.05.18.07.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 07:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JlJOFk8U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 E40D41CE627; Wed, 18 May 2022 07:34:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238673AbiEROeA (ORCPT + 99 others); Wed, 18 May 2022 10:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238567AbiEROd6 (ORCPT ); Wed, 18 May 2022 10:33:58 -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 ESMTP id 3922F1ACFAD for ; Wed, 18 May 2022 07:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652884436; 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=S0qz9PSvGbMs60yKx28nBLXwqA08nBMklYt7Mvsb4Pk=; b=JlJOFk8Utvno2ggT67gfHhqEvb6f0WOyEhs4ylgtyaii8xWhbZ+jixQxcFdUsMKubP3X9G 1uvBbsZtcTA+7Y4ZxNjTgz00mO7c4aFRhlPPX2RnheHNryeEyq3lLHhO1XdRpHV3R6qQVJ LQJ74Ngxy27lvFZfIOpcb9OSxQjzrLA= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-616-wJJnFZ6ZNDu8h-73-zKpAw-1; Wed, 18 May 2022 10:33:55 -0400 X-MC-Unique: wJJnFZ6ZNDu8h-73-zKpAw-1 Received: by mail-ed1-f70.google.com with SMTP id c17-20020a056402159100b0042ab2e56743so1747061edv.10 for ; Wed, 18 May 2022 07:33:54 -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:organization:in-reply-to :content-transfer-encoding; bh=S0qz9PSvGbMs60yKx28nBLXwqA08nBMklYt7Mvsb4Pk=; b=Sdq+x6n7RF5VOcxpVSLOR9jcaEfeJQc3shM5O/Suzi83OQa3Y/H7r1VpZlnWM9d0PO Bwi0SGQ3G7QMOzyOefB9++m7XUx70Hu6Jl0MQON+30MpQFCwTC7onJ/vK7RYSxDvgmbO Itgw8NR5QvkMTxybiZIPpTFvdkAIWtTaPVTCHHjpjQpnIGdUMr8bGtcqOZ2Ty+SmzRNe PgaaarnPZgYHPo2iG79qaDCq+pM9mGsFaiOBcDOaaitefHYAWrjvY3vvsilSKyW5NNpJ cE87aN7SAflsabj5FKTWQKNBd0pgBCGcWIbkUV1KzRW15KYXxsFMaeXNBiyqtXPJXJwM Bd/w== X-Gm-Message-State: AOAM531pxlj8bWSTgL4HJEZw8/39JTDT6pODBx6DBKIt/79kmM2WQA8r bukmeQIroXDxcwFiiRP/nhJnZeIFJW78CF6NOqiTS2oReZNhsVN5nkYxd9x62l9Pke1MlRYCHJL 8ilHPKJJOzJPcNgAW+OcMypT4 X-Received: by 2002:a05:6402:348c:b0:42a:e4e5:c63a with SMTP id v12-20020a056402348c00b0042ae4e5c63amr4607328edc.419.1652884433859; Wed, 18 May 2022 07:33:53 -0700 (PDT) X-Received: by 2002:a05:6402:348c:b0:42a:e4e5:c63a with SMTP id v12-20020a056402348c00b0042ae4e5c63amr4607302edc.419.1652884433583; Wed, 18 May 2022 07:33:53 -0700 (PDT) Received: from [172.29.4.249] ([45.90.93.190]) by smtp.gmail.com with ESMTPSA id k23-20020aa7d8d7000000b0042aa153e73esm1440476eds.12.2022.05.18.07.33.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 May 2022 07:33:53 -0700 (PDT) Message-ID: Date: Wed, 18 May 2022 16:33:48 +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 v9 3/3] s390x: KVM: resetting the Topology-Change-Report Content-Language: en-US To: Pierre Morel , Claudio Imbrenda Cc: kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, borntraeger@de.ibm.com, frankja@linux.ibm.com, cohuck@redhat.com, thuth@redhat.com, hca@linux.ibm.com, gor@linux.ibm.com, wintera@linux.ibm.com, seiden@linux.ibm.com, nrb@linux.ibm.com References: <20220506092403.47406-1-pmorel@linux.ibm.com> <20220506092403.47406-4-pmorel@linux.ibm.com> <76fd0c11-5b9b-0032-183b-54db650f13b1@redhat.com> <20220512115250.2e20bfdf@p-imbrenda> <70a7d93c-c1b1-fa72-0eb4-02e3e2235f94@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 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 16.05.22 16:21, Pierre Morel wrote: > > > On 5/12/22 12:01, David Hildenbrand wrote: >>>> >>>> I think we prefer something like u16 when copying to user space. >>> >>> but then userspace also has to expect a u16, right? >> >> Yep. >> > > Yes but in fact, inspired by previous discussion I had on the VFIO > interface, that is the reason why I did prefer an int. > It is much simpler than a u16 and the definition of a bit. > > Despite a bit in a u16 is what the s3990 achitecture proposes I thought > we could make it easier on the KVM/QEMU interface. > > But if the discussion stops here, I will do as you both propose change > to u16 in KVM and userland and add the documentation for the interface. In general, we pass via the ABI fixed-sized values -- u8, u16, u32, u64 ... instead of int. Simply because sizeof(int) is in theory variable (e.g., 32bit vs 64bit). Take a look at arch/s390/include/uapi/asm/kvm.h and you won't find any usage of int or bool. Having that said, I'll let the maintainers decide. Using e.g., u8 is just the natural thing to do on a Linux ABI, but we don't really support 32 bit ... maybe we'll support 128bit at one point? ;) -- Thanks, David / dhildenb