From: Steven Price Subject: Re: [PATCH v5 2/3] KVM: arm/arm64: Add save/restore support for firmware workaround state Date: Mon, 15 Apr 2019 15:04:20 +0100 Message-ID: <82eb4d1f-004a-8621-7efc-0545fded88ac@arm.com> References: <20190415111542.119788-1-andre.przywara@arm.com> <20190415111542.119788-3-andre.przywara@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id DCF774A4C3 for ; Mon, 15 Apr 2019 10:04:24 -0400 (EDT) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w0TWLQvfxuV0 for ; Mon, 15 Apr 2019 10:04:23 -0400 (EDT) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 7FFE84A486 for ; Mon, 15 Apr 2019 10:04:23 -0400 (EDT) In-Reply-To: <20190415111542.119788-3-andre.przywara@arm.com> Content-Language: en-GB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Andre Przywara , Marc Zyngier , Christoffer Dall Cc: kvm@vger.kernel.org, Jeremy Linton , kvmarm@lists.cs.columbia.edu, Dave Martin , linux-arm-kernel@lists.infradead.org List-Id: kvmarm@lists.cs.columbia.edu On 15/04/2019 12:15, Andre Przywara wrote: > KVM implements the firmware interface for mitigating cache speculation > vulnerabilities. Guests may use this interface to ensure mitigation is > active. > If we want to migrate such a guest to a host with a different support > level for those workarounds, migration might need to fail, to ensure that > critical guests don't loose their protection. > > Introduce a way for userland to save and restore the workarounds state. > On restoring we do checks that make sure we don't downgrade our > mitigation level. > > Signed-off-by: Andre Przywara Reviewed-by: Steven Price Thanks, Steve