From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 009A9A034C; Thu, 30 Jun 2022 14:53:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ABB4C40A80; Thu, 30 Jun 2022 14:53:09 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2061.outbound.protection.outlook.com [40.107.95.61]) by mails.dpdk.org (Postfix) with ESMTP id 5421240223; Thu, 30 Jun 2022 14:53:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z8AYvE0lium0lP/o7id7Gvks0rW1IPP9zStXmGCLicXsVcOf6839q1uEEkXoA5w70kObXXgzvW1vsv8lbpuzyLrUgrk6pC7caeV8WqvDizIm6eoE4ZeLqEc290ZfraE9KEViuHbBeQpXXfTpSQt1lFXNrMVmLvPfzDkxa0EDgZ4lfeAxCpowMxh3tudhOaJlUYyPOAWGgAn8rbR086yzMmdKlChO65E0VQXWkIVTAfwpPPoZ6t0Vr9tmzQo5+KmuLmmI6WQILyKCQ/wyMIiXiFrz1/etzaX+YNZ7Tie3tx6K+jzdISECL87FAexZtVW62KAF9Jz5IVeqVCs2TekEkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=twVlgBg8y8oXZusd9OXxjTdXcI3dszPCOVC/nWrj5nE=; b=oFgn8LBjSUmEivfNG96M/2FXATm/atX8HglUbs4ouo1eXUzEaUKEI/4x1fxBIUlktOV69KF6gGOsiRMDsL2mQYkB0JabwBtn5UxJSsoR1Ec0H8zKCQfEW1PH/TEx1EIKokKvDQwKSzrG/AGNrT7glQOmpH51WX+8JB2eSWsEtNEbJRlJ31xE0uKJsGHKKNqCFNfvh8k+CsULCYhoKemdEa2McOWUb/MGnavqg1tmOgP2IGZb3UpNch8hzQPTa28wrnm4InPlAYoNUmHPMVR+zGhcRzqT5x/PN4zkpVrgZAv/k3huueCscGU/NKzueDu2MoQaayNF+pROKz9qmMh2tQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=networkplumber.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=twVlgBg8y8oXZusd9OXxjTdXcI3dszPCOVC/nWrj5nE=; b=nHzqDjgB07bbVlj3w4bETeQZRwLF+eW/wvgKtWxGrgSQuq9u0YRkESSWu/uGl+fULjTg4cvu7ugKe1ueKAgijI0671L0i9w95JvzUX5PPl20ybNY5K9HoaTLvhrFR5CyUzk9iDDgobjj27XCQuVBoKsIINlQwM5ZDNCKRWJTjsY= Received: from DM6PR11CA0037.namprd11.prod.outlook.com (2603:10b6:5:14c::14) by SJ0PR02MB7807.namprd02.prod.outlook.com (2603:10b6:a03:325::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.15; Thu, 30 Jun 2022 12:53:06 +0000 Received: from DM3NAM02FT027.eop-nam02.prod.protection.outlook.com (2603:10b6:5:14c:cafe::96) by DM6PR11CA0037.outlook.office365.com (2603:10b6:5:14c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17 via Frontend Transport; Thu, 30 Jun 2022 12:53:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch01.xlnx.xilinx.com; pr=C Received: from xir-pvapexch01.xlnx.xilinx.com (149.199.80.198) by DM3NAM02FT027.mail.protection.outlook.com (10.13.5.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5395.14 via Frontend Transport; Thu, 30 Jun 2022 12:53:05 +0000 Received: from xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 30 Jun 2022 13:53:04 +0100 Received: from smtp.xilinx.com (172.21.105.198) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 30 Jun 2022 13:53:04 +0100 Envelope-to: stephen@networkplumber.org, longli@linuxonhyperv.com, longli@microsoft.com, sthemmin@microsoft.com, dev@dpdk.org, stable@dpdk.org Received: from [10.71.116.38] (port=59634) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1o6tfM-0001Ol-Jk; Thu, 30 Jun 2022 13:53:04 +0100 Message-ID: Date: Thu, 30 Jun 2022 13:53:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] net/netvsc: replace the pointers to vmbus device from secondary process Content-Language: en-US To: Stephen Hemminger , CC: , Stephen Hemminger , , References: <1656545384-19287-1-git-send-email-longli@linuxonhyperv.com> <20220629165218.6bccd33a@hermes.local> From: Ferruh Yigit In-Reply-To: <20220629165218.6bccd33a@hermes.local> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14e4ccae-299f-4240-5afd-08da5a977a0d X-MS-TrafficTypeDiagnostic: SJ0PR02MB7807:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2y8cRAUi9zsvmn1CsVYRl3jm9PtI1YXs2I32U08tKOgLnVY6ZjnHLrrIFo+K2xEfbFZeKq+FvgKaxfgsXv6VToy5yh2x+7a7SI4HBaC5A1TunXWGZjuwvyDL1BzImsuyzNnM3raA8MOnvRyGv2SlsN40zNCz5O2BhX6+utnu7BQZgikqrFUX0gdjlUQDiXf5tzWIJAFwruWO+afbda5XL6nb3CUVUOfyTJJug9M24ITVaY4PvAgWzkf/THJUnFVAMi7MXoU2ZWhS0cyBQT9dzHeK+PbBG1cA3ntucMz5FZRBKvxFL3URcsZbWxaMfe7xX3dtGK6TfjxTwewIRw2OdaNJ762Yji9OceYOqccUs+YUcHoM/QABttTa4yCDIe/U2DL4gJOtjpPqqaUJThd2yJA3my0xepzq2VNs0C14XeXsW2Uh8hyV3BiuGr1z9rM0S8TF0QjMjz6/0flfQmxJ6UNaM6/b0Oqd+0oCMKqcZFywDdfTO89/kPVx+VUenwH7Tfisx2VdkTgwWnkJdNr4esu9PoVDTR6Fxf1YYqSVSajNQ3vuEpD3dy4tGr633Co/SR/5FtOoXwVYDzLHvSOY9U2hdmKXq+NWoCvqwJOduiEyBPi0DcnFin77C6edyPDR9I6pINGR603t/Urflzq6YzCBk+mgkzrzKGHX71Gh2nt3Z1G2fl77SlKev3pRhUSh9pMmSZh/6wjhXAXokV1+gQSa72H+p+ZNoH16ohzFZijpQ7R6Yh0rxI2k4OGuUZ7nf3UFMhHvG1zQ2F6Aora3aij4K22X3lMckIjAITjg1WJx5J1dCUiAucloIvPj2wm/o6/3Dyd17iRhpApw9ogT//t0TGdq59s229dyC8ycCZk0su1YfXLA9FRRrlh332Mq X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch01.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(136003)(39860400002)(396003)(346002)(376002)(46966006)(40470700004)(36840700001)(40480700001)(40460700003)(36756003)(426003)(336012)(31686004)(186003)(36860700001)(82310400005)(2616005)(41300700001)(47076005)(2906002)(70586007)(110136005)(70206006)(8676002)(44832011)(53546011)(26005)(5660300002)(9786002)(8936002)(478600001)(356005)(316002)(45080400002)(7636003)(31696002)(54906003)(4326008)(4744005)(82740400003)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2022 12:53:05.8260 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 14e4ccae-299f-4240-5afd-08da5a977a0d X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT027.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR02MB7807 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 6/30/2022 12:52 AM, Stephen Hemminger wrote: > On Wed, 29 Jun 2022 16:29:44 -0700 > longli@linuxonhyperv.com wrote: > >> From: Long Li >> >> The vmbus device is allocated via "calloc" before the EAL memory is >> initialized. The secondary process can't reference the vmbus device as it is >> not mapped correctly in the shared memory region. >> >> Replace all references to the vmbus device (and its contents) with the >> pointers/contents set by the primary process. >> >> Fixes: 4e9c73e96e ("net/netvsc: add Hyper-V network device") >> Cc: stable@dpdk.org >> Signed-off-by: Long Li > > Acked-by: Stephen Hemminger Applied to dpdk-next-net/main, thanks.