Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5173882pxb; Tue, 28 Sep 2021 12:06:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXRTfADh62YEo/Z5ujjQMA80sPgAK0iD9u6e3fUArC9UqTP13kc1AoeFT0rQDaWK+PPW1t X-Received: by 2002:aa7:9f03:0:b0:447:dd09:6dda with SMTP id g3-20020aa79f03000000b00447dd096ddamr6811546pfr.36.1632856015823; Tue, 28 Sep 2021 12:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632856015; cv=none; d=google.com; s=arc-20160816; b=J+W1qC/OjrzuV81+dXRFSOnyJPZOZ9xDKThoKTQZE9eZMKDtweAeJg5m7vPxQaUG/D at73HyVFK9k3+qi8Y7MK2QSAThiXxd1hRDPajylboY1haqMgroN3jWfcgwKyZbcI0q4m lz5oqZ96P9Zv0kN/QMRzX+En1Ur0v+4p8PDb1AN4c2PPZBoNNBmXYEEDoIt3kQ7X6rak VBMLiYu7JPKbA4/rmDVQsq/AcVblrlQ/OQz5Dspf3cXYbjaPI/6YPtSTdJnLlrnJc8iz Ixkll00ouEHpyaEvekxgS+yr/Toxx4TqSsPcU1Tp4Ll2OA+pE4s3siI1tDqihgQV2Tvw De6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LYaPMO4zSUN63L5x5xUSR1CDiXdGr7bJrgBZxfWWnRM=; b=MSU16KmoeETWVJ67KedNShz7b4+CbTTNWAWNJ+9651RqhIDx/eN5Z6VmRsOg2tHRdg Dc/Jp34itkkh+LYVFkAxG5kvEUxADFJ3CHW1OKa+B4P/QFEo4+GaqXT7K8fgbey8HzFW ZjCHKJgpt7albfJKIf+JhRa6hvaXieRW2/fgb6sLj7y6NNHlEykBykgz50mwe10GPicE 9RSGsFWY+Zg4q6R9zcMwsty+rNRN7nujmFQLj2NALQaM2cbJtuMUcrNxGn43lLRv1vny 7JbMm+//XvDUUl+7IM0GBBLZTmIToLpyF5arl+/DxKno5fjtv/+vV9CxD6S7PDAJ7Mc/ CFVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=SGJcdHCy; 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 y15si11299166pll.228.2021.09.28.12.06.34; Tue, 28 Sep 2021 12:06:55 -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=20210112 header.b=SGJcdHCy; 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 S242353AbhI1THZ (ORCPT + 99 others); Tue, 28 Sep 2021 15:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbhI1THY (ORCPT ); Tue, 28 Sep 2021 15:07:24 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8AAAC06161C for ; Tue, 28 Sep 2021 12:05:44 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id e144so3378129iof.3 for ; Tue, 28 Sep 2021 12:05:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LYaPMO4zSUN63L5x5xUSR1CDiXdGr7bJrgBZxfWWnRM=; b=SGJcdHCygArkZYEIETz/wT+50dTV5xtQ1lZdrl9rOa78dS1YvLlQOq3YOhDQdB97q1 zo8M2ixafgU9SNvjwIFhI1+ygeNugw2tAsCo1DtZ9Ns6CFBTlUYmpgmZbNEO8VsSohge qr7r/bBX45IiZeZC78iRqPy0U2KLBmJgPya+Hj8/CIo4U221V03qlABGqt5MjPF1O7Te a3MTnKC+oOm0rCt+xLVcKP8X84tunJnE0eu2WPvm/uyOSlzgrEh6u702TQ35iyneOI4b Sq2Y06PbIVovlsYid4ZzH/6ZdKBPO7LUN76gbJWOg/6+4RsAFF9vK/0dTYWDpAOkGyK/ jvoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LYaPMO4zSUN63L5x5xUSR1CDiXdGr7bJrgBZxfWWnRM=; b=dikGviVCeAGpSjTU44ETzG5D0GD7DthY2s8cJ9j6zmwVaO+N0XxPieGh1Fu39k49Ev WWt/DM5A+4+BCP6akl7AhBcETDl5LFt/Vk4OV0ipA0BkXHbc4P/SNlXTvSPv8xwRDh5V 4gmN+nNqEQfkBy3neLacb0psGZQaZetEzIjIUuBSoAWAoSfFSm0+zaaklMaAYtU/4BMy 24IUs9NtO5j/vOJ0FmfuvJk8rVuIz/LR080+Bg7ssijHLInc+IV7z932Er2WC/tpMoth frTPztt+w2CMGsR8t4BOLX9O5PLIILd6AeVrwy1EELwjc/Amm58hIA/BlML1/bJ9StSv Oq5g== X-Gm-Message-State: AOAM530WrwgG3fGjXdqHVFVF/xrEy5W8DuPBU9OP6vC/fx26bayXfAdZ 6n6WzsbBbXQ4xmYHk9Co+pFiDqKdNoQOyl80a6N83A== X-Received: by 2002:a02:5444:: with SMTP id t65mr6164748jaa.42.1632855943923; Tue, 28 Sep 2021 12:05:43 -0700 (PDT) MIME-Version: 1.0 References: <6fd25c749205dd0b1eb492c60d41b124760cc6ae.1629726117.git.ashish.kalra@amd.com> <20210921095838.GA17357@ashkalra_ubuntu_server> <20210922121008.GA18744@ashkalra_ubuntu_server> In-Reply-To: From: Steve Rutherford Date: Tue, 28 Sep 2021 12:05:07 -0700 Message-ID: Subject: Re: [PATCH v6 1/5] x86/kvm: Add AMD SEV specific Hypercall3 To: Borislav Petkov Cc: Ashish Kalra , Sean Christopherson , pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, joro@8bytes.org, thomas.lendacky@amd.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, brijesh.singh@amd.com, dovmurik@linux.ibm.com, tobin@linux.ibm.com, jejb@linux.ibm.com, dgilbert@redhat.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 22, 2021 at 6:54 AM Borislav Petkov wrote: > > On Wed, Sep 22, 2021 at 12:10:08PM +0000, Ashish Kalra wrote: > > Then isn't it cleaner to simply do it via the paravirt_ops interface, > > i.e, pv_ops.mmu.notify_page_enc_status_changed() where the callback > > is only set when SEV and live migration feature are supported and > > invoked through early_set_memory_decrypted()/encrypted(). > > > > Another memory encryption platform can set it's callback accordingly. > > Yeah, that sounds even cleaner to me. If I'm not mistaken, this is what the patch set does now?