Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp776553ybz; Wed, 15 Apr 2020 18:48:12 -0700 (PDT) X-Google-Smtp-Source: APiQypI1wB2nhKa+9YKPbe9JBcy9Ei3KnmQ//kB43cMgW6G6xjSGBbWVOWQ9BROxNw+QAKaYlmRU X-Received: by 2002:a50:e842:: with SMTP id k2mr15996582edn.328.1587001692376; Wed, 15 Apr 2020 18:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587001692; cv=none; d=google.com; s=arc-20160816; b=a6DMj3WDqn8Us+c+AQ6jK1HM1dVaLREwt99fBSF0H6EhTzUnC4ioxW0mcccUng+HM7 Vu/RxgzV3B3c2PzxryjVFAiLYRBjsCP++sC2404ZYjW1dAfjhx1ZjFKoVcXjemG6MNn3 atNJkOjBHuDzxWJyRNMOQfc3EMhllH14ObzqLrKFXVkW+oxefAaN9ugYlJL3G0Lb5JsF p0lV43uedoJkFXK9ZorOT3Ej3ciJZtgetfDDxeovXssXhUdy5jFXM7mIOF1W/G1Wubud Jk/flfgbwRjtxUcv4bVl7y7sbZ8IQAQ6ZRTGgLqroTCEZcsCENhpWeecQMHtCphv/CDc vH5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=Sd5eA/N/NI5n7N98BdtAvkb6ngdNDSTXR+h4Z3gbW68=; b=GXomg+SyYtve1Wfyo5aSTXRncpyv9RRfhS6Cr0ZlTvy3+Ko9MW5E5YLGyDBUhQJAkG eO5YOUDm3KvsYe9a4Mfc5TzQM9m60fjdh5lmukRRDvyNctLTwX4VpH3k7vwI4QspiHnN SGdWwPtxrRJKBp/jgap8Tz5xBJRlQ5qgT0u5b23przZv5p+4qg4IlhmRXk2LzVziVp7b IWBBoHkT8gNyo/e6nXHXj9W+9oVpW29WWw82lO84XBUq9ajrIDIzrvHJCMpjYqRkI1q+ Q4UUnrtyRw7J5tNgu5PrVxNPUmalCfvbmPrVH9SBvRPQSGnhHJa8T8I6Y05qSelg3qq2 RB+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YqTW1P0I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n34si11726918edc.207.2020.04.15.18.47.49; Wed, 15 Apr 2020 18:48:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YqTW1P0I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1415674AbgDOQVu (ORCPT + 99 others); Wed, 15 Apr 2020 12:21:50 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:54676 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1415627AbgDOQVU (ORCPT ); Wed, 15 Apr 2020 12:21:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586967679; 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=Sd5eA/N/NI5n7N98BdtAvkb6ngdNDSTXR+h4Z3gbW68=; b=YqTW1P0IX0qpvyGRB3LfG9zr8LX3emUM/hRlcLqP2n0JiUGaoW4h1bXcV6QRXR8CYRs03z 5rHVtr2SQEMcvo87AFLA8K7YnLMHQwoHD7X8ySRNIrOKaRuoEXl0XXFRJtuVk+5Emls5e8 rKEWMMxoQbAeVsgwl5kOTG8NIibAxho= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-wrQvUDtbM8mVEqqfRLVCsg-1; Wed, 15 Apr 2020 12:21:15 -0400 X-MC-Unique: wrQvUDtbM8mVEqqfRLVCsg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 90C09107B267; Wed, 15 Apr 2020 16:21:12 +0000 (UTC) Received: from gondolin (ovpn-113-55.ams2.redhat.com [10.36.113.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 017ACA63D6; Wed, 15 Apr 2020 16:21:02 +0000 (UTC) Date: Wed, 15 Apr 2020 18:20:37 +0200 From: Cornelia Huck To: Emanuele Giuseppe Esposito Cc: kvm@vger.kernel.org, Philippe =?UTF-8?B?TWF0aGlldS1EYXVkw6k=?= , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Paul Mackerras , Christian Borntraeger , Janosch Frank , David Hildenbrand , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, kvm-ppc@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH v2] kvm_host: unify VM_STAT and VCPU_STAT definitions in a single place Message-ID: <20200415182037.521a92b2.cohuck@redhat.com> In-Reply-To: <20200414155625.20559-1-eesposit@redhat.com> References: <20200414155625.20559-1-eesposit@redhat.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Apr 2020 17:56:25 +0200 Emanuele Giuseppe Esposito wrote: > The macros VM_STAT and VCPU_STAT are redundantly implemented in multiple > files, each used by a different architecure to initialize the debugfs > entries for statistics. Since they all have the same purpose, they can be > unified in a single common definition in include/linux/kvm_host.h > > Signed-off-by: Emanuele Giuseppe Esposito > --- > arch/arm64/kvm/guest.c | 23 ++--- > arch/mips/kvm/mips.c | 61 ++++++------ > arch/powerpc/kvm/book3s.c | 61 ++++++------ > arch/powerpc/kvm/booke.c | 41 ++++---- > arch/s390/kvm/kvm-s390.c | 203 +++++++++++++++++++------------------- > arch/x86/kvm/x86.c | 80 +++++++-------- > include/linux/kvm_host.h | 5 + > 7 files changed, 231 insertions(+), 243 deletions(-) Adds a bit of churn, but the end result does look nicer. Looks sane, but did not review in detail. Acked-by: Cornelia Huck