Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316AbdH2Cgv (ORCPT ); Mon, 28 Aug 2017 22:36:51 -0400 Received: from mail-hk2apc01on0096.outbound.protection.outlook.com ([104.47.124.96]:4416 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751209AbdH2Cgt (ORCPT ); Mon, 28 Aug 2017 22:36:49 -0400 From: Dexuan Cui To: "'Jorgen S. Hansen'" , "'Stefan Hajnoczi'" CC: "'davem@davemloft.net'" , "'netdev@vger.kernel.org'" , "'gregkh@linuxfoundation.org'" , "'devel@linuxdriverproject.org'" , KY Srinivasan , "Haiyang Zhang" , Stephen Hemminger , "'George Zhang'" , "'Michal Kubecek'" , "'Asias He'" , "'Vitaly Kuznetsov'" , "'Cathy Avery'" , "'jasowang@redhat.com'" , "'Rolf Neugebauer'" , "'Dave Scott'" , "'Marcelo Cerri'" , "'apw@canonical.com'" , "'olaf@aepfle.de'" , "'joe@perches.com'" , "'linux-kernel@vger.kernel.org'" , "'Dan Carpenter'" Subject: RE: [PATCH] vsock: only load vmci transport on VMware hypervisor by default Thread-Topic: [PATCH] vsock: only load vmci transport on VMware hypervisor by default Thread-Index: AdMXLqHUpz8ZGmCVQCq3Yks74VajMAAMewiAAALTwAAAF9gwEAAbKDYAAA5QEwAAruLPgAAGuDGAAB9bwtABKpD2cA== Date: Tue, 29 Aug 2017 02:36:25 +0000 Message-ID: References: <20170817135559.GG5539@stefanha-x1.localdomain> <04460E3B-B213-4090-96CD-00CEEBE6AC32@vmware.com> <20170818153716.GB17572@stefanha-x1.localdomain> <20170822095437.GB16799@stefanha-x1.localdomain> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Ref=https://api.informationprotection.azure.com/api/72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=decui@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2017-08-22T21:21:18.4448458-07:00; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General authentication-results: spf=none (sender IP is ) smtp.mailfrom=decui@microsoft.com; x-originating-ip: [167.220.1.40] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;KL1P15301MB0054;6:SDgcjVJs9uaJRSjAf+hdFPcB6o+8x1n4aYosbrE16B6SWwlX/FQ7MM8RWh+liNGWIIPQ4AAp8qdj5ICzz0UosbJTYjE428BWUXDibxOMPo5Um/NzRb65+M+qqcyrtAVWe14zBDZzo4DKzVTn7hZQbsphnLRGcQMeklfSKmOytGlLUtZDrIBB+78KTDFfCBFj3+tK/wBAoSSh2tKYg2P39ekBm8Hvb9PW2foqT7GzZM0pbPcrStbd6jdYc574XT2zKsbf81uxagFE4q67hGSzh2+Bf6RQlU1aYR3c1pzeA/DbdBbNxeS3M0yYeKzf3sXT+TZIpV6Ni9sHnhNPHvXbqA==;5:joD0ZN5uumbVbTjcsE9hL6LDUYc7TkFEpoNCMI40PKkxNi4k8NcNjeq8nbBhQ0s9k2wktEUV1OcuRxHlyG7kclEmIJtuf87cwFz2qoL/BKsV4vYlM+X6JMj8Nqw8FImx2IBN3HaZ4nJr31U/8X15aw==;24:F2sKSLnhn3Efo/21wuDgWopNfOBVwpX64e5uqCrydtfovD0R2zJq+VN8Nc3G4tv6S6t1DU8zgqTZCAYgBYDAY1yeD6qIuWdXFwMUHjUvqFo=;7:9z5MiYG/BJMghchQIwS5InS6RRorRYUpGzKDobWzoCzcfwxgKn4xN+0HGC54sdbjsgPkyuiDPB297wDFIHc1DBPoCMURmHBmGvKAHgUq94F+zYqymagSk8FdL7cGvR3lYgfhqm0946r+xKJRZTAa95uhUP1SuXscaJ3jBj5DjBviT4dnrDjnolcmbBI+6NVojgcw/76UdhAH4/gI8at15QlPvbSRU0AI+nsZQ0AAOos= x-ms-office365-filtering-correlation-id: a47dfd56-1565-4efa-8be6-08d4ee86bf1f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:KL1P15301MB0054; x-ms-traffictypediagnostic: KL1P15301MB0054: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(61425038)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6055026)(61426038)(61427038)(6041248)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:KL1P15301MB0054;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:KL1P15301MB0054; x-forefront-prvs: 0414DF926F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(47760400005)(199003)(189002)(189998001)(6436002)(68736007)(2950100002)(77096006)(33656002)(6506006)(478600001)(93886005)(6116002)(101416001)(7696004)(74316002)(102836003)(3846002)(105586002)(229853002)(10290500003)(14454004)(106356001)(5660300001)(10090500001)(4326008)(8990500004)(5005710100001)(54906002)(55016002)(345774005)(9686003)(53936002)(7416002)(25786009)(66066001)(6246003)(8676002)(8936002)(7736002)(81156014)(86612001)(305945005)(2900100001)(3660700001)(3280700002)(76176999)(50986999)(86362001)(97736004)(2906002)(54356999)(81166006);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1P15301MB0054;H:KL1P15301MB0008.APCP153.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2017 02:36:25.8300 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1P15301MB0054 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v7T2b3kA010366 Content-Length: 874 Lines: 29 > From: Dexuan Cui > Sent: Tuesday, August 22, 2017 21:21 > > ... > > ... > > The only problem here would be the potential for a guest and a host app > to > > have a conflict wrt port numbers, even though they would be able to > > operate fine, if restricted to their appropriate transport. > > > > Thanks, > > Jorgen > > Hi Jorgen, Stefan, > Thank you for the detailed analysis! > You have a much better understanding than me about the complex > scenarios. Can you please work out a patch? :-) Hi Jorgen, Stefan, May I know your plan for this? > IMO Linux driver of Hyper-V sockets is the simplest case, as we only have > the "to host" option (the host side driver of Hyper-V sockets runs on > Windows kernel and I don't think the other hypervisors emulate > the full Hyper-V VMBus 4.0, which is required to support Hyper-V sockets). > > -- Dexuan Thanks, -- Dexuan