Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2430947pxa; Fri, 7 Aug 2020 10:57:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznJGQZpEvURgx2qULowFlpzNAAktWynExlCbCnCAkVFZRnPvbGE0zALat3KyDxB61aQE9e X-Received: by 2002:aa7:c259:: with SMTP id y25mr9090505edo.130.1596823039704; Fri, 07 Aug 2020 10:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596823039; cv=none; d=google.com; s=arc-20160816; b=oZb8EBNTO32bCUm2aRDkjOj0xvayNeroYCNOv7VWmZZaUC7DoLvzEGC4Pc9Y7eHgtE rj5z+FEI2TAYNQK71q5Z2CWdqwEP1zFP3LhRK9FPeldJkPn6m/F+2/fELYvN3HWAQlQt O2io/b7+4uzIdapaWVW1hhxs7YPwSFVGMuXo80y2P1ndLb3aUg9LdhLcCVgnLTtXgxRt jP/crc/uysorknqRbHj1stUcY5nHFTyQ0yerQfOvOy/m+EFMVGmG3AFHZLcmj1HkJ9jO epkT43AVfwfAg1RyyhqLGgpGK60iFpOrnekll3qVXaK4fFOa+OLGAFrp2svnbACRx19T hgCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=xkhnD1uY8DPhwyIZWdGamYk5L7D4QfW1rXqEO+V5I1c=; b=zyHeucqQ2lnM0GZUPvwK+uwE6rutUucKQMKDCfiWJcwxtY0xrGQrQbhoofGmt7rMZz SzpSH4eX5Gk9c+9HkP/XaQg+CrLkBJc/dVemodXXk56wzhb6ph2rvUQX7kHe2ywMFr3g fZ9m9OqUnUJU7ej3MFxvIbsIumkHUOV9y9Pu1eYUZSAY33gEpHogHozKoXy/aiaK7hpS Fhq8+P5PP3ZxV2d23HX9ZnLqcqS8BJPXYDdJ5WOL8H81vbvwyZC6gzDm3ESkrcbD20HE ShgSEp+kYdNykdBEHnoM5H75tw7j3sJD769PWYsFmetqDEOiC3w7viWpmy1O6tLtk+Hu MZIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tz1oZUHf; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si5371322edr.573.2020.08.07.10.56.54; Fri, 07 Aug 2020 10:57:19 -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=@google.com header.s=20161025 header.b=tz1oZUHf; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727051AbgHGRzf (ORCPT + 99 others); Fri, 7 Aug 2020 13:55:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbgHGRze (ORCPT ); Fri, 7 Aug 2020 13:55:34 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8F56C061757 for ; Fri, 7 Aug 2020 10:55:34 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id 2so1255495pjx.5 for ; Fri, 07 Aug 2020 10:55:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=xkhnD1uY8DPhwyIZWdGamYk5L7D4QfW1rXqEO+V5I1c=; b=tz1oZUHf/AbOebVewXDvZPb7obQ7SZQy1vHfBw9QEUYWBBKpm3y8dCiJ/rfzbyI2mo AHBXyJ4lUq8+6Rn0wT9bAapx8HpnWLjEHATEjk8Jihfat24Hll2B8nhM5LxAnybMiicE m+ZWX5HEesu4P+VyXLiJs5me2g6YUfDiGw9LnUlKY/Sw0Z8NQXr2boPxNNPyTCsZpMFr oWWiQ5Ca9EBTR71p6NJHh795snZjOBRzCWxBQW+wI3xGqPLtO4ST79bRpLSb2hK1sNSN dtRP4Y2dEu+VrMu9GLTA1+6LTpOIO5AaaH4Kq+KJBLhDUA+seRP9npDtQaXewOnXpvWd cOsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=xkhnD1uY8DPhwyIZWdGamYk5L7D4QfW1rXqEO+V5I1c=; b=T6sOwn/uaKlVAohM988u1itTfiZCmHsCpdwrf8JBCgKhPyyT1oEBYJDEH0DgIFf31w gIl5hKWcOYdGVYn3dRFaAO7xfK3hUGS7k8BH4AFYSuyOvKHLkOOx0JFIoAP+myjPql0G YaZeaUlpmRBs8lJzTT2/7sFDZCPWPx8SnKfIlLkrdJOLzofoXxX+udNzt4E62G+AwXK1 8zaMbwy7Aw1Y1s0UeFD1BDGOvsh4i3fCZKEOvUQkPaiDpeX23/4Gc9VMfctblLKWcTAu HR+sAp6Et05eRsAz+ZJtpghkB889XlD254wa3sJA9GvVt2QBrsli9aptNpTYGZqunhgm wGaQ== X-Gm-Message-State: AOAM5330v7j8gFUytFL6Z7i+xNK4gn5UJoEnxebg4nULxZ47g2Z7iNG5 buESjUoC5h2GdqdNRJm5yzaf9Q== X-Received: by 2002:a17:90a:f313:: with SMTP id ca19mr15112387pjb.226.1596822934273; Fri, 07 Aug 2020 10:55:34 -0700 (PDT) Received: from [2620:15c:17:3:4a0f:cfff:fe51:6667] ([2620:15c:17:3:4a0f:cfff:fe51:6667]) by smtp.gmail.com with ESMTPSA id p10sm11764652pgn.6.2020.08.07.10.55.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2020 10:55:33 -0700 (PDT) Date: Fri, 7 Aug 2020 10:55:32 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Cfir Cohen cc: "kvm @ vger . kernel . org" , Lendacky Thomas , Singh Brijesh , Grimm Jon , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] KVM: SVM: Mark SEV launch secret pages as dirty. In-Reply-To: <20200807012303.3769170-1-cfir@google.com> Message-ID: References: <20200807012303.3769170-1-cfir@google.com> User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Aug 2020, Cfir Cohen wrote: > The LAUNCH_SECRET command performs encryption of the > launch secret memory contents. Mark pinned pages as > dirty, before unpinning them. > This matches the logic in sev_launch_update(). > > Signed-off-by: Cfir Cohen Acked-by: David Rientjes