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 B158BA0548 for ; Thu, 30 Jun 2022 01:52:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FBEA40A7D; Thu, 30 Jun 2022 01:52:24 +0200 (CEST) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id C5B1840A7D for ; Thu, 30 Jun 2022 01:52:22 +0200 (CEST) Received: by mail-pj1-f47.google.com with SMTP id cv13so17106827pjb.4 for ; Wed, 29 Jun 2022 16:52:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5GYVMCR6y2sXrQDFdmTEb4ixlQIdrL4DRGDV/03lmj4=; b=nRStD7I26wxSYVTi85fpD1wmZv+4UqncUynlRz4jJqw/6+4f+rbt+12e9kWEu//2K/ hqVSQP9nnA3yeGkwQaMTqAL3LTeT8x+RZRZ+WA0TcjXh1LWm/8WyF5Gjk0L0f/bLOmA8 XMv52sYKPqIQ5gL0wjuNh6Rt2Mh08pBVGqi33yHi0fbAqsvOcfxFXvBTmMunin1X+U9X gh31vb3X4u/kT8V1K2vrS/qUyXvJ3XrT6OjWQz8n0UhxQwPqvVly3CyX8xh3Lac71rKl /z9rNCdXlYxujRZcRTSzTujNZQ3MSWqiJWjutK9LmHCXX1lteO/UdCxP6P72O+ckmiM0 aakw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5GYVMCR6y2sXrQDFdmTEb4ixlQIdrL4DRGDV/03lmj4=; b=3z6xPGYSUZlQ6ErTXt+MD9uZsdMsJAFypn2rvmNUaojFF+5Hf8v03I4R62d9tGBm/v jfPmLYt2PzXMU1VQwmfR3wW9LnJ1LSvm4Negawa3X7wtDW6DXZ/dQSVEbgdM22W9q0xa oi9vC1cKn/zdlVl7Ymd4/5tgckaTMcbKG6ufqBlKAddsVWTrbwrOy+0li1u549d6uaiJ RjGsLBGNg9V1faiqeEWIOPVxYTTZMHQIYQfRxfxuZwSvz6AnAP2TBAHaFewYZ6Fps04D eT6yUCUjpoNMzV+LOuJ12J/U2S2B6n5NXTn5qekcR5fY+1ZZRUentp/3nbkWufUOEj9c Ivaw== X-Gm-Message-State: AJIora92COznaITozsKKlWfWzylA9u7wr98rYTMwwkRZ1ZD+k9dHmC2+ TMQkiX1XOsyA+XINQpLbzxy+iTkMQrAYps3N X-Google-Smtp-Source: AGRyM1u4gMOOZVZsgNRJZ7vgFbR8Vbh7RHbf0ASOPH9okaBPyabuqSJgT1UvEDyCxk/mjy7ARHzcow== X-Received: by 2002:a17:903:1208:b0:16b:81f6:e992 with SMTP id l8-20020a170903120800b0016b81f6e992mr12792901plh.55.1656546741907; Wed, 29 Jun 2022 16:52:21 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id g207-20020a6252d8000000b0050dc762817esm12096874pfb.88.2022.06.29.16.52.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 16:52:21 -0700 (PDT) Date: Wed, 29 Jun 2022 16:52:18 -0700 From: Stephen Hemminger To: longli@linuxonhyperv.com Cc: longli@microsoft.com, Stephen Hemminger , dev@dpdk.org, stable@dpdk.org Subject: Re: [PATCH] net/netvsc: replace the pointers to vmbus device from secondary process Message-ID: <20220629165218.6bccd33a@hermes.local> In-Reply-To: <1656545384-19287-1-git-send-email-longli@linuxonhyperv.com> References: <1656545384-19287-1-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 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