From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E698DC433F5 for ; Tue, 28 Sep 2021 15:23:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE92F61213 for ; Tue, 28 Sep 2021 15:23:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241595AbhI1PYy (ORCPT ); Tue, 28 Sep 2021 11:24:54 -0400 Received: from 8bytes.org ([81.169.241.247]:40190 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241080AbhI1PYw (ORCPT ); Tue, 28 Sep 2021 11:24:52 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 6623729C; Tue, 28 Sep 2021 17:23:09 +0200 (CEST) Date: Tue, 28 Sep 2021 17:22:34 +0200 From: Joerg Roedel To: Dave Hansen Cc: Kuppuswamy Sathyanarayanan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, Paolo Bonzini , Juergen Gross , Deep Shah , VMware Inc , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Peter H Anvin , Tony Luck , Dan Williams , Andi Kleen , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 06/11] x86/traps: Add #VE support for TDX guest Message-ID: References: <20210903172812.1097643-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210903172812.1097643-7-sathyanarayanan.kuppuswamy@linux.intel.com> <63e59789-ce23-6b2b-5ef4-3782e7ddffd6@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <63e59789-ce23-6b2b-5ef4-3782e7ddffd6@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 07:05:40AM -0700, Dave Hansen wrote: > "Shared" pages can cause #VE's. The guest must be careful not to touch > them in the syscall entry path, for example. But, shared pages are > untrusted so they're not use for stacks. > > "Private" pages can cause #VE's. But, only *some* of them. Before a > page is accepted, it is in the SEPT_PENDING and a reference would cause > a #VE. But, after acceptance, page references either succeed or a TD > Exit and the hypervisor gets to handle the situation. Okay, and there is no way for the VMM to replace an already accepted page with a page in SEPT_PENDING state?