Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4569008pxv; Tue, 29 Jun 2021 10:01:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK7XfVx6oS6yoFqu6KQnjZl4LhMwspH+1ilPLwVR/7Qj/j0Vpkter6XdbXYE4Amu2l7Ttn X-Received: by 2002:a17:906:31d4:: with SMTP id f20mr30244367ejf.383.1624986078486; Tue, 29 Jun 2021 10:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624986078; cv=none; d=google.com; s=arc-20160816; b=flBFPbJIwLsBmFOE1WHUoTEo4zCRFGixAdyvZS7CaadDONFgu13+9OlGmMIZauogNs /sc1rUxyuWTq4jVQWYnKup9v8zgDnN/5bnA8ifOwFcJDvk9S6WN3B0/nZdhcp//M+ABU Mjf+unkjXK8g6i3qUxjbCtTRfdxu4XWXSYyfXENtzs0636Ha3W54fPfa9yeu5r8YavXT 8pd0b7/QThVPaLwFxqTHO7OFmSie89+SBm5xSoH8ZI69XnzuSUXzHAlk5P8meIfMQVWg jTZvepC9nMnm6+VJFmhUnpnDSBl710VkMB2dTOorp03ezQs6Ehrc2ai5WHwWA8JIBR+5 LVZQ== 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=UGuCmY2gPMYQ9bMiW0tOwbjM4PjROH2J1POM9wWOptw=; b=aSoT0qufM9s6xwRFGptr4e6/XdaSz4+3vQzDSaKHiDi7Uu4gepYKPlLSElAAkuA3hm lW5qvFiCoAl20MZY79keubZn43Mt0nFwMrOiZ4oUsH//QcNhrBTAwZ7NJJFphXru17jm uM85VMn6sZXYDIX+Ofz2BHedbvILyAbQ38vpsqaCfBebfmgiZWX30dHfuvXLKuJmb3Zc ixEMn5CRi5HXoCg6DOwJPjrQzsQnFExDP/ziAZ79Wnz3uS71zHUoXzQ7iUPsfyWrVQSj RG+T1PgPYvTBFHvetkh9Yjy0tJTLDhmr4pZH5rWxfnQ7lchmy+PuMrqb2zVFEySoOUHw ZQdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=TBc3pWLx; 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 ca9si3147451edb.172.2021.06.29.10.00.53; Tue, 29 Jun 2021 10:01:18 -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=TBc3pWLx; 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 S232508AbhF2QW0 (ORCPT + 99 others); Tue, 29 Jun 2021 12:22:26 -0400 Received: from linux.microsoft.com ([13.77.154.182]:48616 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232458AbhF2QWZ (ORCPT ); Tue, 29 Jun 2021 12:22:25 -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 69EDB20B7178; Tue, 29 Jun 2021 09:19:57 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 69EDB20B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1624983598; bh=UGuCmY2gPMYQ9bMiW0tOwbjM4PjROH2J1POM9wWOptw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=TBc3pWLxoG23SAWp+BADgnsv+ueyd/uIWg1s8zucmtRGgeKp20svoXBv3KKDjqAVW 9xG9bWAuNOhAOUnGT/XcOQOiGiFhZXwYIuLcfc9pp6T62gs6ceNfEYxZItcT3HmK6Q vKAIGLikOZCXStOCC/mVjgec9c7K27jTjtmY1cOE= Subject: Re: [PATCH 06/17] mshv: SynIC port and connection hypercalls To: Wei Liu , Vitaly Kuznetsov Cc: Nuno Das Neves , Sunil Muthuswamy , Michael Kelley , "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> <87v96lykrz.fsf@vitty.brq.redhat.com> <20210629125519.27vv3afwhjoobekf@liuwe-devbox-debian-v2> From: Vineeth Pillai Message-ID: <5ab6720c-d44f-e9ff-5b0e-47d65d210e3b@linux.microsoft.com> Date: Tue, 29 Jun 2021 12:19:52 -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: <20210629125519.27vv3afwhjoobekf@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 8:55 AM, Wei Liu wrote: > >>> + if (status != HV_STATUS_INSUFFICIENT_MEMORY) { >>> + pr_err("%s: %s\n", >>> + __func__, hv_status_to_string(status)); >>> + ret = -hv_status_to_errno(status); >> In Nuno's "x86/hyperv: convert hyperv statuses to linux error codes" >> patch, hv_status_to_errno() already returns negatives: > Yes, this needs to be fixed otherwise one of the following patch has the > error handling check reversed. Sorry I missed replying to this. Thanks Vitaly and Wei, I will have this fixed in the next iteration. ~Vineeth