Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2949016ybn; Thu, 26 Sep 2019 21:32:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0yIQ+3caOXmlpy5G5EMbv7RggvsRA1NFh89IMcpCejvN0nBQ20Pz0qu9oLh3XnuGW8IJo X-Received: by 2002:a50:fa98:: with SMTP id w24mr2427280edr.47.1569558722127; Thu, 26 Sep 2019 21:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569558722; cv=none; d=google.com; s=arc-20160816; b=uyuGDTuUzNktaO4Uij/vE4KPUejrlwAEYWbZ4aDej0CzQbTrbUma5vpYsnghp7KfAD WVLUy8OmnPEQ5xxnoZZ/idxkAJHr7Ln0R0bYq5F7i9Bu3r3zkHvcaegn6edh5JsQeVIA 5lvNxha0hAwjOhnU+fjWsW0Q2ssviq0qC9xlqPQTydK0RpPZ2LsJH3yY1ETWsBs76eIe j6p0+l9UyZEk4t5P3MgD26CFB0scGc7VT8cpQ61vMOPveQGQE4Fpw78/Ai101SWW0+6S C7LyZWpm5BjN1urRDYaAajVttKuZZ5pP6d9s/bZN7MXiPVr9RwatG1aBB0u+ypuZ/Gto jx+w== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mwGTbY3gl+/IXqWfYFGIwvoVQv+recF9D8kpiG49CRU=; b=SxY/kkbigMma2spw1OUqH1zKB2ChXA+VQwurXT6usZnvlIe/DLdbidDlLD29LBnPaf 51hBQAVLU/YFOiR0S3YxfWAz7VYZTuAOnpS5fj4h1pNg2U+LMD8dCKULM0D0T88x/24Q 8fEHqeKG37BAGWmW2iNpYDUrNSimZT7Jd9Knyo3U5htYtX3GzH0U32QCJ5Ax/purCVyT 74beqwzG590rKaqfXT9T9QEsg8qjvTmGLR5WiqvMZzvtDF4XADnBlWHWG4fqTqZFBk20 5f2e63WJCu5iFm+KU5+P1mIH9g+527Kvl4FET5TF62hnHyS53bF1iLiMSyZfUcHUOIRT S+Qg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14si2133181ejv.112.2019.09.26.21.31.37; Thu, 26 Sep 2019 21:32:02 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbfI0E3s (ORCPT + 99 others); Fri, 27 Sep 2019 00:29:48 -0400 Received: from mga03.intel.com ([134.134.136.65]:11333 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbfI0E3s (ORCPT ); Fri, 27 Sep 2019 00:29:48 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2019 21:29:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,554,1559545200"; d="scan'208";a="196598843" Received: from dpdk-virtio-tbie-2.sh.intel.com (HELO ___) ([10.67.104.73]) by FMSMGA003.fm.intel.com with ESMTP; 26 Sep 2019 21:29:44 -0700 Date: Fri, 27 Sep 2019 12:26:57 +0800 From: Tiwei Bie To: Jason Wang Cc: mst@redhat.com, alex.williamson@redhat.com, maxime.coquelin@redhat.com, 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 Subject: Re: [PATCH] vhost: introduce mdev based hardware backend Message-ID: <20190927042657.GA16052@___> References: <20190926045427.4973-1-tiwei.bie@intel.com> <1b4b8891-8c14-1c85-1d6a-2eed1c90bcde@redhat.com> <996bcaa3-1b13-2520-5be4-8a8f9c8c71d6@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <996bcaa3-1b13-2520-5be4-8a8f9c8c71d6@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 27, 2019 at 11:51:35AM +0800, Jason Wang wrote: > 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. Yeah, thanks! > > Thanks >