Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2921700ybn; Thu, 26 Sep 2019 20:54:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMAoZFM9du0ygH+kFaeMU0VJ0Szd6ikVJa/4v6JSFSue/xumNSYsmpepY+ivm0UJriEY2H X-Received: by 2002:a05:6402:1583:: with SMTP id c3mr2333436edv.286.1569556453099; Thu, 26 Sep 2019 20:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569556453; cv=none; d=google.com; s=arc-20160816; b=la2XUTbArhskJEiHo8Q/O8rySrr1q7NsCK1tSVfYIheVPLIrwXltiGUdC/dll+VbDR 8luhARsIKZWOCFZi+Xasjjuhw4DprJv78cAFkfnfPML46LrS+dIE9bqHfofYcWib+zz8 gTsfVcKC8GZv5BBzklXZD/3fXzztEO8mYxHGHoGce58m3Pf5uUityy22zq+rYRi+m4s5 medNmbdnp/JOtfIRv7S6sl7qINSQb22EazyQ1xWack8pBuwhDqMkalRz9EhI5rKKzfUz aQQqT2UTrxkUmdu6QLqQc8dStF4q7KucRJW3GO21mQqY0UIQ/7IOylRQb4wvcMD0WrZc Jc3Q== 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:references:cc:to:from:subject; bh=6c5tWIyc+ztsO2K31BESoiqqzcFB4DvAo4mMwAD+lG4=; b=mnh8ps1BwSed9+ti0x91hjzXICZL5He+GMiel81qbTQs3tx7LMNm0uvq8NA3QkoZ72 QBY+AshqElMSQiQeo5rH1I9tm4moYpovMl4JXlF45Z5zS7IVGjrWoxGGUIywo65DZ58Z BeQ72qZPhOFRt8rXrvTKNzpv194fYgd4nySxz4OPfCx1sD+rdAEknVjKfLkmIeGTBNcm OxGYnNL12OIZpPfRBgbppAg036SRErT8HQw1cs6bj6EUlAptpHluWm283+VmWUTkzNCB 2QKqrGr+c7RLSP2VVBdpeyR7mQ76dwJPMdDbyrb2V79XFjjfMhZCmPaa4TbdYm99coCj sGoQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p43si768250edc.368.2019.09.26.20.53.49; Thu, 26 Sep 2019 20:54:13 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729156AbfI0Dvs (ORCPT + 99 others); Thu, 26 Sep 2019 23:51:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57093 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728995AbfI0Dvs (ORCPT ); Thu, 26 Sep 2019 23:51:48 -0400 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 mx1.redhat.com (Postfix) with ESMTPS id 7FA283B58C; Fri, 27 Sep 2019 03:51:48 +0000 (UTC) Received: from [10.72.12.160] (ovpn-12-160.pek2.redhat.com [10.72.12.160]) by smtp.corp.redhat.com (Postfix) with ESMTP id 295B1614C1; Fri, 27 Sep 2019 03:51:37 +0000 (UTC) Subject: Re: [PATCH] vhost: introduce mdev based hardware backend From: Jason Wang To: Tiwei Bie , mst@redhat.com, alex.williamson@redhat.com, maxime.coquelin@redhat.com Cc: kvm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, zhihong.wang@intel.com, lingshan.zhu@intel.com References: <20190926045427.4973-1-tiwei.bie@intel.com> <1b4b8891-8c14-1c85-1d6a-2eed1c90bcde@redhat.com> Message-ID: <996bcaa3-1b13-2520-5be4-8a8f9c8c71d6@redhat.com> Date: Fri, 27 Sep 2019 11:51:35 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <1b4b8891-8c14-1c85-1d6a-2eed1c90bcde@redhat.com> 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 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 27 Sep 2019 03:51:48 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/27 上午11:46, Jason Wang wrote: > + > +static struct mdev_class_id id_table[] = { > +    { MDEV_ID_VHOST }, > +    { 0 }, > +}; > + > +static struct mdev_driver vhost_mdev_driver = { > +    .name    = "vhost_mdev", > +    .probe    = vhost_mdev_probe, > +    .remove    = vhost_mdev_remove, > +    .id_table = id_table, > +}; > + And you probably need to add MODULE_DEVICE_TABLE() as well. Thanks