Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp390468lqo; Fri, 10 May 2024 03:07:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsG5Y95LDVNsokvmKWN+zvtMrvvR07AmKKeINkTaCsRUg9OO0KvFs9PF9SVj1Cn3VvwoiMRbjkQcaMIFfigKvHGn1pDgcbogCNGW6cmA== X-Google-Smtp-Source: AGHT+IG4vZzOmMuWkerrB3qt0EW0t3Jj/VMZIrsyIzbwcfVVGSsQm34L4Pix6PHoVxciA7nwXnF3 X-Received: by 2002:a05:6214:5990:b0:699:45f8:dbf1 with SMTP id 6a1803df08f44-6a1681c7c24mr21240136d6.22.1715335654014; Fri, 10 May 2024 03:07:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715335654; cv=pass; d=google.com; s=arc-20160816; b=uja0jey5WiQ3fSMZSmBlREgqbh17CfH+thvvk40I0Km6HbBeho7t2Swi48rBKmnjR5 zcp9asTKX/ITPbat7mjepXJoNjWGXseV2dBy0xPALbHfyOVwA//z+HxDGSdyUobSI+aa qajJWr4tJ6IwiqOV3WPmX6lg/tpZD4R2ksKDVSmORjrAUzO6PjKuK5xHMrAIMP00acFD agMYvHHUwhhNxrHclhtkeVbLGSg6trbnZRqOQwKW6wymeDXic1XliQuEnZGA6LsHsnyf 7sTaQpjhpor8LT27CEJxwHLJSrT7ivOEwm2PdvQU29eRHW8lE0O0WyMKUqPw7iFhFUC6 qOqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=ODj1UcfgLsilkOJ93AaBzpY+nLn2txKitmtJHEr2EDY=; fh=7L1jPBN5cdlefsK1p+E0OsKQRW8CyXM90QpPJBMqIk8=; b=WPAdvhtoUUKHsVPIDzFO9VgLsuTa3c9FviorshE00BYhD3oshTz2hc1BE1joNozmat 54V00tL+S+Ytf6vFenFFerSElcAMvdN27uHZmzHHlAPQm7VMrMzXGZCpLPE87NxIK825 81ttw5IXYkjVfelqx7CnEyavFR0ej4m8R8hgKPgZoVBkjGuTn+HHWe4JSe1o0xTYnHRl ZLKpnn6MazWCltdFrJUQEf2BRX27hP6fvaodoEY1qDqBO8XZ6NTLxtJcoI+MPbInpwWG hN4YLTefEB1TAeAYgiiNQH9LGuKD3KFVlz3+jHBlpgTLb3ak/847Ha+o/sWfTKufy0pQ Avjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=u8uF0CBu; arc=pass (i=1 spf=pass spfdomain=amazon.es dkim=pass dkdomain=amazon.com dmarc=pass fromdomain=amazon.com); spf=pass (google.com: domain of linux-kernel+bounces-175566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d6d1csi33571466d6.3.2024.05.10.03.07.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 03:07:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=u8uF0CBu; arc=pass (i=1 spf=pass spfdomain=amazon.es dkim=pass dkdomain=amazon.com dmarc=pass fromdomain=amazon.com); spf=pass (google.com: domain of linux-kernel+bounces-175566-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BB5661C20C79 for ; Fri, 10 May 2024 10:07:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2FF84168AE7; Fri, 10 May 2024 10:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="u8uF0CBu" Received: from smtp-fw-80009.amazon.com (smtp-fw-80009.amazon.com [99.78.197.220]) (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 C4B1E165FA1; Fri, 10 May 2024 10:07:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=99.78.197.220 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715335641; cv=none; b=bB1ROzI4dfQL0U4edS1Qxwg45C7JViyl64cNCUx+amD/mYDmJby2Do3b3LDp/yZ7+/RdH9UxlZV/Jl8dlH5TqMCIxxnAkbIVlDwalRp8bIDnadTxn+i382ez770oEwSZBPse/ja0Av6+9o/kJcBTKWRv/79USlViMGOfRNMabos= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715335641; c=relaxed/simple; bh=ifYU/c+8V7OWSd9aaCKHF7gpCqv7cSdHzl7rv5oFs0w=; h=MIME-Version:Content-Type:Date:Message-ID:Subject:From:To:CC: References:In-Reply-To; b=YhNoo8dTXzI9xhXo434xheWu7y4cS7i46GNXu0iiHxPXUSUY7ZXD0de3TW9tkr0v2CS3bUfmEbWOQgbzdg///Smde2sdMBcVKDhNw0j4Q5ULgB9mgbi2QCG+V48aYCICsRfil+6CRAIL8DIgaVtQRfEBNgL8imKn3XwtEtAVSUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.es; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b=u8uF0CBu; arc=none smtp.client-ip=99.78.197.220 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.es DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1715335639; x=1746871639; h=mime-version:content-transfer-encoding:date:message-id: subject:from:to:cc:references:in-reply-to; bh=ODj1UcfgLsilkOJ93AaBzpY+nLn2txKitmtJHEr2EDY=; b=u8uF0CBug7c8zCvsxafKEvq0CDaBFQOMRdoDAtvAPf0o9JmSmUYIrbcd 8TMqV3Ny4NIBTlnCoa1vEds+0gHqP9iuyEqAQUw1JfywNJof5GxrLbPYe iCLegTlVnHLZbVrZQVmWEj9Hxdln8O6Wz8aY2aLdaYMWupiifYGtj3XcQ Y=; X-IronPort-AV: E=Sophos;i="6.08,150,1712620800"; d="scan'208";a="88359429" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO smtpout.prod.us-east-1.prod.farcaster.email.amazon.dev) ([10.25.36.210]) by smtp-border-fw-80009.pdx80.corp.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2024 10:07:15 +0000 Received: from EX19MTAEUC002.ant.amazon.com [10.0.10.100:54770] by smtpin.naws.eu-west-1.prod.farcaster.email.amazon.dev [10.0.14.131:2525] with esmtp (Farcaster) id 0c298036-b7a6-49e7-b4ba-4e0b449ad4e5; Fri, 10 May 2024 10:07:14 +0000 (UTC) X-Farcaster-Flow-ID: 0c298036-b7a6-49e7-b4ba-4e0b449ad4e5 Received: from EX19D004EUC001.ant.amazon.com (10.252.51.190) by EX19MTAEUC002.ant.amazon.com (10.252.51.245) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Fri, 10 May 2024 10:07:13 +0000 Received: from localhost (10.13.235.138) by EX19D004EUC001.ant.amazon.com (10.252.51.190) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Fri, 10 May 2024 10:07:03 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Date: Fri, 10 May 2024 10:07:00 +0000 Message-ID: Subject: Re: [RFC PATCH v3 3/5] KVM: x86: Add notifications for Heki policy configuration and violation From: Nicolas Saenz Julienne To: Sean Christopherson , =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= CC: Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Ingo Molnar , "Kees Cook" , Paolo Bonzini , "Thomas Gleixner" , Vitaly Kuznetsov , Wanpeng Li , Rick P Edgecombe , Alexander Graf , Angelina Vu , Anna Trikalinou , Chao Peng , "Forrest Yuan Yu" , James Gowans , James Morris , John Andersen , "Madhavan T . Venkataraman" , Marian Rotariu , =?utf-8?q?Mihai_Don=C8=9Bu?= , =?utf-8?q?Nicu=C8=99or_C=C3=AE=C8=9Bu?= , Thara Gopinath , "Trilok Soni" , Wei Liu , Will Deacon , Yu Zhang , =?utf-8?q?=C8=98tefan_=C8=98icleru?= , , , , , , , , , , X-Mailer: aerc 0.16.0-127-gec0f4a50cf77 References: <20240503131910.307630-1-mic@digikod.net> <20240503131910.307630-4-mic@digikod.net> <20240506.ohwe7eewu0oB@digikod.net> <20240507.ieghomae0UoC@digikod.net> In-Reply-To: X-ClientProxiedBy: EX19D036UWC002.ant.amazon.com (10.13.139.242) To EX19D004EUC001.ant.amazon.com (10.252.51.190) On Tue May 7, 2024 at 4:16 PM UTC, Sean Christopherson wrote: > > If yes, that would indeed require a *lot* of work for something we're n= ot > > sure will be accepted later on. > > Yes and no. The AWS folks are pursuing VSM support in KVM+QEMU, and SVSM= support > is trending toward the paired VM+vCPU model. IMO, it's entirely feasible= to > design KVM support such that much of the development load can be shared b= etween > the projects. And having 2+ use cases for a feature (set) makes it _much= _ more > likely that the feature(s) will be accepted. Since Sean mentioned our VSM efforts, a small update. We were able to validate the concept of one KVM VM per VTL as discussed in LPC. Right now only for single CPU guests, but are in the late stages of bringing up MP support. The resulting KVM code is small, and most will be uncontroversial (I hope). If other obligations allow it, we plan on having something suitable for review in the coming months. Our implementation aims to implement all the VSM spec necessary to run with Microsoft Credential Guard. But note that some aspects necessary for HVCI are not covered, especially the ones that depend on MBEC support, or some categories of secure intercepts. Development happens https://github.com/vianpl/{linux,qemu,kvm-unit-tests} and the vsm-next branch, but I'd advice against looking into it until we add some order to the rework. Regardless, feel free to get in touch. Nicolas