Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4635502ybb; Tue, 24 Mar 2020 02:24:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvIf2Wqd2JqtBjcJMKEwsO8+oxZ6LAvIOmcALSD+ZMNQnLAS+7NXUB+T/AObX6+IKY3TUai X-Received: by 2002:aca:4f57:: with SMTP id d84mr2549470oib.161.1585041872977; Tue, 24 Mar 2020 02:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585041872; cv=none; d=google.com; s=arc-20160816; b=c95rPjt3gKDwmjwSy+myy2g55UiX+myaodj6vE3rvaau1i7xLSP2KWvZ6VmNUEMyTe OWiR2nBfZmhphIrSIkdzFHgjZUzGt7n0cAjKFk2KQ0G77oPkLeOaFDO13Rb+E8ec+Kw9 AuqATETXBF1jr5uc0ZvBPfkNJnS9FXyGV8N1LSAzRNV8qvmV56NCePrV8Ebq94ZI9j42 mmb272DgepTIl8xcv+Y2WieR29By2vnO3WIdDWqVjRLHsvbO7L9IepXNX/m56EBKzUkV soQlUh8APb8M0O8DDA+l2L0VN07aPW58mHbcRfDdshqd+BpFNgLfWEkS0st9ZoYe+oPg uJ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rxSCaZCXJ96hzA7wzkiPyP7I+uQlkEYIo0ZxkJvFYKs=; b=K9SAQSEhyCZ5dVLTytFZfzDu+mZih3+WXo4lf5JNwhrMOqoSoEBCv2KThnLKWlCMMk NNdVRvQ+XODh2n+mDUbpW3UjvvUQu8oJTTlpNGNxOC7GYRlXlQ47xnOFCc2KAtJ+/SRI 327TLqbtWm74IbPt/+gFOL7bzYeJ31AaUJOpaFj9jtNZb87IrYQ1GcowCzS4ySIZjAjV e2tYKp93hBtHnY8BvFf+oS3kDxsz8ciKKvLbQ5itVbLrl7nwF+AproVXjIoG7HHJOIw9 KCvB+sBTR43NtmCjoQF1NbsQ04o+SaVw6iUsCVk0dTrM5fj7bJVJcDNW2W5mpQjVoSFi XPJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IvJMcW1E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si9330971oif.161.2020.03.24.02.24.19; Tue, 24 Mar 2020 02:24:32 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IvJMcW1E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbgCXJXy (ORCPT + 99 others); Tue, 24 Mar 2020 05:23:54 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:33068 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbgCXJXy (ORCPT ); Tue, 24 Mar 2020 05:23:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585041832; 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: in-reply-to:in-reply-to:references:references; bh=rxSCaZCXJ96hzA7wzkiPyP7I+uQlkEYIo0ZxkJvFYKs=; b=IvJMcW1EmcrY0187zW4YKDEYznHdQOQT/sL5OVrdffgc3quAw+I7+18SQ2c66zqCS60gQQ nKOsqNz1KWxWV3JALP8y25yY+PwsCqX41SwYt1Rcr4/Maoo7vnYovU8ml0Pesy3qC9piPi VuR69R5cEhNtlWohIqwr18FZeqeikvo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-66-lpHPdBoCMjeuvmAaPQvy0g-1; Tue, 24 Mar 2020 05:23:51 -0400 X-MC-Unique: lpHPdBoCMjeuvmAaPQvy0g-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5623D1B2C980; Tue, 24 Mar 2020 09:23:48 +0000 (UTC) Received: from work-vm (ovpn-114-253.ams2.redhat.com [10.36.114.253]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 953BB5DA66; Tue, 24 Mar 2020 09:23:37 +0000 (UTC) Date: Tue, 24 Mar 2020 09:23:31 +0000 From: "Dr. David Alan Gilbert" To: Yan Zhao Cc: Alex Williamson , "intel-gvt-dev@lists.freedesktop.org" , "aik@ozlabs.ru" , "Zhengxiao.zx@alibaba-inc.com" , "shuangtai.tst@alibaba-inc.com" , "qemu-devel@nongnu.org" , "eauger@redhat.com" , "Liu, Yi L" , "Yang, Ziye" , "mlevitsk@redhat.com" , "pasic@linux.ibm.com" , "felipe@nutanix.com" , "Liu, Changpeng" , "Ken.Xue@amd.com" , "jonathan.davies@nutanix.com" , "He, Shaopeng" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "libvir-list@redhat.com" , "cohuck@redhat.com" , "Tian, Kevin" , "zhenyuw@linux.intel.com" , "Wang, Zhi A" , "cjia@nvidia.com" , "kwankhede@nvidia.com" , "berrange@redhat.com" , "dinechin@redhat.com" Subject: Re: [PATCH v4 0/2] introduction of migration_version attribute for VFIO live migration Message-ID: <20200324092331.GA2645@work-vm> References: <20190531004438.24528-1-yan.y.zhao@intel.com> <20190603132932.1b5dc7fe@x1.home> <20190604003422.GA30229@joy-OptiPlex-7040> <20200323152959.1c39e9a7@w520.home> <20200324035316.GE5456@joy-OptiPlex-7040> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200324035316.GE5456@joy-OptiPlex-7040> User-Agent: Mutt/1.13.3 (2020-01-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Yan Zhao (yan.y.zhao@intel.com) wrote: > On Tue, Mar 24, 2020 at 05:29:59AM +0800, Alex Williamson wrote: > > On Mon, 3 Jun 2019 20:34:22 -0400 > > Yan Zhao wrote: > > > > > On Tue, Jun 04, 2019 at 03:29:32AM +0800, Alex Williamson wrote: > > > > On Thu, 30 May 2019 20:44:38 -0400 > > > > Yan Zhao wrote: > > > > > > > > > This patchset introduces a migration_version attribute under sysfs of VFIO > > > > > Mediated devices. > > > > > > > > > > This migration_version attribute is used to check migration compatibility > > > > > between two mdev devices of the same mdev type. > > > > > > > > > > Patch 1 defines migration_version attribute in > > > > > Documentation/vfio-mediated-device.txt > > > > > > > > > > Patch 2 uses GVT as an example to show how to expose migration_version > > > > > attribute and check migration compatibility in vendor driver. > > > > > > > > Thanks for iterating through this, it looks like we've settled on > > > > something reasonable, but now what? This is one piece of the puzzle to > > > > supporting mdev migration, but I don't think it makes sense to commit > > > > this upstream on its own without also defining the remainder of how we > > > > actually do migration, preferably with more than one working > > > > implementation and at least prototyped, if not final, QEMU support. I > > > > hope that was the intent, and maybe it's now time to look at the next > > > > piece of the puzzle. Thanks, > > > > > > > > Alex > > > > > > Got it. > > > Also thank you and all for discussing and guiding all along:) > > > We'll move to the next episode now. > > > > Hi Yan, > > > > As we're hopefully moving towards a migration API, would it make sense > > to refresh this series at the same time? I think we're still expecting > > a vendor driver implementing Kirti's migration API to also implement > > this sysfs interface for compatibility verification. Thanks, > > > Hi Alex > Got it! > Thanks for reminding of this. And as now we have vfio-pci implementing > vendor ops to allow live migration of pass-through devices, is it > necessary to implement similar sysfs node for those devices? > or do you think just PCI IDs of those devices are enough for libvirt to > know device compatibility ? Wasn't the problem that we'd have to know how to check for things like: a) Whether different firmware versions in the device were actually compatible b) Whether minor hardware differences were compatible - e.g. some hardware might let you migrate to the next version of hardware up. Dave > Thanks > Yan > > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK