Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6210221ybi; Wed, 29 May 2019 04:39:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3bu+ksNnsqD/QSDpEivZ+7E8iA/H+8UZW1ZryjeO/8WyP+j75snXMYFjpQEMqGW9u92PF X-Received: by 2002:a63:7:: with SMTP id 7mr139545528pga.108.1559129951234; Wed, 29 May 2019 04:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559129951; cv=none; d=google.com; s=arc-20160816; b=te5HzE4sGCJC9dv7ObNzYFiY6U6Qt7o39XYsar9w+cb4tbNrnu3/XACKdeYoVCvtCp E4CPSzEM4KHUeexZXp2MmcCWJqZnofVxQTuRB115hox6SoqYHY2cxiNriZeBOYfDLwBC CDTxOhLF8JTis5DzS/AKfXn2Uab71zb34p/gNbrbOlGdV2SY3zXQRs3sFWU+plqdQJqW PugknV5c5DQzeC3MhRlYDN/qSJIDn4k5S0mb956oVIUdEheHEjT1gQf8xFyvauGGsQBR y/t2ATzJud+znYroGf4PRatlEAHgbuk0Jvnts1DNgH2H5bXFJkA9rgttS7P2Lj+GwKHi EAKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=Er/cRa3iGTidcU+BU7wOdALzLvtc6zZW0xFwiPBDvo8=; b=tkj8bEY8yRHClgiPuZ1BpeZnkdQJhDmwrxMysIkKOv2E757dy5LW66NaNhh4bzuYXS yth06xm/zuJhGkMhBSKXvOzqNvRFcOFrsCBy77QR9vCangrn7XTqljxQ5vW2mj2QeRDD ws7PS3aIfbubKtpy4FHk2C66NWe1K23PIhwAgcPiR1/U1CICcu5iP7TUg7YA/8Mmp2/Y nRLVU/Qty8LsHOnYRt1OCmwchDVhbOlZ95++uikI1lOAblHqbUwOKC0Iw/Gib16CBC5p mboX+Sjv1uxMWQwqbTYXVLvM5qpbqb40M9mO6tdtgSse1E6lDXUgsv5acE0iDD+SgW3G tHvA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y25si18246232pga.81.2019.05.29.04.38.53; Wed, 29 May 2019 04:39:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726784AbfE2Lhl (ORCPT + 99 others); Wed, 29 May 2019 07:37:41 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35532 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725894AbfE2Lhk (ORCPT ); Wed, 29 May 2019 07:37:40 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4TBWvFF056930 for ; Wed, 29 May 2019 07:37:39 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ssr7ftvdy-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 29 May 2019 07:37:38 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 May 2019 12:37:36 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 29 May 2019 12:37:27 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x4TBbPjW36307154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 May 2019 11:37:25 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8D45AA4040; Wed, 29 May 2019 11:37:25 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 840C1A4055; Wed, 29 May 2019 11:37:24 +0000 (GMT) Received: from [10.0.2.15] (unknown [9.152.222.40]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 29 May 2019 11:37:24 +0000 (GMT) Subject: Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device To: Alex Williamson Cc: "cjia@nvidia.com" , "kvm@vger.kernel.org" , "aik@ozlabs.ru" , "Zhengxiao.zx@alibaba-inc.com" , "shuangtai.tst@alibaba-inc.com" , "qemu-devel@nongnu.org" , "kwankhede@nvidia.com" , "eauger@redhat.com" , Tony@pps.reinject, "Liu, Yi L" , "eskultet@redhat.com" , "Yang, Ziye" , "mlevitsk@redhat.com" , Halil Pasic , "libvir-list@redhat.com" , "arei.gonglei@huawei.com" , "felipe@nutanix.com" , "Ken.Xue@amd.com" , "Tian, Kevin" , Yan Zhao , "dgilbert@redhat.com" , "zhenyuw@linux.intel.com" , "jonathan.davies@nutanix.com" , "intel-gvt-dev@lists.freedesktop.org" , "Liu, Changpeng" , Krowiak , Pierre Morel , "cohuck@redhat.com" , "linux-kernel@vger.kernel.org" , "Wang, Zhi A" , "dinechin@redhat.com" , "He, Shaopeng" References: <20190506014514.3555-1-yan.y.zhao@intel.com> <20190506014904.3621-1-yan.y.zhao@intel.com> <20190507151826.502be009@x1.home> <20190508112740.GA24397@joy-OptiPlex-7040> <20190508152242.4b54a5e7@x1.home> <5eac912c-e753-b5f6-83a4-b646f991d858@linux.ibm.com> <20190514093140.68cc6f7a@x1.home> From: Boris Fiuczynski Date: Tue, 28 May 2019 22:57:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190514093140.68cc6f7a@x1.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19052911-0016-0000-0000-000002809C8F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19052911-0017-0000-0000-000032DDACFC Message-Id: <0c1f5f03-1895-b9a2-999f-f611dd295732@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-05-29_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1905290078 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/14/19 5:31 PM, Alex Williamson wrote: > On Wed, 8 May 2019 17:27:47 +0200 > Boris Fiuczynski wrote: > >> On 5/8/19 11:22 PM, Alex Williamson wrote: >>>>> I thought there was a request to make this more specific to migration >>>>> by renaming it to something like migration_version. Also, as an >>>>> >>>> so this attribute may not only include a mdev device's parent device info and >>>> mdev type, but also include numeric software version of vendor specific >>>> migration code, right? >>> It's a vendor defined string, it should be considered opaque to the >>> user, the vendor can include whatever they feel is relevant. >>> >> Would a vendor also be allowed to provide a string expressing required >> features as well as containing backend resource requirements which need >> to be compatible for a successful migration? Somehow a bit like a cpu >> model... maybe even as json or xml... >> I am asking this with vfio-ap in mind. In that context checking >> compatibility of two vfio-ap mdev devices is not as simple as checking >> if version A is smaller or equal to version B. > > Two pieces to this, the first is that the string is opaque exactly so > that the vendor driver can express whatever they need in it. The user > should never infer that two devices are compatible. The second is that I agree. > this is not a resource availability or reservation interface. The fact I also agree. The migration_version (version in this case is not really a good fit) is a summary of requirements the source mdev has which a target mdev needs to be able to fulfill in order to allow migration. The target mdev already exists and was already configured by other means not involved in the migration check process. Using the migrations_version as some kind of configuration transport and/or reservation mechanism wasn't my intention and IMHO would both be wrong. > that a target device would be compatible for migration should not take > into account whether the target has the resources to actually create > such a device. Doing so would imply some sort of resource reservation > support that does not exist. Matrix devices are clearly a bit > complicated here since maybe the source is expressing a component of > the device that doesn't exist on the target. In such a "resource not > available at all" case, it might be fair to nak the compatibility test, > but a "ok, but resource not currently available" case should pass, > imo. Thanks, > > Alex > > -- > libvir-list mailing list > libvir-list@redhat.com > https://www.redhat.com/mailman/listinfo/libvir-list > -- Mit freundlichen Grüßen/Kind regards Boris Fiuczynski IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Matthias Hartmann Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294