From: KY Srinivasan <kys@microsoft.com>
To: Stephen Hemminger <stephen@networkplumber.org>,
"simonxiaolinux@hotmail.com" <simonxiaolinux@hotmail.com>,
Alexander Malysh <alexmay@microsoft.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v2 7/7] hv: add kernel patch
Date: Wed, 25 Mar 2015 19:34:18 +0000 [thread overview]
Message-ID: <BY2PR0301MB0711D4B9DBF1C10C57C6E1E7A00B0@BY2PR0301MB0711.namprd03.prod.outlook.com> (raw)
In-Reply-To: <1427307085-5493-8-git-send-email-shemming@brocade.com>
> -----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
>
> From: Stephen Hemminger <stephen@networkplumber.org>
>
> For users using non latest kernels, put kernel patch in for
> them to use.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
> .../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
>
> 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 <segorov@mirantis.com>
> +Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> +
> +---
> +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 = (unsigned long)vmbus_connection.int_page;
> ++ monitor_pages[0] = (unsigned
> long)vmbus_connection.monitor_pages[0];
> ++ monitor_pages[1] = (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 = 0;
> + } while (read_state && (bytes_to_read != 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
prev parent reply other threads:[~2015-03-25 19:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-25 18:11 [dpdk-dev] [PATCH v2 0/7] Hyperv PMD patches Stephen Hemminger
2015-03-25 18:11 ` [dpdk-dev] [PATCH v2 1/7] ether: add function to query for link state interrupt Stephen Hemminger
2015-03-25 18:11 ` [dpdk-dev] [PATCH v2 2/7] pmd: change drivers initialization for pci Stephen Hemminger
2015-03-25 18:11 ` [dpdk-dev] [PATCH v2 3/7] hv: add basic vmbus support Stephen Hemminger
2015-03-25 18:11 ` [dpdk-dev] [PATCH v2 4/7] hv: uio driver Stephen Hemminger
2015-03-25 18:11 ` [dpdk-dev] [PATCH v2 5/7] hv: poll mode driver Stephen Hemminger
2015-03-25 18:11 ` [dpdk-dev] [PATCH v2 6/7] hv: enable driver in common config Stephen Hemminger
2015-03-25 18:11 ` [dpdk-dev] [PATCH v2 7/7] hv: add kernel patch Stephen Hemminger
2015-03-25 19:34 ` KY Srinivasan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BY2PR0301MB0711D4B9DBF1C10C57C6E1E7A00B0@BY2PR0301MB0711.namprd03.prod.outlook.com \
--to=kys@microsoft.com \
--cc=alexmay@microsoft.com \
--cc=dev@dpdk.org \
--cc=simonxiaolinux@hotmail.com \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).