Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp114976ybb; Thu, 19 Mar 2020 12:38:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtspEeyYDS2tvW29miz/JiQs/mpd7mEuL0aoDp9ulyPwpeRiPapX0XqMbJJob8m7J8QfezG X-Received: by 2002:a9d:4d85:: with SMTP id u5mr3935829otk.128.1584646736534; Thu, 19 Mar 2020 12:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584646736; cv=none; d=google.com; s=arc-20160816; b=bNYK87NlO+9A6P9kXziDe7txyOrpBhmNkqE7CutJ+f6v2nX01EiDPi7mf2idPsTozS 5KrHUefD+Pw4TomMhGtzJApdacxnbWALLLTr/g0vSfqxocuyNZHh8aGCm2tu5AIBs/kc QpemfPXsPz7vhTNo8t4BzaGAzoYbOeb/YOzBDhyEQuz/zkwf0X0iCsJXUqosnEfLbbta ldBHBtgTff+F2zsEJXZRZKQjJMkGQDzei9Fuco4wgmsOnbKDon91nu2nPQJriS4dSVQF z5KChLIfM4eoGHyYSl3PlLdT3bZqTwxsBG0esGCY1TfPeuIXkNUoN4o0a5exSPBxqfoW N8Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=C133h5z5DkbiqG+4oFIf0YbYyBBnBk6Uy2bYwqR6RP4=; b=ytO//n97jR2ZszMhHS1labyEg+++pxubbP8jLH/4GUeOjLS1CuI/OMnOpmvUO+9xtJ DR4/G/0X4Hfy4VjRuLndaxvJFBPPh4x1sMSt57zupx1usQQEf5BanRFz0iqH8+txEAt+ K064NfNgmo0nkj4S18IHAotKIQOSJ/yxLwlr8JcGKQJ12I4qurH8vEPqc9jP+AHnWd+W YE0IoCYWUD0yeqC0v/dkIAQ15rU7mg9iVD+beiNOqBtJ0TUHlgTrkG82uoWH5N1MS2f/ zmAOr2bNbqnaP5R5Q7e4KPPGEKUbHg7RAtRilhVwsX6rmOjCojRHG/SNv5Wcl+T5ILVp 2rrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u135si1469045oif.248.2020.03.19.12.38.44; Thu, 19 Mar 2020 12:38:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727295AbgCSTiS (ORCPT + 99 others); Thu, 19 Mar 2020 15:38:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:53414 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbgCSTiR (ORCPT ); Thu, 19 Mar 2020 15:38:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 38891AFC6; Thu, 19 Mar 2020 19:38:15 +0000 (UTC) Date: Thu, 19 Mar 2020 20:38:13 +0100 From: Joerg Roedel To: Andy Lutomirski Cc: Joerg Roedel , X86 ML , "H. Peter Anvin" , Dave Hansen , Peter Zijlstra , Thomas Hellstrom , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , LKML , kvm list , Linux Virtualization Subject: Re: [PATCH 41/70] x86/sev-es: Add Runtime #VC Exception Handler Message-ID: <20200319193813.GE611@suse.de> References: <20200319091407.1481-1-joro@8bytes.org> <20200319091407.1481-42-joro@8bytes.org> <20200319162439.GE5122@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 19, 2020 at 11:43:20AM -0700, Andy Lutomirski wrote: > Or future generations could have enough hardware support for debugging > that #DB doesn't need to be intercepted or can be re-injected > correctly with the #DB vector. Yeah, the problem is, the GHCB spec suggests the single-step-over-iret way to re-enable the NMI window and requires intercepting #DB for it. So the hypervisor probably still has to intercept it, even when debug support is added some day. I need to think more about this. Regards, Joerg