Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2020672imm; Sat, 9 Jun 2018 06:24:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIPqk3xN+Qy7t/FZbewvC8zf7c2vK1nsdV0Gb189zGVXoDpvhUwVnPr/XobD3xlgI9RACC8 X-Received: by 2002:a17:902:7d89:: with SMTP id a9-v6mr10781917plm.238.1528550640201; Sat, 09 Jun 2018 06:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528550640; cv=none; d=google.com; s=arc-20160816; b=s93w6o2RmORb+HyOSclT7FH19ObddqYHd8waFcp+a9c7EmwMR2ozjOTWDJqrOmInax x5ptDG1Ux4AVouUgvviep++zCU2E1AmQbe7lyKeG+HgNhNc3Kca5V8I9RhnNkLF05CaJ QRhH9PMkGzd4NibQdMaU6Gs+VHWN101c6OsqLyymGmG7mCForqx3WtA4wvSZJj+nNuGD Gtj7plDjigYpNRgz85qgEJ5sgpupCxRJn9v8HpwyVqQbGb8XnNlYvoZg9YwAMZVMqvTG VzYEhoZDTVHkjaiPFoTT748dgMDLNmcUnbiRy/lEDm1S6Jz1dp05qiqlEk6vBLT1o3aS c88g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=mdyPR7rTst9Dle9mssrHBEZ/GDo5ATHJqBORRl7LceI=; b=SONZMykx1ckx6pLQLVLgtvF+8hcgEBdoaDXuNLpcOTVj6HyWcb2mL6ZvR+uZgYITYG 6XbSbAIKy3zqLnhtBVIAIzPDF2mgDg3pDBIBZ3brHCjwHOZmbfJFgh3hAbQ659w1DR64 BJjlx1L0BFW9djE8awmOr8+SbPU/wV2bQeK4ZJ+3r8P2KhXXTJee44c1ZuHWFpsUmsQT I268BIwTk3XDCQBhNf+clAUEEFfpF/W9sGXakPvzh2WBrbt/54AfRcGVqiXMJBbUyFfz VJg1gvhidbWpJifUQqoojO08eBqivtECI6QdaI8SN6FQRFIvV2PxyLMdP3iwXav+ZFJl g//w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4-v6si36715633pfl.31.2018.06.09.06.23.45; Sat, 09 Jun 2018 06:24:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753300AbeFINWC (ORCPT + 99 others); Sat, 9 Jun 2018 09:22:02 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40550 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753203AbeFINWB (ORCPT ); Sat, 9 Jun 2018 09:22:01 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4A6841435; Sat, 9 Jun 2018 06:22:01 -0700 (PDT) Received: from big-swifty.misterjones.org (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 705C03F557; Sat, 9 Jun 2018 06:21:55 -0700 (PDT) Date: Sat, 09 Jun 2018 14:21:47 +0100 Message-ID: <86tvqc8590.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Jon Masters Cc: , , , Will Deacon , Catalin Marinas , Thomas Gleixner , Andy Lutomirski , Kees Cook , Greg Kroah-Hartman , Christoffer Dall , Randy Dunlap , Dominik Brodowski , Julien Grall , Mark Rutland Subject: Re: [PATCH v2 12/17] arm64: KVM: Add ARCH_WORKAROUND_2 support for guests In-Reply-To: <98318e6c-adcd-ddb8-ad92-e7c1fa771c84@jonmasters.org> References: <20180529121121.24927-1-marc.zyngier@arm.com> <20180529121121.24927-13-marc.zyngier@arm.com> <98318e6c-adcd-ddb8-ad92-e7c1fa771c84@jonmasters.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") 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 Sat, 09 Jun 2018 14:09:35 +0100, Jon Masters wrote: > > On 05/29/2018 08:11 AM, Marc Zyngier wrote: > > In order to offer ARCH_WORKAROUND_2 support to guests, we need > > a bit of infrastructure. > > > > Let's add a flag indicating whether or not the guest uses > > SSBD mitigation. Depending on the state of this flag, allow > > KVM to disable ARCH_WORKAROUND_2 before entering the guest, > > and enable it when exiting it. > > ...Live migration? Work in progress. M. -- Jazz is not dead, it just smell funny.