From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by dpdk.org (Postfix) with ESMTP id 62DBD9AC9 for ; Wed, 25 Mar 2015 19:12:02 +0100 (CET) Received: by pdbcz9 with SMTP id cz9so35944894pdb.3 for ; Wed, 25 Mar 2015 11:12:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Tf9xfeX4t4Tc/KFGXPpXinq6Fky2ke+H1KXKXUzx1rM=; b=ZUzjzUc3AafM1hmD9OKScXMeVeqGqREm8veo8NN2IzJPqw9WxXU3gp6F/Oh2rb+TfZ fBoZCrR3HHZ3zHFV6ZGes5ePb7EeI+oiaTDQ0NxNEAgq1VjO3lPwfokkSFMrxgWm3EuZ WiFqHcdzjlqMol5COEK/EgUr1oObiQefNuDmR8fqgL0djZ9q6CGx2E3NtF2FJ8OwZlFS NkkelmAyY+MFAqTbWouwBjALWQwJiQGp1x+0z2UcJNoWyQvGqj4nQfyu5wY6XopsQ5wp CyV4ojm1v5habI4sGtushYPMSUlVDaKEbBkxVPyEFJ72e0lGWEDACI+HDQE66XkKHpP5 CkcQ== X-Gm-Message-State: ALoCoQlY7asZfycIPgKKtdjZFE80piTFjTVv2zRZhs63XTh46KgG9F/pOR52+JQ2S1px1XcniVOp X-Received: by 10.70.125.129 with SMTP id mq1mr19507973pdb.70.1427307121735; Wed, 25 Mar 2015 11:12:01 -0700 (PDT) Received: from uryu.home.lan ([144.49.132.3]) by mx.google.com with ESMTPSA id h9sm3161177pdo.5.2015.03.25.11.12.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Mar 2015 11:12:01 -0700 (PDT) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: simonxiaolinux@hotmail.com, alexmay@microsoft.com, kys@microsoft.com Date: Wed, 25 Mar 2015 11:11:25 -0700 Message-Id: <1427307085-5493-8-git-send-email-shemming@brocade.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1427307085-5493-1-git-send-email-shemming@brocade.com> References: <1427307085-5493-1-git-send-email-shemming@brocade.com> Cc: dev@dpdk.org Subject: [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 18:12:02 -0000 From: Stephen Hemminger For users using non latest kernels, put kernel patch in for them to use. 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 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 = (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; -- 2.1.4