Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp461896ybg; Fri, 12 Jun 2020 06:15:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/qCu0RxK5bjzOWQ/TNkerprsEs0feVfvmMSTAvlez0J5bYOQk6ZRO2V/S6qDm0qG6mnML X-Received: by 2002:a50:f087:: with SMTP id v7mr11303535edl.225.1591967753300; Fri, 12 Jun 2020 06:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591967753; cv=none; d=google.com; s=arc-20160816; b=YU4L1l1RrUx8UMxXXiU17jCm4r3kq1cnDejZLSVSojCchFJi+iiAkXgbUw/jNCzwmn PvkzN7jCLnCUXnpv3/khJ2AIVegvdR1hpVvVbpKbkQo3NWIxWM1E3oudIlhkBYKN+LWg ile/blQf3mQsOsqGh/OEJBu8uGDpH1zKLvVEKKbPMlHDMv6H5U+9EC1o5JqWsrykprB9 jrIa5oxrNdMYlyeYiJx7m/hAhofT2GxNm/G2Xr47eaLbUq2D0pewVR4T6CU1EbcUFcSX Klk//P2DEuUIljWIyHsfLAs9b4SsWDmKj/S26otlZdz/oAr5yXPOsFDbezGIDng86V2k zYow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DsvqJyEz3c+fQ4fmS3IX+gLIofqDO5nOeVm97sEGSH8=; b=fRwJpo2ENIrJT9GUYuX69B5xpvnKwyOUp6wVffihOgNohHPpq3RQZhAclDJWrPF2wb rgA77g89d7E2QAGElcYkNmHJc3vt8Op+i6S7Mydu3SzWHxbbZnpFQ1n4czWQEMC4t7a/ Jjz8e/4/pzPLnk4FcMVkbD0hdRZ2fMDpst2JY4zYCdFQ/80CgySpqiX9yHwlLi9+O9BJ 4TLYHrqufCOy24xeaW0yiKfaxx9peikx0jCaptwdwzJByT2TYDaodWg28cEkvbMaB6pf FZFsbtQdStqPF3GNeV8wIP6Vzmx2GlAQ4LXZO1UCibbT+VeNxebyHAZoQgI819hgEmEH tRdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=RPbVDGwr; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si3814152ejh.73.2020.06.12.06.15.30; Fri, 12 Jun 2020 06:15:53 -0700 (PDT) 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=@alien8.de header.s=dkim header.b=RPbVDGwr; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726302AbgFLNN2 (ORCPT + 99 others); Fri, 12 Jun 2020 09:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbgFLNN1 (ORCPT ); Fri, 12 Jun 2020 09:13:27 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C15C03E96F; Fri, 12 Jun 2020 06:13:27 -0700 (PDT) Received: from zn.tnic (p200300ec2f0af400dccdc80c995f3217.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:f400:dccd:c80c:995f:3217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 894911EC01A9; Fri, 12 Jun 2020 15:13:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1591967604; 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:in-reply-to:in-reply-to: references:references; bh=DsvqJyEz3c+fQ4fmS3IX+gLIofqDO5nOeVm97sEGSH8=; b=RPbVDGwr/yzQzyYkPbghXlo+7iL+8yyNf7noWO/fmGVTLdUqkaVwfBP6LzQOnaOTvJaryV r5ezwR4WDXFDbN2NrwxXc1D7MashxM3lO8irNJBHvjtSe0gKW15CArzWVJ9BdAGti5mDgl jdtLCJrP0WHvVVYW8e/PjGcTWptmQfI= Date: Fri, 12 Jun 2020 15:13:19 +0200 From: Borislav Petkov To: Joerg Roedel Cc: x86@kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Joerg Roedel , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v3 47/75] x86/sev-es: Add Runtime #VC Exception Handler Message-ID: <20200612131310.GB22660@zn.tnic> References: <20200428151725.31091-1-joro@8bytes.org> <20200428151725.31091-48-joro@8bytes.org> <20200523075924.GB27431@zn.tnic> <20200611114831.GA11924@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200611114831.GA11924@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 11, 2020 at 01:48:31PM +0200, Joerg Roedel wrote: > The most important use-case is #VC->NMI->#VC. When an NMI hits while the > #VC handler uses the GHCB and the NMI handler causes another #VC, then > the contents of the GHCB needs to be backed up, so that it doesn't > destroy the GHCB contents of the first #VC handling path. That's a good example, please add it to the next version of the patch, preferrably in a comment somewhere. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette