Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp799797pxf; Thu, 8 Apr 2021 12:50:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0OmHLOMD2xXBujDlKNrNLOeh83xX1NaadewFw62RhEq0gbuH1lsey3lEI65N6VwzoyI6J X-Received: by 2002:a17:903:31c7:b029:e9:2aaa:b2d9 with SMTP id v7-20020a17090331c7b02900e92aaab2d9mr9343118ple.12.1617911439453; Thu, 08 Apr 2021 12:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617911439; cv=none; d=google.com; s=arc-20160816; b=vAvMZMu+ypUrCJvQuZPQjoW3lVqXe9OYYgHzaj7Si0LbfC41LEK3vPj7qUbpB1d7zG oUMLvT280slXYiFZoskIItaxPcysu9rlRSRiXzbKy/gLtZYVbAByNqRpfX6rMXxU8OpU EJfsme8CzYRCHm5kB9vslsfb86TFKZHTF1VcLY0rwkCxLtQwKTK6cHA9DhAW1W7MocX3 BZotRwPnvNPVomzNqFaDNHtW/Wmfoa5cF5mdAv68x/1EJPJHLfpKK9T4UsZ476hzrdkS Ws/o5D3G/vTFjvR6g172rTHH9l9KK3ZDYOqZyXmqsFkU1At/Y8u4nd7tcV/DS7NYL764 2mPw== 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=4MJeTU3WuRBkKKtsj5Ms3W6HzeeajynnG1QeCk73SOE=; b=NFM2BSI1SeQ1yGQ7XzFqb6qxnrTHr4RPJ1lT/s5Cfk3txdm+Fz8fv047tgFBzKwiwp k4IpGAE5nKd0CPwsGI6w2TGZJfmJsGSpNG2z2/aN/PhhDoaDemFuj3+BpXHujjGGryRq RgcgL6mcXvZPND/9wgdLaY4XLuqP9ME2MOOLIRlMi6zoHjzO3cbFL2A2co9eBYqvme1c JbeHr2fhS6eXgAp87BW081HLabPkDXHbRh8s17exyTbBkiTLOCL0iJ6Ih3MzV/EIl3TU 6iAmG5VQkJRYoZzmiKkTorIByF/+MSJnrdYFugyi96WXRAcVoAEImabkVzFvE3CchnJl BH6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=N9oiJDzq; 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 q5si229773pgp.36.2021.04.08.12.50.27; Thu, 08 Apr 2021 12:50:39 -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=20161025 header.b=N9oiJDzq; 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 S232435AbhDHTtr (ORCPT + 99 others); Thu, 8 Apr 2021 15:49:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231940AbhDHTtp (ORCPT ); Thu, 8 Apr 2021 15:49:45 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33107C061761 for ; Thu, 8 Apr 2021 12:49:33 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id c18so2811607iln.7 for ; Thu, 08 Apr 2021 12:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4MJeTU3WuRBkKKtsj5Ms3W6HzeeajynnG1QeCk73SOE=; b=N9oiJDzqOjGQ5UpNhPjVvIGLy1KKOWgBLhjFdvLrnWWG0o1Nnd+4PQpFD9IbTmBR6A HlqX6Sqx0ktjRUo8LVLvgIU0YEEPcsDrYj+8YrcboZNPTlAsfvGm5arCDKvKYIohrKix CX4qBQbOI2W5MWa5/JBR0JN4u29M99faGiSsYipASocmTZk0RN2NLQicHozqjYLtQPvy 8GBmDMSHd8iAH8ouqt7Qw1Fn+z5oqak4csX6xetG4bAorYN7N/SdJs3cm0YEpAYMr8qN ny0uK9s7SeWeq1ngm0n++FIJYXbyq93eI2OYTaK6YTAhXAo9mYBeSav7ymZkC+xFOku6 LbkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4MJeTU3WuRBkKKtsj5Ms3W6HzeeajynnG1QeCk73SOE=; b=Swc3p7h1H0sx6Nynp0VXOXdxm4iq/YFA0Q+9gbzlN8mDtwRV+Yx+QEu/Yv50N8uolC iZt2b7PFtG0tTb51ixczCDdAjI34975QAfwXyj3TxMDz1ME3jHgQh8ExccPHz+SMC4GD 56b+BNa9usy3RAoXscnWDflcEfrrbza9DZzihb0tNkUcIQCvjYWb+PLMPobTOSpXUtQC nyaNeciYfSypcTUXUaqNa6Qd1q8Zw0mZx2IVwk3yuV6lEFhUMELHaZfxt7DzRMzVfucZ HObUTlWeDiYjTZW1dDKVT0c3b5ZN1AiQtflvH4XVEa0VqS246FFS3AUdbJETHVxrrpjw b0vw== X-Gm-Message-State: AOAM531tlf71TFXIj1xGLxewvTy0ndPUX52i2tY1DwjSyitYWJc4HicO RcjSqOxeDfUUk49PQdcrO5bESzGZ1Xz33F5HCMvdSg== X-Received: by 2002:a05:6e02:1c07:: with SMTP id l7mr1479464ilh.110.1617911372379; Thu, 08 Apr 2021 12:49:32 -0700 (PDT) MIME-Version: 1.0 References: <20210316014027.3116119-1-natet@google.com> <20210402115813.GB17630@ashkalra_ubuntu_server> <87bdd3a6-f5eb-91e4-9442-97dfef231640@redhat.com> <936fa1e7755687981bdbc3bad9ecf2354c748381.camel@linux.ibm.com> In-Reply-To: <936fa1e7755687981bdbc3bad9ecf2354c748381.camel@linux.ibm.com> From: Steve Rutherford Date: Thu, 8 Apr 2021 12:48:56 -0700 Message-ID: Subject: Re: [RFC v2] KVM: x86: Support KVM VMs sharing SEV context To: jejb@linux.ibm.com Cc: Paolo Bonzini , Ashish Kalra , Nathan Tempelman , Tom Lendacky , X86 ML , KVM list , LKML , Sean Christopherson , David Rientjes , Brijesh Singh , dovmurik@linux.vnet.ibm.com, lersek@redhat.com, frankeh@us.ibm.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 8, 2021 at 10:43 AM James Bottomley wrote: > > On Fri, 2021-04-02 at 16:20 +0200, Paolo Bonzini wrote: > > On 02/04/21 13:58, Ashish Kalra wrote: > > > Hi Nathan, > > > > > > Will you be posting a corresponding Qemu patch for this ? > > > > Hi Ashish, > > > > as far as I know IBM is working on QEMU patches for guest-based > > migration helpers. > > Yes, that's right, we'll take on this part. > > > However, it would be nice to collaborate on the low-level (SEC/PEI) > > firmware patches to detect whether a CPU is part of the primary VM > > or the mirror. If Google has any OVMF patches already done for that, > > it would be great to combine it with IBM's SEV migration code and > > merge it into upstream OVMF. > > We've reached the stage with our prototyping where not having the OVMF > support is blocking us from working on QEMU. If we're going to have to > reinvent the wheel in OVMF because Google is unwilling to publish the > patches, can you at least give some hints about how you did it? > > Thanks, > > James Hey James, It's not strictly necessary to modify OVMF to make SEV VMs live migrate. If we were to modify OVMF, we would contribute those changes upstream. Thanks, Steve