Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp342709lqs; Thu, 13 Jun 2024 11:33:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIy/LtprvMepUpy2KNBA0EEBAJFohoQ/VuHtuI5i518yr0yv7t1UOosfwL/IeJkC2Jzl3BeVHwEzmbQx/kym91We5f/nmWEjmkGTEFww== X-Google-Smtp-Source: AGHT+IHwYDyzBh0L+ryGRDLWVuXRZi7Os9sS+nBcHuzFfwlyHF7pUeDSMhB7tX5mZfEn1XyWW+Yc X-Received: by 2002:a05:6a20:914b:b0:1b8:a3c5:3472 with SMTP id adf61e73a8af0-1bae7eadfddmr884873637.26.1718303604772; Thu, 13 Jun 2024 11:33:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718303604; cv=pass; d=google.com; s=arc-20160816; b=fiTBUgKOeIlqnHEaSxm3GesILJaljNicPlNVsBA6CMJMOT81p3+NohVN2FezAcYhqd zFo2KoZgZ5EXtejhTPFpy+cA1VUq0czttRIJR5atsYcQTZuMcdKdE7G+CIuOO8XY/P8/ AH2McHqWOWV9EfkwCa5dxz/jbOmlIcaQVGjSSDjwoyLwjnm1CNEHXkHDSCcBAaZSca5S LLVUqOCa9ljA6HdV17jeXAu8ypMWizc5NssQghCxiHDC/xb9qbmpTblzjeQvJQobyG5Q mrnK7WuOlJNpD6V/67a5DdBUAx/uEAE9dRCuxqQj7C73qIRHJktnL431BJlQAjhqdhhH u5lA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=FAMe6ZfN8ocTQz72VF1wxp4zgj8DpMNIJ5NFawO1sOI=; fh=uzCrZMsEnMDs/MfHVUnv96LpYzP7XoyfHkNMvKnZn4s=; b=MA3N5tA0PvEcVvkah4Pu6nM3vIWGmX1R9PbdziLiQbwPxzgu98O+TQ2ZcHRnJ4kRYJ pc8vIPKTTGGA/h7kHAL16Di0AUm6xkMMW41S6d1OEPa/axzaTR4shL4XNERv/SKVWwkl nG2xz98KQw2lA6Z3CEGcb6+1DBM1B7uE3AYHBMI5ChwfCk5UvVc/dFsMPqF3Wbyuih/i 1J1gvdFaR/71bfNF9ucOR8L4awZs0CohXOvNgkScTu5410sxVDO2U1132vWyO/Am7qGH CHL3SpOIgHPOxwoWjxMdoocu+XGPduC82Ouv18At4o5mG+qab/gFUCJOfpCarMG7j4q4 +bQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=t2US+rGJ; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-213833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213833-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee53a1372si1791478a12.636.2024.06.13.11.33.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 11:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=t2US+rGJ; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-213833-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213833-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 50818B22AB3 for ; Thu, 13 Jun 2024 18:32:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8735A14B97A; Thu, 13 Jun 2024 18:31:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="t2US+rGJ" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CE3814B061 for ; Thu, 13 Jun 2024 18:31:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718303510; cv=none; b=iIfP828eoCLbYWiDPSDsfVPuu7fhQoZ3Zufrur47lTRgqgzw2jc0ySfNc0FxH0X4CFh6KlmL/IKA79giafORtQFSdQ+nxcFXYjkQe2bNUH9t5b2F2lFOrWBUuwwVMenrFelTt3PceyIGw5P06MnGTvU0NBNu0LT/lJgHrQkfLmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718303510; c=relaxed/simple; bh=FAMe6ZfN8ocTQz72VF1wxp4zgj8DpMNIJ5NFawO1sOI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=brn5rqL58A2lOgy40C+jnUqydHRGXdINcpGPc1zU4+LeKb0uwnCJqoFdAt7lxuPv9aau/Zm5vfwDZWsnUNaOLMHVATn+lMUi5QblCajry1kmw8OgOMxzCkC3jPuMAUlSkEGmXEKV0Mf7csCEf9uEaZrtzUG9+YGDEl29Ucvu0vc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=t2US+rGJ; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dfede368fcaso2332007276.3 for ; Thu, 13 Jun 2024 11:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718303508; x=1718908308; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=FAMe6ZfN8ocTQz72VF1wxp4zgj8DpMNIJ5NFawO1sOI=; b=t2US+rGJT+tw1WrqvQIBP3/7VKiEg6tkZyQEdACI1XLRpZJ7vM1pp0MVy1geqUYTDG ahLUJIggTcbLDrXBns+jVg83aog7ieHnqoe8PBTb3XdEhGMKK6PnCs6N/e3m4cX2EoCR XGkJ9hekRet6LaNoGChWGsBmhHVFcAWBRMHoeTFhWdroW502g3kH4EJJrS4HrmzIJNiZ VOqj/bboWESATyHP/eNoLfvioKkAbr10vjErh9yBybIMcTVGBXuml3ldCKIrZ6tYWWZB agc8AxR+aUsEBPacMIN32OkblTs8oQcvMkoeqkteksCAMAlPZhB6rFJY3Tjmt4pYOaKb OkrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718303508; x=1718908308; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FAMe6ZfN8ocTQz72VF1wxp4zgj8DpMNIJ5NFawO1sOI=; b=p1863SKBu8lSBQgLf2W8brihAUXdB15iX5tdCBKtiez932GsElxcoTeEBxDry59k5r JXyJGN/NmGy6fptLZkKKnzjXNsVWLDTW/VX7D0H5Uou/fTdnDKrYvIivnCeXzJbDnAGm wmfotn+uu2BcJ3eBydF67vKg/fbXEBSYSyAsSRpAh1QVNrOY2cK61+Be9ITSgISJDHw+ P18eu9fAdHAzmPgjc9reVTNFDQuU0uDwDZpWig2Z0T/UzJi91wc5e392lfCUYDWw03eL c1n+vjsOBC6O4wQ2uaOnC2RfXst8/Hd2ftnFOhKvOBWKP/AGAaMB8FnVyrfDvg/a/M2i yvoA== X-Gm-Message-State: AOJu0YyPl+NhXW1fUVqShAb/pndspbw8ufmj8MDkzchA1e5sLFTyW3+V B9DvCx3Y3RRYnQlzjrdzNbUAFn2DxkPP/D6avhfTr4eXILVJms1q7oowRCLebcXhdVxokKPR5/C tCQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:8445:0:b0:df7:9ac4:f1b2 with SMTP id 3f1490d57ef6-dff153d7f58mr42781276.5.1718303508321; Thu, 13 Jun 2024 11:31:48 -0700 (PDT) Date: Thu, 13 Jun 2024 11:31:46 -0700 In-Reply-To: <20240207172646.3981-23-xin3.li@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240207172646.3981-1-xin3.li@intel.com> <20240207172646.3981-23-xin3.li@intel.com> Message-ID: Subject: Re: [PATCH v2 22/25] KVM: x86: Allow FRED/LKGS/WRMSRNS to be exposed to guests From: Sean Christopherson To: Xin Li Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, pbonzini@redhat.com, corbet@lwn.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, shuah@kernel.org, vkuznets@redhat.com, peterz@infradead.org, ravi.v.shankar@intel.com, xin@zytor.com Content-Type: text/plain; charset="us-ascii" On Wed, Feb 07, 2024, Xin Li wrote: > Allow FRED/LKGS/WRMSRNS to be exposed to guests, thus a guest OS could see > these features when the guest is configured with FRED/LKGS/WRMSRNS in Qemu. (a) please describe what these features are, and (b) one patch per feature unless they _must_ be bundled together, in which case there needs to be code to enforce that. > A qemu patch is required to expose FRED/LKGS/WRMSRNS to KVM guests. Omit this, QEMU is not the only VMM that uses KVM.