Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp152632lqp; Tue, 11 Jun 2024 18:50:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoec51+Rgr67z16aPmPBjZk2lDz8fiTep3tuupl4QSkvpR5DiDhe/6n7Q8a9KYtqNdgeYO5Id7TFricxHjDghJ2zZh/Nvo5pL3b4iE9A== X-Google-Smtp-Source: AGHT+IGWjVkjU4sr07LsoZ6I7t3eOxqRaDpesckBPmXr6tDbkgxksTqipjvGILmJ2crCcV3UtXh0 X-Received: by 2002:adf:e682:0:b0:359:bde:6199 with SMTP id ffacd0b85a97d-35fe89514e4mr203700f8f.71.1718157045689; Tue, 11 Jun 2024 18:50:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718157045; cv=pass; d=google.com; s=arc-20160816; b=d1qINxZ7cbWaVP6TW7OLzoDRvd9FSjRDv5sDjEbiHk98tqVIzHopV1hm1W+18r0jG1 jxweur3HAbSy+lFthQy8bI4feV3c0RnuaPG9LaRgzjlRFZikTjo97cjNo6/8eN5EK+u7 sRVtRNpOTC6sDB+Ye144Ih/wf0V2dvEnHefnjnH2Jl+Smw8g7Jmgp+43iegRCaRf26F3 BsguhEbH4yWU4xdhxofQLnngn/zxNIpwQqEDgy/xhqC+6+KBBp7yJXb7XRT8cwyFmku1 877CfTp/W/W+8HyVx4A8UQDFZHbTI3BCy6Lck0qkcFBAV36iJkFZA+5bT64KpikGpZcK MCaQ== 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=IKtpIL6U7kg1fAPfAGw1LfrxkdIqOyyJ+814b5HJ4FE=; fh=rZ2d7qAnbr/gmrUavWfPd8gr+QXmFoyQXLLdMY3KtnQ=; b=ZCZWel6yH1xIda7S5BsP9X8GJqTsolfWI8mWIQOVXCsWUDjuK9HxcGiKcOv9d0GPV7 rYHqu2poVOVehjNg7RJTzFpkGp6NsDnriwZfwOpdJbaLKWof4L5qkU0iowU1yH+bp7Bj 791ZCNo/2GnBl2Mo86jzsngk2deFFIQFz0JbkY7aRirswYSfPABJjoHz4mA+VcC0tsvT 0BSn0Yv1KVzdx4Wtgg/fQ7QcQCcvG3Rko6ETVA6wTPw4mwTKKdN079yTN+WJ9UkWXzNT oXJuKYfWLDRCRZRGZZ5VDu5HUPna46GwsJnZo8WqAeMwceEV1E0CrvoKRh0Jtl5mjmD6 2aWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Jp0ollvH; 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-210778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210778-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. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6e3835838dsi477108366b.505.2024.06.11.18.50.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 18:50:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Jp0ollvH; 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-210778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210778-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 57F031F235E2 for ; Wed, 12 Jun 2024 01:50:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FB235244; Wed, 12 Jun 2024 01:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Jp0ollvH" Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (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 6DCF54696 for ; Wed, 12 Jun 2024 01:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718157038; cv=none; b=DJSJUchpaBu58T3ge4p/nIFPoodazjt8e9Inm2ZOtlqztWqtez4WozNCRwOrgL8OvcptZxPN1o1H4g6DF0GmrEYjs9IbGQ8RqWpJ79zmqJtUx4mO5cbglE9GilOWGvpZpCW4HO+bLlXVOjSS4Yeq5JnKosXb38uBTl+l5oxoqS0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718157038; c=relaxed/simple; bh=CKzAUUkEhigDiFfq9f0v9aKgqgAE2xEgqzhO+uzIlyc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=gJc1DY/6Tki4XVFwDfOKdJk3ypI6KSFR1+sYpE5ry7lWAgLYBoo7En74KeFQrQsH3kp5vIiv/yBmwMdkCAdXMdkyQ/sqw9iaDMMqZk9Vw568r5v6wCNh9qcqMV2ULO8s+i0iqeA0vMTP7sh5eLrxDQu0bDAyhmqU07rLq/Xn9Oo= 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=Jp0ollvH; arc=none smtp.client-ip=209.85.215.202 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-pg1-f202.google.com with SMTP id 41be03b00d2f7-6ea5a4fd129so2831919a12.3 for ; Tue, 11 Jun 2024 18:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718157037; x=1718761837; 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=IKtpIL6U7kg1fAPfAGw1LfrxkdIqOyyJ+814b5HJ4FE=; b=Jp0ollvHUpiko7V82fF7TufxCkNgoTT9Iq1uoSQuGxoNv58MBxhm4Bz8uE3pLTymKP o4WeKa8/nQVwvIBQuI2Arw87enea8qnNt2hpTqjvuy/FB4iDwGNf34vvkhPhroniR0Jl I4emDrjfdI40Rm2YiE0OmJp4j4n7e5T/RK1U8O7k3rrVpUweZPI93Huzw3KfnL9zzftJ 4gtMEXoZXTyUfF8SPmg3p41eniyUvMsdovlDvOjrPcrZ6MwiJ+v9cD143FpYStfrUl+S eZN9eYsmMJn+RrUzFcmdoGFuUGiZ8fT/AQZTIn2AdcSY5djZh89uuo7CvOY3Fh0GMJe6 SisQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718157037; x=1718761837; 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=IKtpIL6U7kg1fAPfAGw1LfrxkdIqOyyJ+814b5HJ4FE=; b=J4+IP7yz4MBwZ610jo0+zJMnwXjh96hxMmg2H2GTPjhsMU9OlK0LqB1K1GSpP6h0CF sJez+KLdi4ZpLnI7C3bKHQTMN4JOXWyPvdOT8AS2PbsVSgMqFV++Dt2w5fA+VOetENs0 fsuGlyTYkVnPeiMPbaQnxyu4CfLvHe6JjGmzB9aMGr5o4f8BSConH0TfUjrU9SRATQGh dqryjZeI+O7U3Q+KaRyXqxnNh1vylYZY0Fp+IjfBVGQPHbrYRda2CF0BPIpfDHFJk3vK 9LjfcxdUtmb/yHxnDMRFtf+h51v0crHhcMHoyJhK7ioLwMGyB3s7U52UUb9N0hF8YbMF 5q3w== X-Forwarded-Encrypted: i=1; AJvYcCUkbcJP6567l6n45hofjyU8InQGxZheur1kUddUOESZ0H7OyLWjWXGJsky8iIf3mWS7zNn1vUsoW4Sqau7KRHw3sZMNf2ugNybasrKn X-Gm-Message-State: AOJu0Yyu1j8geiie3rvDHH1grET1bIk+MasRcvyBEez7M8QXl8g1sanJ AwZtJpYJoQwPrrUiDm50QeDYANTGDDQ5YyQoGKr30L61Jwz59fQk2iaaoPlSwcGhk+FVedZbft0 +YA== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6a02:8c1:b0:6e5:f498:250a with SMTP id 41be03b00d2f7-6fae76010c6mr926a12.12.1718157036530; Tue, 11 Jun 2024 18:50:36 -0700 (PDT) Date: Wed, 12 Jun 2024 01:50:35 +0000 In-Reply-To: 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> <171803644297.3355626.18364027225741935056.b4-ty@google.com> Message-ID: Subject: Re: [PATCH 0/2] nVMX: Ensure host's PAT stays sane From: Sean Christopherson To: Yan Zhao Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, Xiangfei Ma Content-Type: text/plain; charset="us-ascii" On Wed, Jun 12, 2024, Yan Zhao wrote: > On Tue, Jun 11, 2024 at 06:18:40PM -0700, Sean Christopherson wrote: > > On Wed, 05 Jun 2024 15:45:25 -0700, 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 > > > > > > [...] > > > > Applied to kvm-x86 next, thanks! > > > > [1/2] nVMX: Ensure host's PAT is loaded at the end of all VMX tests > > https://github.com/kvm-x86/kvm-unit-tests/commit/8cbb8d3cbca9 > This is also good, though I thought you would fix the theoretical one as > https://lore.kernel.org/all/ZmesywdpFG3qDIkZ@google.com/ :) Doh, I did squash that, I just forgot to update the "thanks" email with the correct hashes. [1/2] nVMX: Ensure host's PAT is loaded at the end of all VMX tests https://github.com/kvm-x86/kvm-unit-tests/commit/184ee0d5 [2/2] nVMX: Verify KVM actually loads the value in HOST_PAT into the PAT MSR https://github.com/kvm-x86/kvm-unit-tests/commit/ee1d79c3