From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0104.outbound.protection.outlook.com [207.46.100.104]) by dpdk.org (Postfix) with ESMTP id AFE199AC1 for ; Wed, 25 Mar 2015 20:34:20 +0100 (CET) Received: from BY2PR0301MB0711.namprd03.prod.outlook.com (25.160.63.153) by BY1PR0301MB0871.namprd03.prod.outlook.com (25.160.194.141) with Microsoft SMTP Server (TLS) id 15.1.125.19; Wed, 25 Mar 2015 19:34:18 +0000 Received: from BY2PR0301MB0711.namprd03.prod.outlook.com ([25.160.63.153]) by BY2PR0301MB0711.namprd03.prod.outlook.com ([25.160.63.153]) with mapi id 15.01.0125.002; Wed, 25 Mar 2015 19:34:18 +0000 From: KY Srinivasan To: Stephen Hemminger , "simonxiaolinux@hotmail.com" , Alexander Malysh Thread-Topic: [PATCH v2 7/7] hv: add kernel patch Thread-Index: AQHQZycyAjQBnV68sk+4dmRc7vMch50tltsg Date: Wed, 25 Mar 2015 19:34:18 +0000 Message-ID: References: <1427307085-5493-1-git-send-email-shemming@brocade.com> <1427307085-5493-8-git-send-email-shemming@brocade.com> In-Reply-To: <1427307085-5493-8-git-send-email-shemming@brocade.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2601:8:9b00:fd:1995:89c4:c1b4:bd6f] authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB0871; x-microsoft-antispam-prvs: x-forefront-antispam-report: BMV:1; SFV:NSPM; SFS:(10019020)(6009001)(51704005)(377454003)(76576001)(92566002)(2501003)(2900100001)(1511001)(2950100001)(99286002)(122556002)(77156002)(86612001)(2561002)(40100003)(102836002)(106116001)(87936001)(86362001)(2656002)(74316001)(54356999)(76176999)(19580405001)(19580395003)(50986999)(33656002)(46102003)(3826002)(861004); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0301MB0871; H:BY2PR0301MB0711.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5005006)(5002010); SRVR:BY1PR0301MB0871; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0301MB0871; x-forefront-prvs: 052670E5A4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.onmicrosoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2015 19:34:18.7735 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB0871 X-Mailman-Approved-At: Wed, 25 Mar 2015 23:52:36 +0100 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v2 7/7] hv: add kernel patch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2015 19:34:21 -0000 > -----Original Message----- > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > Sent: Wednesday, March 25, 2015 11:11 AM > To: simonxiaolinux@hotmail.com; Alexander Malysh; KY Srinivasan > Cc: dev@dpdk.org; Stephen Hemminger > Subject: [PATCH v2 7/7] hv: add kernel patch >=20 > From: Stephen Hemminger >=20 > For users using non latest kernels, put kernel patch in for > them to use. >=20 > Signed-off-by: Stephen Hemminger > --- > .../linuxapp/hv_uio/vmbus-get-pages.patch | 53 > ++++++++++++++++++++++ > 1 file changed, 53 insertions(+) > create mode 100644 lib/librte_eal/linuxapp/hv_uio/vmbus-get-pages.patch >=20 > diff --git a/lib/librte_eal/linuxapp/hv_uio/vmbus-get-pages.patch > b/lib/librte_eal/linuxapp/hv_uio/vmbus-get-pages.patch > new file mode 100644 > index 0000000..e1a4b13 > --- /dev/null > +++ b/lib/librte_eal/linuxapp/hv_uio/vmbus-get-pages.patch > @@ -0,0 +1,53 @@ > +hyper-v: allow access to vmbus from userspace driver > + > +This is patch from to allow access to hyper-v vmbus from UIO driver. > + > +Signed-off-by: Stas Egorov > +Signed-off-by: Stephen Hemminger > + > +--- > +v2 - simplify and rename to vmbus_get_monitor_pages > + > + drivers/hv/connection.c | 20 +++++++++++++++++--- > + include/linux/hyperv.h | 3 +++ > + 2 files changed, 20 insertions(+), 3 deletions(-) > + > +--- a/drivers/hv/connection.c > ++++ b/drivers/hv/connection.c > +@@ -64,6 +64,15 @@ > + } > + } > + > ++void vmbus_get_monitor_pages(unsigned long *int_page, > ++ unsigned long monitor_pages[2]) > ++{ > ++ *int_page =3D (unsigned long)vmbus_connection.int_page; > ++ monitor_pages[0] =3D (unsigned > long)vmbus_connection.monitor_pages[0]; > ++ monitor_pages[1] =3D (unsigned > long)vmbus_connection.monitor_pages[1]; > ++} > ++EXPORT_SYMBOL_GPL(vmbus_get_monitor_pages); > ++ > + static int vmbus_negotiate_version(struct vmbus_channel_msginfo > *msginfo, > + __u32 version) > + { > +@@ -327,8 +336,6 @@ > + else > + bytes_to_read =3D 0; > + } while (read_state && (bytes_to_read !=3D 0)); > +- } else { > +- pr_err("no channel callback for relid - %u\n", relid); > + } > + > + spin_unlock_irqrestore(&channel->inbound_lock, flags); > +--- a/include/linux/hyperv.h > ++++ b/include/linux/hyperv.h > +@@ -1162,6 +1162,9 @@ > + > + extern void vmbus_ontimer(unsigned long data); > + > ++extern void vmbus_get_monitor_pages(unsigned long *int_page, > ++ unsigned long monitor_pages[2]); > ++ > + /* Base driver object */ > + struct hv_driver { > + const char *name; Are you basing this on the current Greg's tree. K. Y > -- > 2.1.4