Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3537212rwi; Tue, 1 Nov 2022 23:28:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6H00AKfte8+j8MwA2lMNtywDa71Q9CbTnwo+cSapYnR6G3KSAnleemZpAXDK5wVPANnKSo X-Received: by 2002:a05:6402:4148:b0:440:cb9f:d10f with SMTP id x8-20020a056402414800b00440cb9fd10fmr22800051eda.77.1667370481385; Tue, 01 Nov 2022 23:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667370481; cv=none; d=google.com; s=arc-20160816; b=XJ3Tsjezy6patm/2xNSs+gvoOOxAADmblMMbrTuoxlS2j8jFX1rlOd6GbpVH3S9fAm eaLkS0ECj73TnCVWxqSE3VbU1uoWgdf4bJAbz+/CZqFRmGWptZqK5lRvulSK4ax+Sudr nhia26f3H2x9imA0yOaFtl4j+Lf4EBgQtAAJKdt3IM2KW0ihqExcvORdFw9mh/OiXD5m cu17Ys815vV08G5rLUcGkXO/dqh4ykoz2C23YQd7vWvxtsjiVIQw9P+9RKp55Hx6kTqV IuHcCmBvBTlXK88Mx3MFVQ4BsPeSM6QEQJAHOE0xCyUsYBEQg2K4M2nY0Y7YyIKellgT RtuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ILW1M/UUiMBvmpj2m8YEt/3WLHDBgTo/Ue4DtuhGrBc=; b=oCCRY07DSJzXElp2lw21rY9snDUPGbrLJLZmcLASSIDvncwIIyyeiS8Vlk8eAi5DB2 9ZU0dCEjk0FQtiYlTZ18FDmWXmsWJBxgyKLaFTQ5mQ1NdKDAVq96+qI570ngKIBen0Fr q5AKbMDIVkQoLtnZ3ElldtZc2hbEArsuq7iXeid6FUt2nntMkfFSdepHKR7CWfla/pJz 4dm34R/w+iCnl3Z+MP20PTsz+B7YKcZoHM/HYI+Zn+Npt1MOQYeYyv35t0gC7zNkPhsQ o4MpOU0xDTgB3bGyD9lhtzUDmUB/5Ik7lEjWpg39b4kTdQgSfsbntvY8sFtz9WHg+Umq orVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TMrKUOgD; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j27-20020a170906279b00b00772fe97b31esi10573738ejc.901.2022.11.01.23.27.37; Tue, 01 Nov 2022 23:28:01 -0700 (PDT) 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=@intel.com header.s=Intel header.b=TMrKUOgD; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230121AbiKBGYY (ORCPT + 96 others); Wed, 2 Nov 2022 02:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiKBGYW (ORCPT ); Wed, 2 Nov 2022 02:24:22 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 056A625EB6; Tue, 1 Nov 2022 23:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667370262; x=1698906262; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gARuuG7HD+xbGdiUK285S5OvPad2Kt8//awvHDfDUZg=; b=TMrKUOgD2FFqJeIDcpRxIRMySVToCLcIB62NezoXhKTYRwnBppCW/Ygf LtNDZzqnuKIaf98PWUQ5OTQom+FzwepJe15gMpfl7h62RLh+qVsaUvjGT jtZzjpaHTtH83oTW2splyTltBMZasf8NSnqfwJ08gtWNa3L2TSnLvcSnt TnscBTjMWXQHLWsyqudIXF8u7ROyIC+NAaE8HqXXEi4E8ba88Om7Cucgf P5z6LZYpTPQtiV2kQwQIFXY48WlvT1Vy4x55quAw8K6NwyEKYmAyTLRpq H5GZQsvjVduxmYZiB4IPkG9Pv6bLEXwpxlprDzlnhv+no2jxZeoY41faU Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="296765000" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="296765000" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 23:24:21 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="703146393" X-IronPort-AV: E=Sophos;i="5.95,232,1661842800"; d="scan'208";a="703146393" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 23:24:21 -0700 From: isaku.yamahata@intel.com To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Sean Christopherson , Marc Zyngier Cc: isaku.yamahata@intel.com, isaku.yamahata@gmail.com Subject: [PATCH 0/4] KVM: simplify hardware initialization Date: Tue, 1 Nov 2022 23:24:07 -0700 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 From: Isaku Yamahata This patch series include random simplifications of KVM hardware enable/disable. Although the past attempt [1] was turned out to be a bad idea, it has still useful patches. This is small subset of [1]. [1] https://lore.kernel.org/kvm/cover.1663869838.git.isaku.yamahata@intel.com/ Isaku Yamahata (3): KVM: Remove on_each_cpu(hardware_disable_nolock) in kvm_exit() KVM: Make cpus_hardware_enabled cpumask_t instead of cpumask_var_t KVM: kvm_main.c: Remove a global variable, hardware_enable_failed Marc Zyngier (1): KVM: arm64: Simplify the CPUHP logic arch/arm64/kvm/arch_timer.c | 27 +++++++------------ arch/arm64/kvm/arm.c | 13 +++++++++ arch/arm64/kvm/vgic/vgic-init.c | 19 ++----------- include/kvm/arm_arch_timer.h | 4 +++ include/kvm/arm_vgic.h | 4 +++ include/linux/cpuhotplug.h | 3 --- virt/kvm/kvm_main.c | 48 ++++++++++++++++----------------- 7 files changed, 56 insertions(+), 62 deletions(-) -- 2.25.1