From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 5DE06A0548;
	Thu, 30 Jun 2022 01:52:25 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id B07D141138;
	Thu, 30 Jun 2022 01:52:24 +0200 (CEST)
Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com
 [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id E383A40A80
 for <dev@dpdk.org>; Thu, 30 Jun 2022 01:52:22 +0200 (CEST)
Received: by mail-pj1-f43.google.com with SMTP id
 m14-20020a17090a668e00b001ee6ece8368so1037147pjj.3
 for <dev@dpdk.org>; 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=xAAVkEOlZ/5O0v3aUMELM2Mb8vd8Nag1fq5lBt323QZtGeoc+81nqeVdtCKDA/2stp
 84lysmbUZtxEUjtarRlIQ5qNKL5NyWlRP4hyKZQXOGHtqPtV0zAmakzFlZn+fZNRuI82
 /vd9spZnB348WJnAkXV8Tymaf98b1o3ZbIO51ZomdtiCW+Pd60mjtZNWavBy0fi1D/Bo
 xo1n5dvoPVY0FssgahNTQ1opZzrK0YED+pbacaen+ZiGjw0No+wEnMmQyAe0YqrBKDMw
 ZjXn/KEChS6y0iH7NPT3pXqyoFuie1ypcsZ8rwwm2oSpfVFIQH0EvH0L0pALeTM+TOPf
 Zg8g==
X-Gm-Message-State: AJIora8FFThUQrAbR+NeDJ3UuR6NU43i99rtmELZpfugdsU9j/2ku8Bs
 KFDreJTjX/bIewJ2JikwI/ahoQ==
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 <stephen@networkplumber.org>
To: longli@linuxonhyperv.com
Cc: longli@microsoft.com, Stephen Hemminger <sthemmin@microsoft.com>,
 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: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

On Wed, 29 Jun 2022 16:29:44 -0700
longli@linuxonhyperv.com wrote:

> From: Long Li <longli@microsoft.com>
> 
> 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 <longli@microsoft.com>

Acked-by: Stephen Hemminger <stephen@networkplumber.org>