Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3890522pxu; Mon, 30 Nov 2020 12:28:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVkHPiSGGlNCUQpe8HgOdz+FDwbaoLAWd41O4EUlF0DV8X3vBSQri5tO7aMEpPlv5iDY2r X-Received: by 2002:a05:6402:48d:: with SMTP id k13mr23345198edv.92.1606768110613; Mon, 30 Nov 2020 12:28:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606768110; cv=none; d=google.com; s=arc-20160816; b=IEvqHSSkg4jb8e1F7XIPykBTpZObgJD4ECezMydVgYZt1hGlqOLcOmAf2c/yM37PUE anmZen7SFze/fp1BP4HDhdg7Z49TCpepeE3ieZssv6tkHjGhw74T5pNzM70rf8W7QYCU POJ2e8DHQzwgP6+SZHvQt/DHq8n/VCZL2jnI4XyGRDgmPAzR6JSoMnViaVFfnF7k6MzR 695z+n3bDFOEzQx3JVZya6/1agTP8xvHVkGZH4B4bhM5Q5A3hbHphjXniUK2QE/dfqPt QzaDCOVdYdNYmN067d36BP/KtMjzR/AYzHMSXmATjIbBziHXPYai7Ze9N9KOAXiELVbp 39Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=aMj2PaNetiusUJ1P54tSAn6Nz2qIosd6leD0c3q65l0=; b=AQ5HspDcvNjx6Q3av0F7+MUX3WrcdLZ+ZDfQRwqY6OHa/1QXzalNST17wsEAzRm3dP y2iHCCEq9NfpQqKUd4oeJc4JoMnYtSpfB1JwBoKtoBmXvJb8I8ClNUrmR6pjX9ZBR2XY kyB25nEmkNwlAbDz9/vzLdHa1NG8F93mPiedXST8yLFcIiteinkckJQPFRbDLUnAwzOD CaOoYpLuPSfFNJ1GWw3tleDRXA8kO7u3x9SRAoTrQj084V2KO7yajoks6RQ9qnrTJiex qw98h+8gpmURDEk4zBo3sJvynKehWMUErnSTysAkyG3PWRkz77vCAO1lRiML79vIvlDn WGVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=InG3Uk7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si14728229edv.208.2020.11.30.12.28.08; Mon, 30 Nov 2020 12:28:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=InG3Uk7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388410AbgK3U0H (ORCPT + 99 others); Mon, 30 Nov 2020 15:26:07 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33134 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388402AbgK3U0H (ORCPT ); Mon, 30 Nov 2020 15:26:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606767880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aMj2PaNetiusUJ1P54tSAn6Nz2qIosd6leD0c3q65l0=; b=InG3Uk7qnehRSVLzbgduuGm7+AHbgwvOaL4cdyJMO7e3yHKjkCsVrbSwaaSi0r/SCY+Hto 6RYyZI8gcxI5f+8KAPR2DBi0gywUK2bUu+z+nJ0+BuXt/B/BWPTnJXNu5Bzn95gibxBDhP nUu6/TFsER/ManPlR+4LfJrKx2/CWA8= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-465-QOutz7TmNzS9Q9cMPJS9rA-1; Mon, 30 Nov 2020 15:24:37 -0500 X-MC-Unique: QOutz7TmNzS9Q9cMPJS9rA-1 Received: by mail-ed1-f72.google.com with SMTP id bt2so7422885edb.12 for ; Mon, 30 Nov 2020 12:24:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aMj2PaNetiusUJ1P54tSAn6Nz2qIosd6leD0c3q65l0=; b=amLM2jPZBs/rS6it4j7OGseCJoR37azA8eGvPcVksKFe1CWYKbUOpTdDEEv/lAZAnt uv6tWrs0BOmEqGcqpfTK9673YapIuJeR4dRuZtsH+5dU1UlJCMKT4+2H2+2JGVI2PKcj w/sH2ccv4Ju8cTUSigxSvlehg+OjQZUHojnU+fJR5NTerkmYEszL7zEgo0ec9NoT9N/S T+1vkVQp9xMdjUyVj+DBDrEommWbbPOeIUrSMiO6sF5qbHmFW/MakKhvIRVdOVsnfXts WwsGphHfbsoGm63XhtIyMuj8Ds9t46cU+Ro8/vBK5HZaLA+Q2mZL1gDv9lREXOkSOoeJ Lxig== X-Gm-Message-State: AOAM5322SKL8+HVhHnAVQikYNq6pFSYsBoBZYh4ERAM63UIoTN1/zuD2 O8Zt0MoBCC1OWJIY/9kUmfADiIHciXDZKJODoqtXn5uyP5gCMDG8UhWZgJzgbVU3qgP4KPRRCNf jcYftsI3ZkxixOGlQAXT3QlLr X-Received: by 2002:a05:6402:1508:: with SMTP id f8mr24584455edw.350.1606767875965; Mon, 30 Nov 2020 12:24:35 -0800 (PST) X-Received: by 2002:a05:6402:1508:: with SMTP id f8mr24584431edw.350.1606767875803; Mon, 30 Nov 2020 12:24:35 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id q19sm8970227ejz.90.2020.11.30.12.24.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2020 12:24:34 -0800 (PST) Subject: Re: [RFC PATCH 00/35] SEV-ES hypervisor support To: Sean Christopherson Cc: Tom Lendacky , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Jim Mattson , Joerg Roedel , Vitaly Kuznetsov , Wanpeng Li , Borislav Petkov , Ingo Molnar , Thomas Gleixner , Brijesh Singh , Xiaoyao Li , Isaku Yamahata References: <20200914225951.GM7192@sjchrist-ice> <20200916001925.GL8420@sjchrist-ice> <60cbddaf-50f3-72ca-f673-ff0b421db3ad@redhat.com> <8759948d-aa0b-3929-bda6-488b6788489a@redhat.com> From: Paolo Bonzini Message-ID: Date: Mon, 30 Nov 2020 21:24:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/11/20 20:35, Sean Christopherson wrote: >> Delayed interrupts are fine, since they are injected according to RVI and >> the posted interrupt descriptor. I'm thinking more of events (exceptions >> and interrupts) that caused an EPT violation exit and were recorded in the >> IDT-vectored info field. > Ah. As is, I don't believe KVM has access to this information. TDX-Module > handles the actual EPT violation, as well as event reinjection. The EPT > violation reported by SEAMRET is synthesized, and IIRC the IDT-vectoring field > is not readable. > > Regardless, is there an actual a problem with having a "pending" exception that > isn't reported to userspace? Obviously the info needs to be migrated, but that > will be taken care of by virtue of migrating the VMCS. No problem, I suppose we would just have to get used to not being able to look into the state of migrated VMs. Paolo