Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp28102lqt; Wed, 5 Jun 2024 16:03:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuJP7RaW26FF9wBzZ4hZbLUfBD97YSD2GSAmgl3qn41rFqEWn2kN/9A/cve/Es5O6VzU9XVY3UhdXIABl1kAoU8+U8QNVSFUf6Pk38bQ== X-Google-Smtp-Source: AGHT+IEeJsiU8WX47vJUnDjdnSamB0WOQgl/ROK1zmkxGpg43Lf33ml5mibejtOXkvAMH4kbcn7Y X-Received: by 2002:a50:c048:0:b0:57a:859e:4d92 with SMTP id 4fb4d7f45d1cf-57a8bc90785mr2297077a12.27.1717628611430; Wed, 05 Jun 2024 16:03:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717628611; cv=pass; d=google.com; s=arc-20160816; b=eJykSxqKOJvPEAq6pRW7J5S2zD+XROrfEGSAYvPhJJ8yx6h6W7biCdDMIJoLAI0N6H VGdEwXJEWKD3CRUyWALW4Lz0csFZ1c09QWSAT0cv84aey2V+3wIiP4pBBbuWU9BUOtps TfRp7yb+bCezkNQLf6vgOWI0hfkAy7lZ/B0+rmCMK8OY3E56e1u8p4SHDB59bJ9+4nh5 XQSCw5UhzQYiM8py73ITPaX9ybmXEaMVngZLJxv2XsqT+tSUKSLtEn4A8q7Q2aoOtacG JtH4FFo5JXanNNdHI62gst7MErdHE97xWhrxS2H6JnbXKSwWxo3X68I0lqGtj8QxSwuc C2kQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:in-reply-to:date:dkim-signature; bh=miTkXlJa4EIcEsU094faaHjwR6lQj9q1y7dTBhrF6/k=; fh=Hemb4mJM5prc2vzYuiCb79NsO5PBXIivID8uuZ/xruM=; b=lEfJtQS58WNy36mK4mKmj4yJMX1P/N3mYLa/iCCChTuS+7cGlbuBvJwey1PIChhdF1 zRj8enBYX42azNLVFy9uoGggvODHsHclFbHtenZqgmIiuQeicBBhZA+yw8S/rQqEAxmA mfbINwH77JzMXZj6jv3qMnCEC3TAiiCVWdMKh1lrNYNCDZrWy3Po7trHUXEuOPwIniOY x7WzhtlqxG5Qsm5YDmmgtOOdLijzasiVB74VeS0fjqwDxLLau9IZ5wPMiYfrMf3FhgNR cV1RRaXnuG6ZlXpnMXhI7Zoq6+ARHSpKNUVamEPseeb0E9+aDUe0O1S/zaMrjV5LaeWo letQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RN02Ew1r; 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-203384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203384-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 4fb4d7f45d1cf-57aae260c45si36880a12.512.2024.06.05.16.03.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 16:03:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203384-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=@google.com header.s=20230601 header.b=RN02Ew1r; 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-203384-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203384-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 23CE31F24CD0 for ; Wed, 5 Jun 2024 23:03:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D00641607B5; Wed, 5 Jun 2024 23:03:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="RN02Ew1r" Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.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 BAB1414A9D for ; Wed, 5 Jun 2024 23:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717628605; cv=none; b=jeGG8afwgP54c6NzOJRXGrQCS83qMIghqwwCGScOarphNF8FoUrTfBUeOpYZaPYbARZ7Vnc60Hv4HP5sMiAbhfpFE+kZvl05zeA9+pAWALO4q8RPay/NUYDI8A24torUfh/YAxaUsVKwUcZnBB9RgOu1VxGSNv+uisJn+kfOp6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717628605; c=relaxed/simple; bh=QUbuJckx72g7RO41A3sNIJ/bb4RwQEfYxjj0tregYsY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Content-Type; b=U9wi7setlEou1fbhqgZt02P+AMZkeBUtG4ED6kX7Yr0aBYlExRe+9zunXG2TwcyaJF9rQYZiofYI/X+qnLzEDFuwGvgGO587bdbepTurXlFCNTYP96D/EZX5kknh9hoNU3h7DPzIo8ZwBoHo6saLxZkZd5+zn/7TOKTIYwqV0xg= 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=RN02Ew1r; arc=none smtp.client-ip=209.85.214.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-pl1-f201.google.com with SMTP id d9443c01a7336-1f6792bf633so3952495ad.2 for ; Wed, 05 Jun 2024 16:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1717628603; x=1718233403; darn=vger.kernel.org; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=miTkXlJa4EIcEsU094faaHjwR6lQj9q1y7dTBhrF6/k=; b=RN02Ew1rZoSO27jXUOpD8OQD6P4wMtKnyw9E+T1IfdZtbvJZJwcJV0aZ8PXrgmSMWg CsIh/CHm1oi3h7WyUjpvQ+kha/vMwzbg6+1j8/Ezhk6A9tCbAwms+Gquuy2aIwz/0m0k rCUOI+aNS8qeY6iHcgT6cnLbkpaUBfZKwBjpwTIhkvXvx7HkELA2eJli7A/i7sXJodf2 RjtPa9WOrdjkk/UGIcDIo+1D6tVRqZsT1DViS7YlQwo7pxQH4XuPy5nW1jDvgtJlCvL1 5BSfka40lIQqrDwVEy1mB6bTlspqxHHenfC1dkoxmUaxizth0U6cCI/54zHaSMBY0YEs U5Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717628603; x=1718233403; h=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=miTkXlJa4EIcEsU094faaHjwR6lQj9q1y7dTBhrF6/k=; b=sgaYwqrAiE2rn6Z8OW7Bwi5r4bHSaqmkfEA4OoMrmFgKKonJpFkXAaipzSdhi1D639 CNNqf9KLi2GMSeZaGrAsy3UPpffdcVCtalUUEjIq2jWapE27VdvxlzKURj0eE8epBgmy G0NhksqXzM5yflzoqlSFv+lwA4DVdwVftxojBS3DyDfJVsPzTMddnTxnJtOAs+AQV/4G DmkAlXpmsOIs8vSMl0z0o10DkWTOCFeKBiQQqiTMH1hFeHj1DolTmZGGtHr4GuQu8Mhy oXA6/bMa00C9zOBZL7EilK3P0i3mJNG2A91BnBxcxI3QSGrO6vAmUf3u03ZvXQenqAbN vqtA== X-Forwarded-Encrypted: i=1; AJvYcCVz0IEvZlNksLHoW1a8b5dmUMpC8C9wmXwqOVSV/VSzYNUOCa+o5L2UhlP4VfAB12oPo1OCxlHE69tj+NEzNb2zgBKrb9eWhUY+DXdy X-Gm-Message-State: AOJu0Yw2wzlIar1GdsYql/eZwnPEo41hIbwgD+BfMw6Nrs72iuiE1Dkv j6/PPZrijkEszmdm4jC1w6ck52l0LgfA9ggDjbGC537wd3fpdSNAxWTF6wQSNBMu4IqtX1e6kZa 0WQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:ecd2:b0:1f6:83e3:fae9 with SMTP id d9443c01a7336-1f6a5a0a9e6mr1524915ad.4.1717628602851; Wed, 05 Jun 2024 16:03:22 -0700 (PDT) Date: Wed, 5 Jun 2024 16:03:21 -0700 In-Reply-To: <20240605224527.2907272-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240605224527.2907272-1-seanjc@google.com> Message-ID: Subject: Re: [PATCH 0/2] nVMX: Ensure host's PAT stays sane From: Sean Christopherson To: Paolo Bonzini , linux-kernel@vger.kernel.org, Xiangfei Ma , Yan Zhao Content-Type: text/plain; charset="us-ascii" On Wed, Jun 05, 2024, Sean Christopherson wrote: > Fix a bug(s) where test_load_host_pat clobbers PAT and causes all > subsequent tests to effectively run with all memory mapped as UC. Xiangfei > first noticed that this caused rdtsc_vmexit_diff_test to fail, but it can > also lead to timeouts if more tests are added, i.e. if more stuff runs after > test_load_host_pat. > > Sean Christopherson (2): > nVMX: Ensure host's PAT is loaded at the end of all VMX tests > nVMX: Verify KVM actually loads the value in HOST_PAT into the PAT MSR > > x86/vmx.c | 4 +++- > x86/vmx_tests.c | 10 +++++++++- > 2 files changed, 12 insertions(+), 2 deletions(-) Doh, this is for kvm-unit-tests. Been a while since I sent KUT patches...