From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0434CA04C9; Sun, 13 Sep 2020 16:54:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D31ED2C52; Sun, 13 Sep 2020 16:54:23 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 586AEFFA for ; Sun, 13 Sep 2020 16:54:22 +0200 (CEST) Received: from hkpgpgate101.nvidia.com (Not Verified[10.18.92.100]) by nat-hk.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 13 Sep 2020 22:54:20 +0800 Received: from HKMAIL102.nvidia.com ([10.18.16.11]) by hkpgpgate101.nvidia.com (PGP Universal service); Sun, 13 Sep 2020 07:54:20 -0700 X-PGP-Universal: processed; by hkpgpgate101.nvidia.com on Sun, 13 Sep 2020 07:54:20 -0700 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 13 Sep 2020 14:54:11 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.58) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 13 Sep 2020 14:54:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h6U59eJsQ9b5e+mR5DIbLuyrJwQTG79mVHE2F09qg8c+296xse9BaMrVAeKCswC/uysdDc97XgkOI1SfkNPqBbLhJuodHiU5q4kTNK8+koJb2bjE571vLt/y2is9cRM4vm56fEoEGPXkk24DAQu4aeAZWNrngSLak+1RUJLJ55/rIWRStTFgcC9Kw75KftIOG+ikHzM1kPRYoIseyS++bt85Ql2v1Xt4u927w0Vy0wY6/DzLvDYI/8GDcVA0xcYU/6vcapkG1cXJLJSHyUpgOE2ZyM686tDVGGgET1GEmPjuP3HAy5sOcD9psR1B3lzROBjakcMRyi/hw2KMuMFx4A== 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-SenderADCheck; bh=td/CNFxIjQBvg/nXutpp0ENBZC0LyI2yZizovvpOOBM=; b=VCbNNLRzhXrtKWs/IhOnY8V8WVdj7SsFyDJrfPP2ErPo/nuZdvgPC1wX0e/SJl2Fd8AHDABjVHnFY0S5DHjDXiJbJYMOeOfxrSgxlMDzjT49yIK5KLCdJZetPDC7MoKAQmS/DKOrw9sAc3NqidwMHrgC5vEFI8I5xH5WOYDIqFHx3Y27Gw9q9rxv5nnvRPBiPM7g+b9EU/ZwDKuafxkHwlz5Te5Z7BTIUWYqHNPwFcH7EeXfBNZw7d7kT0sp9mafbQpvRVy6kb54zAsR+3+JK3ZT7Y6ro01IEXTqd6tvSZAaPgxFomJkzXCBWArhteTHndf3Zc5mdSIFN9N0XeOELg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from BY5PR12MB4323.namprd12.prod.outlook.com (2603:10b6:a03:211::10) by BY5PR12MB3955.namprd12.prod.outlook.com (2603:10b6:a03:1a2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Sun, 13 Sep 2020 14:54:08 +0000 Received: from BY5PR12MB4323.namprd12.prod.outlook.com ([fe80::7deb:c09a:50d6:e561]) by BY5PR12MB4323.namprd12.prod.outlook.com ([fe80::7deb:c09a:50d6:e561%3]) with mapi id 15.20.3370.019; Sun, 13 Sep 2020 14:54:08 +0000 From: Tal Shnaiderman To: Dmitry Kozlyuk CC: Narcisa Ana Maria Vasile , "dev@dpdk.org" , NBU-Contact-Thomas Monjalon , "pallavi.kadam@intel.com" , "ranjit.menon@intel.com" , "harini.ramakrishnan@microsoft.com" Thread-Topic: [PATCH] bus/pci: support segment value as address domain on Windows Thread-Index: AQHWhwAEPStwuRiib068+s4VSS1lpKlhdYcAgAC0CQCABIL3gA== Date: Sun, 13 Sep 2020 14:54:08 +0000 Message-ID: References: <20200825114316.10712-1-talshn@nvidia.com> <20200909232121.GB13311@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <20200910205700.2893a935@sovereign> In-Reply-To: <20200910205700.2893a935@sovereign> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [37.142.6.33] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a6987713-6d8e-4d35-51c0-08d857f4de73 x-ms-traffictypediagnostic: BY5PR12MB3955: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pXcGU296xzFuHmTyRHjOW+oFf7oVMHNkC+zJjiaCpSapQYQc3cr2eQegoSnHsnHPXF5uiRoNwgkzju5yWZcWwWLMnIEyOJvPJbfSKQt8/1mCDiRw6bgNJeoI8Hbh95lIlxb4LvBpX1sP0/9nOffJsU0qFjjG9+boUZ+AHSjOJlBf+n8pP5YXg9pmASyTYgQJGXWh39tOuArWoipppLDUaYMEe8U8h9Jdaj91Z8CK247BWTS59VCMgLBGGFYmw/3XCRqgPoYWSUPmV1fD0a43p6/4mMnaIgzo2D2vA7SrAkZF1aMwiQfuut4jf318PUbqg/LyksnCBZg3ReMtK6imHA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR12MB4323.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(346002)(396003)(376002)(39860400002)(66946007)(76116006)(66476007)(71200400001)(66556008)(64756008)(66446008)(2906002)(86362001)(316002)(6506007)(26005)(186003)(6916009)(83380400001)(7696005)(478600001)(4326008)(8936002)(54906003)(33656002)(52536014)(55016002)(8676002)(5660300002)(9686003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 0Q5zSaMROX5uw/75JIwEF4g/XQFF6QJHaT9lno8xXFKWSup1+Yawmu9M9VY14scRa/KfZAztqAh0Ap+3TfE8XERNphVZYecV7CxFrzgo+OdamPxe1JtWrvTYdY0zcFNuLBoKl1UbvlASemYNe0Xh6PTIhVIkM3T7LGbsPx8lBrhShjmi0WDrvOGm3K/YQ+MBiATO/hFYDwy6YgCeOvV1DB8nIujkX53eWzByQ+wjVmRaS+ajLuQJHVbFlJnJCfG7yAt67usgSIZfT+XWxvThRT0i6AOrmgcqIKxVuzw0XyyMZQ5jjkE/i36udN4uj6tqd+C0BU7XCstYDwb/2PABLU4tJx7Dlgsctk8c3u2pDwghQ6w7zNkTVvicZdtfLFbgjWTB8GCJ7zR5YO8OkGwY8+3U27bRmpAKnM5H+QM3p8S/xrqBj67ubDKTKRiMzg637ZnMz4Hyknyu+CAry3caiYAshtzGRzSoutyJsJaXn3BlTqejOqjAFKjpQWXFU3PzRGYHi7VVJbt85OewMweGtgdjXW4PDyw2HyKBeuZlN34Wlt7RU1uFVbktw4MsEgIcs2eLhEEE+oU2UuqhTS6pxiGDpiNkJrEpDEyfSabZKeoaYMR2MzmWb5GEbODFtTIqd5Jo9TelyhCX9k6XkbSjkQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4323.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6987713-6d8e-4d35-51c0-08d857f4de73 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Sep 2020 14:54:08.6879 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GDL2WJfQKoloy70IR3kCNpssCCJ/Xt2JVXRzOLd/9g0h2uuZXYn0aEU06wjFdXTFNMb5CHk1MlSeTLVE+yH1NA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB3955 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1600008860; bh=td/CNFxIjQBvg/nXutpp0ENBZC0LyI2yZizovvpOOBM=; h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature: ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-microsoft-antispam-prvs:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:x-ms-exchange-transport-forked: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=g59CfAXLEWjhx4nDlS13AdAeF0Cbx3tYM0YYj8+LBvHKzrEurf/zPKrS/Du/sh4dw gWfitNXtxtyt38viOHmKq+sbObAL1FJu86rOxjSxMuFJ33l9cJtqpO4SqDv+p254U/ Fbrx4UQhEHAjQiRni9w+6KirDUCM/bvy95ynZUc0Ug2rNurrsw/kOyK57YAg5s//vy DwszF4FzwTlY2sCKT4ClzevXySrD/8vdhI1ZEhhNP++XCkPq5T/9jaYo3FBJZJf0E5 +Qd6QWq9geLK+WuuF73Can5CLvtbTInT+kkCRzOGQ96KYrvT+9ArSheJ0Mgv0vtMOg mpn4TK7YGOaJA== Subject: Re: [dpdk-dev] [PATCH] bus/pci: support segment value as address domain on Windows X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > Subject: Re: [PATCH] bus/pci: support segment value as address domain on > Windows >=20 > On Thu, 10 Sep 2020 07:30:39 +0000, Tal Shnaiderman wrote: > > Right, it can happen in virtualization setups when several virtual func= tions > can have the same BDF, e.g.: > > > > PS > Get-NetAdapterHardwareInfo > > > > Name Segment Bus Device Function Slot NumaNod= e > PcieLinkSpeed > > ---- ------- --- ------ -------- ---- -------= - ------------- > > Ethernet 0 0 10 0 = Unknown > > Ethernet 4 58601 0 2 0 = 0 Unknown > > Ethernet 5 52956 0 2 0 = 0 Unknown > > > > DPDK currently can detect either Ethernet 4 or ethernet 5 if only BDF i= s > checked. > > Unix uses the Domain value, the equivalent value for Windows is Segment= . >=20 > Hi Tal, >=20 > I wonder how exactly this setup can be reproduced, i.e. could you share > relevant QEMU options, VMX file or some other config you're using? > Patch idea and code look clear, however, I never managed to build QEMU > PCIe hierarchy to see it working. Hi Dmitry, I'm not sure it is relevant to all NICs but for Mellanox you can recreate i= t on a Hyper-V Windows VM with several SR-IOV VFs using the same virtual sw= itch.