Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp499616pxb; Wed, 22 Sep 2021 06:58:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNIZQyH3bZN1mS+RDmc+YlIiBiDUc6OzPMtgNtnReEcSWDW9fN2JYWu0VJ3OyuCt7kpo9c X-Received: by 2002:a17:906:b104:: with SMTP id u4mr42917252ejy.201.1632319088324; Wed, 22 Sep 2021 06:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632319088; cv=none; d=google.com; s=arc-20160816; b=wGLv9aA+zQMPKCB32UR137zgUWL0krJBihAsAKoXlHuY6Wldy+839KRH1X4YMVL5r2 mlDe0f2zSybkXpoCkf1skYPkrYlQDzprPr5NCZYH5gSG5IAL0yawriRKkFpiESHX1CMn 0Rci8aWICB7Nj5lxGts+2WmMS3UJaq4BgYnc2IvEaKrJvdaxT8EFk2r8OeoNELNKI3hF XA4vl09gJAb52E4qdJy93rhdvgVcwAfL53jxNdfOVE7lAsPGZfcCi4Q2jMx4aVfaJmj/ T/PhHUCyZA070444j3O+jg6VVA+nrtFPkiNnXI49hEENU3WAkfEaMhZjUPFQGNx/WLHs R6hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AiNJ05ptDQZvBWlLVMY8+uuVH6308VUGaXejpuvkXds=; b=ElX6l8ELPKS9Pw+zOXG14zI97LM3XGUiSw2A/7z9Ovs3rGhqjKVKD8B5oXqo5OKyec KA1p4yYUy/tZpOfmXC3R5RYZciT7WdBFplaRnu1A24BOID5pWr9XV4FLiGReZSB1dLTG aqMw699iLaKc0Z++0pp2nELrl8w2hb91spie1kwXvTrHF5PQwZR1QkVHnPe/TkNZat6x uAkJLZ+WrJzaPqokPZHbk+iSJvtlQR9rq+QMPPLUmqjMnSO1Yntt7de/FEMniYzW6DGU Ax7NNsMz246NzZYhjjhrFk8t4SF9hstngO11iGNLy95w69q5otGjvTEOENRfYpH5Ay6C BJ4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=G3aT8PSd; 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 s7si2711453ejs.402.2021.09.22.06.57.35; Wed, 22 Sep 2021 06:58:08 -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=G3aT8PSd; 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 S234113AbhIVNzq (ORCPT + 99 others); Wed, 22 Sep 2021 09:55:46 -0400 Received: from mail.skyhub.de ([5.9.137.197]:41376 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233479AbhIVNzo (ORCPT ); Wed, 22 Sep 2021 09:55:44 -0400 Received: from zn.tnic (p200300ec2f0efa00329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:fa00:329c:23ff:fea6:a903]) (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 6F8851EC0537; Wed, 22 Sep 2021 15:54:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1632318848; 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=AiNJ05ptDQZvBWlLVMY8+uuVH6308VUGaXejpuvkXds=; b=G3aT8PSdyMqfAojp8ManX9HaECqAU15N6iJXV2Vg/CpSgwC7gfx4j5B8F5eR5jeJ/NRoJg PQTJj7yRJ2GDrAjjQfW9Sf40asscQ+YiYYq8tK8SQCkVnwft0UC34hVVPYZOuoMC2dpMWW Z7AZPT6WKxZVXa+/4Nesnrc1Gy/Nzdg= Date: Wed, 22 Sep 2021 15:54:02 +0200 From: Borislav Petkov To: Ashish Kalra Cc: Sean Christopherson , Steve Rutherford , 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 Subject: Re: [PATCH v6 1/5] x86/kvm: Add AMD SEV specific Hypercall3 Message-ID: References: <6fd25c749205dd0b1eb492c60d41b124760cc6ae.1629726117.git.ashish.kalra@amd.com> <20210921095838.GA17357@ashkalra_ubuntu_server> <20210922121008.GA18744@ashkalra_ubuntu_server> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210922121008.GA18744@ashkalra_ubuntu_server> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette