Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp153490lqp; Tue, 11 Jun 2024 18:53:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVboH6ZcOzvD/kb/lQrTNQMCZN4BKHTuH5RfWa+YPxoQxSkDDHDv+gvJHqwdw+XlkkEBnvqjK7CLsdDvFefsV0TET5PBfgOZ+agq6cN7A== X-Google-Smtp-Source: AGHT+IHy+26m0L2gkGZ7tYlxilLo2FWpkk+W8W4FljcQ8ujhO4KAH1OUNBTu/XJQPQBdt/cZCVWk X-Received: by 2002:a17:906:6a02:b0:a6f:1b3a:8898 with SMTP id a640c23a62f3a-a6f47d52708mr23139766b.2.1718157208004; Tue, 11 Jun 2024 18:53:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718157207; cv=pass; d=google.com; s=arc-20160816; b=kK0hxEj+3Jsn7t5RRBoKMQMefcEnkUYLer/qBAQPSK5XD6US+0mUE0M5UpH4JvV+fe Lo6Lf+DcpaPuqCQyl5Q1GIXwYFj5jfhwl1XjEPJf7OHLisdqwAAR4+75QPe64qhOshuV s4kLA97jmBQKYLl1x3/5qySrc4MGvymR/C1oCUCElelS3nJ83xwBi+/W1HqgaTAOSMIU RQaYzGCqJEBF3UtIrSo7+7ETv4PhR1RuhBeO2Op4lep+LDpPYtogk182TNTmxcymtX0+ NRlRYcP7qN/MYd57LXfDTpLHFIyk5n4t40vx+KNs1GUzrfvtKMZPw9zR5ExggVcFme0I O2+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=rH53EpROBLwRNYPC72RW2yFoorJBiSKF81Q7oz/693A=; fh=atFDOFWzQ3xFCzwIrcyK2HZG1KHJtawLdcbouwy7+c0=; b=0bvIEmJinMWYSOVA/38pVCRGYZCsSpcxkziNx9SgaO2emI/RLoLqpRRFUcP1L98eau psLHFoB7YadUMsyaQUoL2vGFEQRnmR8JGgxY3MdH4udKo8/0hPoyvUYnXV8dtS8phqmO dVkqQ2g+LMGYmAaelxGIUM84syvCV/XX348KBNdgFhCKL5zwsL0mrw842yCrUv7De5tS RpCezS2uSSAFgAmYcvq1p3//rlvPfdBEC6FrEaxcor9VXzD+yWr2naj+KaKgrXjjllgg SkQZSq+ocOeNgeUQAfKERMEHZEq/1DPXD6gt1h/CMRP/dmqyvaBjlP4QznMX5Fx3x4bI LJLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VJnecQqi; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-210780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f2e80758esi176489366b.500.2024.06.11.18.53.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 18:53:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VJnecQqi; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-210780-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210780-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 B986C1F23501 for ; Wed, 12 Jun 2024 01:53:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AF1063BF; Wed, 12 Jun 2024 01:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VJnecQqi" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 823424691; Wed, 12 Jun 2024 01:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718157196; cv=none; b=gVllhMBaeDCOVSGf2j+UnpYKj0lTssbzo336v3b7dpx5tTKluMwkxXL5uXSBsQrPj1UlWZz+LPkcuHez1Ey07HU512am3ZeOhKQDZ3zhTYSQbuCggs9Fr2Gh+4ARDZqO1y1VJWnVDYTn386gdqCJRFt0KSarwzLAMRBpoJFyqc8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718157196; c=relaxed/simple; bh=Yx1IziiU5dxC7IXNVT/wQHpMEAgt8M93+S6VPeJuhk8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JAnH2a3W0Yy/zDajo2HpfwUXvT6SW6okX0rHDI2RYGD84Q/3rqRMslCiLOIOzgtx5SRoNKHxMbzWwOxQxTWqaN+dPdswzK43+OLkENgOP2P7g8OtBXiJGRYcdJK8O8Ij2JJD4YtblP9KK4qR5Jn2aWKeN8FDHTTwR24YCDa6Eas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VJnecQqi; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718157195; x=1749693195; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Yx1IziiU5dxC7IXNVT/wQHpMEAgt8M93+S6VPeJuhk8=; b=VJnecQqi9augSO0H/c/gEkYI6eP9X/qO0GS+KvN/hnvuT5TIcaXVY0Rp k1HbR/+1flM+lAHbIqYOclFLPbpxtSsYLrNGkk3JstSAQiI9je0z4Trey lBV78Vnsd2Oel6sr1YycFWuSHbm+2QNeCRBtPyTU/ps67Zaw79tuQX4Zh 7XD4cFoWBGwr9bIVrSlsYb5ijVoH1pzKGUA7Y9kSPoICee5MBgRoGbGuk ogPVc9EADIUdBkiAsqTme3GqgT3IElVa6pd+CY12ZVcsth53VPx/LPGXZ yIz3aHztEXNu2Y9otKD30WngV0YW+cYqbESgo4TV/rOsSTdXRr4yt65Pt A==; X-CSE-ConnectionGUID: 8GtT7gQHSLixSJD3tEZjBA== X-CSE-MsgGUID: XyDsxDOoSpmevj8T5Ac0mQ== X-IronPort-AV: E=McAfee;i="6600,9927,11100"; a="14863202" X-IronPort-AV: E=Sophos;i="6.08,231,1712646000"; d="scan'208";a="14863202" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 18:53:14 -0700 X-CSE-ConnectionGUID: pVKKMUREQtiB0mlS1ntLug== X-CSE-MsgGUID: liCBm6DGSJSp7/JNeTyHSg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,231,1712646000"; d="scan'208";a="77091467" Received: from xiaoyaol-hp-g830.ccr.corp.intel.com (HELO [10.124.227.51]) ([10.124.227.51]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 18:53:10 -0700 Message-ID: <86a92ee5-af63-42dd-abed-0cd10ac937cd@intel.com> Date: Wed, 12 Jun 2024 09:53:06 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 08/10] KVM VMX: Move MSR_IA32_VMX_MISC bit defines to asm/vmx.h To: Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Paolo Bonzini , Andy Lutomirski , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Kai Huang , Jim Mattson , Shan Kang , Xin Li , Zhao Liu References: <20240605231918.2915961-1-seanjc@google.com> <20240605231918.2915961-9-seanjc@google.com> Content-Language: en-US From: Xiaoyao Li In-Reply-To: <20240605231918.2915961-9-seanjc@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/6/2024 7:19 AM, Sean Christopherson wrote: > Move the handful of MSR_IA32_VMX_MISC bit defines that are currently in > msr-indx.h to vmx.h so that all of the VMX_MISC defines and wrappers can > be found in a single location. > > Opportunistically use BIT_ULL() instead of open coding hex values, add > defines for feature bits that are architecturally defined, and move the > defines down in the file so that they are colocated with the helpers for > getting fields from VMX_MISC. > > No functional change intended. > > Cc: Shan Kang > Cc: Kai Huang > Signed-off-by: Xin Li > [sean: split to separate patch, write changelog] > Reviewed-by: Zhao Liu > Reviewed-by: Kai Huang Reviewed-by: Xiaoyao Li > Signed-off-by: Sean Christopherson