Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp350383lqs; Thu, 13 Jun 2024 11:48:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrSQvgwBqSWuYrZeGo+kYQlsDsCJiNl+vaTXw4rCDoMmHVJ9/LJEfgR4jSZa1b6HvUm9qdkBEfa93VGT3+Gsu4avn6BBkuVn08R3jRqg== X-Google-Smtp-Source: AGHT+IERk8iir2a5EaozEp7UWcY/fXR4O2OfdHm5EW8J6NwuuUT76UTEK7H8lCLRD9hYWDoNqcMN X-Received: by 2002:a17:906:4146:b0:a6e:f7ee:b1f5 with SMTP id a640c23a62f3a-a6f60dc361fmr42886966b.52.1718304530415; Thu, 13 Jun 2024 11:48:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718304530; cv=pass; d=google.com; s=arc-20160816; b=nKMkrv2FRAS7dmpoxsTQWwZKJff/tbxC9WmnnDqie+07aRysbbxZEY+uzTpSQxg/nJ a2bydznsO6VfCtCci4hRgyQ36NLlCsferEdG+NMtypImVxaOyuCR7JrKTdimaCohiqQz ZSpBdpswg+VqX46iTMtnOsGnV0Zp5QJA5pIz1jFxbV7wmi0VoolvrnREWKYuZRJx+j/Y HcKBKjaG6M4SXkTNVk5H49rvD/cnvfSmVUt9QMYnn2m/4Re0+wR9HI3ydBIfhIUW70Fm QuYNPreBBnyEVFiIYCruWIRjN9nZ7KMFbuje4PgOQOmLue7zIPWTj3Ki+uK2RbVySor0 F14w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:date:dkim-signature; bh=Updc3JmEB9tDfSD6bTK5d81zUhVfnHUf04ep4+BiNE0=; fh=nmWbh7orU3NoXjqgeJhAdUCBfcCYu9DNHBimzRAIk6o=; b=v0arZc+ONxJqKX1+OIR0c27RzqkbB8S6REFrf0N9yvYI2GyyL141wChudd0/L+V6ol 6ZejrVYwEOtPMEgjzjQs2czA9mD59kfYYDso0y8+As4Ed4z5Frs11Ld/swL4o/6jCkaK McjZjKEOzsLyS6G64VaDlh33yfDJ0xxwt0BNROKko2PZitF/oZBeEJLodJRKtFwosGAm xrKH5ZTYptO/D/csPWyaAltGEPGt69xmwIYM9+MkSjGVxy1ROY0b/gWyBoeI+AJdB9ls 0Ki7JDoaWPM6hWTZpKVzehzNyWHVN45/JIM6sQ2h+3rhS4ABgU/BztqCkdGAgoJ46nHR NkzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Pa62ppOQ; 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-213851-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213851-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-a6f56dd6d11si92728166b.327.2024.06.13.11.48.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 11:48:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213851-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=Pa62ppOQ; 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-213851-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213851-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 C383E1F274A3 for ; Thu, 13 Jun 2024 18:39:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72AC014D2A0; Thu, 13 Jun 2024 18:38:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Pa62ppOQ" Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 64D3614C599 for ; Thu, 13 Jun 2024 18:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718303896; cv=none; b=egliS29gWzUvshFtYu3j56nM9NWchQHTSJb9JeFy06MkvV9vKIYVwCT1PaRuAV/8ukRsR6cGjCaYUNNZiFJZ1dVBTFAL/fNlAx3M1D9OiMw3+OxK1//HCMb6zyhitcF6gNiLh+gdourU0UpCpXkaxIHUZypVVPzSbqDQC3ukMcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718303896; c=relaxed/simple; bh=L/I0jGSnKvfURjR9QPVZSHNpgzmXSr/7QAs2Yjq/MN4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=JcNUWZOEYftR3MRVRZ6Z7TxiQJBIhgXPIN3aX9vcsWwM0sN7j4R7GfJLZ9qIzLIQ6qqNDU3JAhXyCjFRu/imQWWT/V3RU6FrthJeeveDmO8ZOXj3cRPfG1eMrfUTXmQncjc7MEPwvPzoxLI8mJ/o/E8ifk9XNVtLbOrNaAKr1ZM= 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=Pa62ppOQ; arc=none smtp.client-ip=209.85.216.74 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-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2c2d6e09e62so1207058a91.2 for ; Thu, 13 Jun 2024 11:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718303895; x=1718908695; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=Updc3JmEB9tDfSD6bTK5d81zUhVfnHUf04ep4+BiNE0=; b=Pa62ppOQ/dth7kPb21G3Nd8RYVyAjomc/DV4cmyRvKhw6ydKU6UluwZWcJQlRITjC8 B2UrSUsjKqZKLtan2C4jaxNc4zS+E3jFPZRYscMKFNkW6E/QLEf8suL1dVrPe1d5ocvg Oaj1tDKrgUR/S864nOxHPheE9uea2a6mRBREJJkmNYC1y4TNtYtHMHb6TkT298epb87Q uQ8yOhSDDHwZGV+nFQXdLc9cIlCnyxdORaXFPlkfKv1+jhuQh3Ky5ZNKmjuDF3KdvoBL vjyCXm2GCjp85TXC1cL2SdBZ0pF7fHfb6rReMJxcR+CIs5v4CPkZhREfrxIMYxry+qiM v9DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718303895; x=1718908695; h=content-transfer-encoding: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=Updc3JmEB9tDfSD6bTK5d81zUhVfnHUf04ep4+BiNE0=; b=SvfQWsy91mtXppP3SNVJCiM+t5dnJjnDcyh2SFyAnY4v86P9fl/kiDjwSsFOYBvIc5 O/0RYnVk/DyPBdtzI59xjgEE8loVxB/auT/VB5Jv+qqh5GQFmt2FEvNTuIM1VYvWnl5o VVSDNq+O/yiemOgtkWlTG055DymhsrHLzGp3+VG+H+J/gazSJd0zeVk9ku9Jh3yRreWL +mjgKAgU/OGcm76KQ/ouEjn3GG31GAl3ZPuasowcQM6EdKjJclvPwUUv6sNgi8z9h7/x 1vJ7tU/QfzoCZPoSK8FFZRoJWZuOPhZFM84sNJFd2N1IA4Dgmt2GOP5jDZNh5j5YhyhQ dadw== X-Forwarded-Encrypted: i=1; AJvYcCUBo5OXKmnI5qIUqgkEu63fb8rviw3UKIPm+nho/4yiRQ/hMRdUBdx191Ba4b2+0vbFPBbvjhzIqlpZONQrMJ3euFY2rcnSbYZiBAMf X-Gm-Message-State: AOJu0YxVehWclnMy0bAPHxg5SCv3LYs7yNJ8YScxodz0ZrCUZlw+Ti4/ UtKw2q8zEhmyfaNjeFMT/U7M/84WjFb1r02MpRQ4q1NmEvcDbOjysUwm2PjLojTwbt6jrH7AT0R aEQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:d2c8:b0:1f6:fbea:7976 with SMTP id d9443c01a7336-1f862a17756mr12475ad.10.1718303894500; Thu, 13 Jun 2024 11:38:14 -0700 (PDT) Date: Thu, 13 Jun 2024 11:38:13 -0700 In-Reply-To: <608b37dbc59a80d32719c8fde8b6979a2b839e10.camel@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> <608b37dbc59a80d32719c8fde8b6979a2b839e10.camel@intel.com> Message-ID: Subject: Re: [PATCH v2 00/25] Enable FRED with KVM VMX From: Sean Christopherson To: Shan Kang Cc: Xin3 Li , "kvm@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "corbet@lwn.net" , "x86@kernel.org" , "dave.hansen@linux.intel.com" , "vkuznets@redhat.com" , "bp@alien8.de" , "mingo@redhat.com" , "tglx@linutronix.de" , "hpa@zytor.com" , "pbonzini@redhat.com" , "peterz@infradead.org" , "shuah@kernel.org" , Ravi V Shankar , "xin@zytor.com" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 27, 2024, Shan Kang wrote: > On Wed, 2024-02-07 at 09:26 -0800, Xin Li wrote: > > This patch set enables the Intel flexible return and event delivery > > (FRED) architecture with KVM VMX to allow guests to utilize FRED. > >=20 > We tested this FRED KVM patch set on a 7th Intel(R) Core(TM) CPU and the = Intel=20 > Simics=C2=AE Simulator with the following four configurations: That likely provides coverage for the happy cases, but I doubt it provides = negative testing, e.g. for VM-Enter consistency checks. KVM-Unit-Tests are currentl= y the best choice for concistency checks (unfortunately). And given the insanity of event re-injection, KVM selftests needs a dedicat= ed test for that, and another for the interactions with nVMX, e.g. a la svm_nested_= soft_inject_test.c. I haven't looked too closely at the selftest that's already provided, but m= y suspicion is that we'll want multiple tests, or alternatively one test that uses KVM_ONE_VCPU_TEST_SUITE().