Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1036970pxa; Wed, 5 Aug 2020 20:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz538QDk4HfmDGzwg1LCgJLMNcTV8sdes65Qrt3TH5222Brh0bsJqu0RgNJCZi1eLgCr2Sb X-Received: by 2002:aa7:c6c3:: with SMTP id b3mr2138167eds.215.1596684311192; Wed, 05 Aug 2020 20:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596684311; cv=none; d=google.com; s=arc-20160816; b=mh1Y4X6IfcTkeSi7cftVJGfQmU/8/HnSjnWw7gDfr+BU64x8UB0hopf6BW3LYPmNgc sL5Wgfxb2nnJLsoatYZu4kZT2N7lcto6JzvZxF4nOH28pASK8aCYp9ZagOUV5AFoUCPd QFaHhfv/Au2p3yk+OAHtOrzah2/rRRqqyYhKjOVTUfyi9HzQUTt7W9L3IBceNTyezOa4 sLJXpANod/9fiVzprec7hMR7o8JtSqHNor3lzauh6KlHXFDZR8fMUcFrkbiMZeXyDA9i vjlJH1PbblTajq8CE8j58s2XcpQ67rSC9BegERiCULJPigLH+OhE7muw8iH9sSN4iEZC Oyrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=JcQQIKoEvShj7Nz7KJ7jpLfenb6dvm9IOTqVH0VUY/E=; b=wJPe2nuO0QUieQDm5d2Ia5xG/oRshrxyRJNsOUL94Qaz7N/i6I2k3yWN9d902cMtP9 JS9bquFwyfHNAADYOIQi/AtXX6y0YhFZtaRp3OiAcXc34vDQxWGbe/SAg1SlRMc+Ad2R GMKKpQ6cYoZ+vLsnfhis+Uj9uu8Sw6ZUnHdJ6VcLeNNFQn9pZ8h08sBjUjY6JsNv+y6+ rl2YuV3MOUlmS8N51c3tGoA4OebRWFU50tB0jqvBdAHUCYNM33ybHeWkJQlHZDw+ZjRb mR/gWU9JBb2xwOGxo/2HNEwufsqju+bhKi7oJ0nLjY34cVTq1N42lDwl9aksZHrbVFkn yNRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XX6JaTbD; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly18si2482141ejb.247.2020.08.05.20.24.48; Wed, 05 Aug 2020 20:25:11 -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=@redhat.com header.s=mimecast20190719 header.b=XX6JaTbD; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728188AbgHFDXQ (ORCPT + 99 others); Wed, 5 Aug 2020 23:23:16 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:30386 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726817AbgHFDXQ (ORCPT ); Wed, 5 Aug 2020 23:23:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596684194; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JcQQIKoEvShj7Nz7KJ7jpLfenb6dvm9IOTqVH0VUY/E=; b=XX6JaTbDQvA7AZafGqAJQTyYjpl55bYh7lCzEA0IzlG79g/WHUK7r7lxpIPEX0uf9HjT2Z 2/rgV5cot5XxmYXtcYrDMm1tj8rvUuMGgwsOXBPmFw+NVYRsXBStiNpFNJfhOTUNnunBxY JdJ/Npa64QKotmTd8KTFmcLL3TeQLI4= 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-378-JY9jGRHGNOugXsQyM-D3lg-1; Wed, 05 Aug 2020 23:23:12 -0400 X-MC-Unique: JY9jGRHGNOugXsQyM-D3lg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BDE4F8017FB; Thu, 6 Aug 2020 03:23:11 +0000 (UTC) Received: from [10.72.13.140] (ovpn-13-140.pek2.redhat.com [10.72.13.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB56D7B92E; Thu, 6 Aug 2020 03:23:07 +0000 (UTC) Subject: Re: [PATCH v2 19/24] vdpa: make sure set_features in invoked for legacy To: "Michael S. Tsirkin" Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org References: <20200803205814.540410-1-mst@redhat.com> <20200803205814.540410-20-mst@redhat.com> <9e47d227-f220-4651-dcb9-7a11f059a715@redhat.com> <20200805073929-mutt-send-email-mst@kernel.org> From: Jason Wang Message-ID: Date: Thu, 6 Aug 2020 11:23:05 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200805073929-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/8/5 下午7:40, Michael S. Tsirkin wrote: > On Wed, Aug 05, 2020 at 02:14:07PM +0800, Jason Wang wrote: >> On 2020/8/4 上午5:00, Michael S. Tsirkin wrote: >>> Some legacy guests just assume features are 0 after reset. >>> We detect that config space is accessed before features are >>> set and set features to 0 automatically. >>> Note: some legacy guests might not even access config space, if this is >>> reported in the field we might need to catch a kick to handle these. >> I wonder whether it's easier to just support modern device? >> >> Thanks > Well hardware vendors are I think interested in supporting legacy > guests. Limiting vdpa to modern only would make it uncompetitive. My understanding is that, IOMMU_PLATFORM is mandatory for hardware vDPA to work. So it can only work for modern device ... Thanks > > >