Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4543811pxv; Tue, 29 Jun 2021 09:24:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwi2sLb6A9MzqKb/FHWctsJ6i8S8C/+c9tnfDTkLCTc/9FS1foiR8VToJtoh1jU7ZYzqz/ X-Received: by 2002:a02:3505:: with SMTP id k5mr5012618jaa.123.1624983870202; Tue, 29 Jun 2021 09:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624983870; cv=none; d=google.com; s=arc-20160816; b=K1aGSRR4/JOMkWKTPVye0secaFQc65CiM6C3xPsm6dy06420BxOlWif2huCMsuwfWp VDXEdwgZWQmbjZVzRiTRzxZ7mZlMvecLSQ8uQmSHCjRAbMDKc+IuGzboiIH/t+ZE5C+A hdf1f8JDq+tm2Rau8wqRU193Oj4yYEWVGIF//d1OMXUZsi6spp2iq4t7kYuY7ZlF6f/A av19NguwN2tXNYMFANsrrrU1MQ1YoNPlrN5A1ChARayJ0nxGIT0HTHZmQrC6knwNXwei VxNWFpeCFJBcsYs/2IbvSNSmM2kIe99WFfeX/ZY0MMerfM90dGids7tVtQ3AlxWixZYT gq9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=Z7pcrKqmM92YWVYHFuan2ZevsK4gQaBE9jCjMfyNwkE=; b=rr68sog1/ER8qQzROdhFV4J8MgBdMiMhkKRP5QYfWkdi8sMllchC1uhBZ1Q/CZa0DT Ed9JcFuJoF+Z2o63yDac5cohJQ1j/pcWy4HhJOu8ZB1g7GdYzz7drEOyhlZFTISUzIFo OCaD8BYxjKo1QydqpMkG6AZ4MVMXhQqT6JKZi6hk6AQ3o2A1cbeppLV8CYfSOjdyjlgF NIV1LvTyA220HRLtW+Tl+5fL3MHYOylAeo8X6lUfslM61LG8LwKVtLRk4TAwmCSIPESx HDZ6tr36JSWWgnASp17O1/nJZxlWU0dR2NbA5xiAZEGYjGg1uhsCGd8/5WNzMy1Bleq2 jt7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=UsVBC2em; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si18635571iok.60.2021.06.29.09.24.17; Tue, 29 Jun 2021 09:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=UsVBC2em; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232355AbhF2QX4 (ORCPT + 99 others); Tue, 29 Jun 2021 12:23:56 -0400 Received: from linux.microsoft.com ([13.77.154.182]:48816 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232134AbhF2QXz (ORCPT ); Tue, 29 Jun 2021 12:23:55 -0400 Received: from [192.168.86.36] (c-73-38-52-84.hsd1.vt.comcast.net [73.38.52.84]) by linux.microsoft.com (Postfix) with ESMTPSA id 692EF20B6C50; Tue, 29 Jun 2021 09:21:27 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 692EF20B6C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1624983688; bh=Z7pcrKqmM92YWVYHFuan2ZevsK4gQaBE9jCjMfyNwkE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=UsVBC2embOIFocHXP6D79DLndcRWKHAcjIjP5P/vNzJ2jTp2kHNxVcx6UwtViqkv2 DKipN/zYSzehkHHciHbehZwyld2JS/kcdKWy56G8tCALTABhx/GYbva1aXhYNpwNy6 FdacPgI22svraBIocRoGwncNPDkwJf1iHgm/z0wY= Subject: Re: [PATCH 06/17] mshv: SynIC port and connection hypercalls To: Wei Liu Cc: Nuno Das Neves , Sunil Muthuswamy , Michael Kelley , Vitaly Kuznetsov , "K. Y. Srinivasan" , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org References: <3125953aae8e7950a6da4c311ef163b79d6fb6b3.1622654100.git.viremana@linux.microsoft.com> <20210629130652.lzydiyqgwd47lhue@liuwe-devbox-debian-v2> From: Vineeth Pillai Message-ID: <28a207e5-5e8d-4d0d-86c7-0776d354768d@linux.microsoft.com> Date: Tue, 29 Jun 2021 12:21:22 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210629130652.lzydiyqgwd47lhue@liuwe-devbox-debian-v2> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/29/2021 9:06 AM, Wei Liu wrote: > On Wed, Jun 02, 2021 at 05:20:51PM +0000, Vineeth Pillai wrote: >> Hyper-V enables inter-partition communication through the port and >> connection constructs. More details about ports and connections in >> TLFS chapter 11. >> >> Implement hypercalls related to ports and connections for enabling >> inter-partiion communication. >> >> Signed-off-by: Vineeth Pillai > Vineeth, feel free to squash the following patch. Thanks Wei, I will have this in the next iteration. ~Vineeth > > ---8<--- > >From afb9ab422895364216acb4261399f6f5154eea17 Mon Sep 17 00:00:00 2001 > From: Wei Liu > Date: Tue, 29 Jun 2021 12:58:47 +0000 > Subject: [PATCH] fixup! mshv: SynIC port and connection hypercalls > > Signed-off-by: Wei Liu > --- > drivers/hv/hv_call.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/hv/hv_call.c b/drivers/hv/hv_call.c > index d5cdbe4e93da..30aefcbdda85 100644 > --- a/drivers/hv/hv_call.c > +++ b/drivers/hv/hv_call.c > @@ -797,7 +797,7 @@ hv_call_create_port(u64 port_partition_id, union hv_port_id port_id, > if (status != HV_STATUS_INSUFFICIENT_MEMORY) { > pr_err("%s: %s\n", > __func__, hv_status_to_string(status)); > - ret = -hv_status_to_errno(status); > + ret = hv_status_to_errno(status); > break; > } > ret = hv_call_deposit_pages(NUMA_NO_NODE, > @@ -826,7 +826,7 @@ hv_call_delete_port(u64 port_partition_id, union hv_port_id port_id) > > if (status != HV_STATUS_SUCCESS) { > pr_err("%s: %s\n", __func__, hv_status_to_string(status)); > - return -hv_status_to_errno(status); > + return hv_status_to_errno(status); > } > > return 0; > @@ -866,7 +866,7 @@ hv_call_connect_port(u64 port_partition_id, union hv_port_id port_id, > if (status != HV_STATUS_INSUFFICIENT_MEMORY) { > pr_err("%s: %s\n", > __func__, hv_status_to_string(status)); > - ret = -hv_status_to_errno(status); > + ret = hv_status_to_errno(status); > break; > } > ret = hv_call_deposit_pages(NUMA_NO_NODE, > @@ -896,7 +896,7 @@ hv_call_disconnect_port(u64 connection_partition_id, > > if (status != HV_STATUS_SUCCESS) { > pr_err("%s: %s\n", __func__, hv_status_to_string(status)); > - return -hv_status_to_errno(status); > + return hv_status_to_errno(status); > } > > return 0; > @@ -918,7 +918,7 @@ hv_call_notify_port_ring_empty(u32 sint_index) > > if (status != HV_STATUS_SUCCESS) { > pr_err("%s: %s\n", __func__, hv_status_to_string(status)); > - return -hv_status_to_errno(status); > + return hv_status_to_errno(status); > } > > return 0;