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 X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABBB9C4741F for ; Fri, 25 Sep 2020 04:54:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 77826221EC for ; Fri, 25 Sep 2020 04:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601009680; bh=h7FyJwa0j7bb050Q3boEyo/OC0K0iQoDqaVnBjWhwb0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=eucDstE4dXIj0kivB7d5DcsC6ybxYN+zN7OEpfqSoj89ibbCmCbFmx1xeodU3g7KF WJ5y+Qg6Gc2VCYZP65HCB/uLynmR/oItu8y5uQ0KW3Uy2HkO8OgwUUf+2LIBIs0G3L uxYylrEz6WIJhRK0/LyYQt3yQBhpMdK6XmA+DqXw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727256AbgIYEyj (ORCPT ); Fri, 25 Sep 2020 00:54:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:57434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbgIYEyi (ORCPT ); Fri, 25 Sep 2020 00:54:38 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AF77321D7A; Fri, 25 Sep 2020 04:54:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601009678; bh=h7FyJwa0j7bb050Q3boEyo/OC0K0iQoDqaVnBjWhwb0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lBSJt+Wd4aZELMIXz5Ev3oyhWbFQWFTHiR8hT3rkVqEkWtvjyv6nDvgXErjKpeGhO sX1tCweOVdCAZDDjk0fpgE5Vvy5PfyWS2mSL71zrwqIKDkj8xI7kE4y3RkDP6qVs8s m6YYPsegrR7QlhjwHfzpuY3BmAo2KaEEnnG8uZBw= Date: Fri, 25 Sep 2020 06:54:34 +0200 From: Greg KH To: Cfir Cohen Cc: "kvm @ vger . kernel . org" , Lendacky Thomas , Singh Brijesh , Grimm Jon , David Rientjes , 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, stable@vger.kernel.org Subject: Re: [PATCH] KVM: SVM: Mark SEV launch secret pages as dirty. Message-ID: <20200925045434.GA602062@kroah.com> References: <20200807012303.3769170-1-cfir@google.com> <20200925020011.1159247-1-cfir@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200925020011.1159247-1-cfir@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 07:00:11PM -0700, 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_data(). > > Fixes: 9c5e0afaf157 ("KVM: SVM: Add support for SEV LAUNCH_SECRET command") > Signed-off-by: Cfir Cohen > --- > Changelog since v2: > - Added 'Fixes' tag, updated comments. > Changelog since v1: > - Updated commit message. > > arch/x86/kvm/svm/sev.c | 26 +++++++++++++++++--------- > 1 file changed, 17 insertions(+), 9 deletions(-) > This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.