Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3166106imj; Mon, 18 Feb 2019 21:38:38 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaw8Xm0PgskNZBvpdtNKZA2wwm+83rpsxS8Yo/Sf9UvE8aLkcIrg5kTdd+Z/WizD0/S/NC2 X-Received: by 2002:a17:902:22a:: with SMTP id 39mr21182394plc.153.1550554718408; Mon, 18 Feb 2019 21:38:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550554718; cv=none; d=google.com; s=arc-20160816; b=WVLizhktXkNd/i5ScbXo6ln8Y5ZSQwu18wUmW93OwBZrQ09Q2CZxl1x6hDDTQ0Zf4w yTHMPOy0kedeTquQtN01BZC/QIFuku2jTYRO+IY2b23ERTUAVYjjwPeQj+IqNlnLxAfo SSbODkL+nXXaokio6ptVZpoqEj4nghIn5HyKoBHdeSJqOwbmNkivuz/kUYfNViIjO8UQ BO9C+kqSCkHmy5BKrUbk9GLikXM2apE0kAJfT+TOxksYncFglwPtasfSgJHCgT5/VRre gJIBnobTI9D5NMsLfk9zT+U2fS4gBnwmBc/lSnfJQx0fqqqZdvIKEvHs3ACLwDWwGs/O ua0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1pV9lXDp01muHyAVZEjup76eYxXHTzAQfEtdRGAZvFk=; b=aICMdXoGkHnleMLX6KMLlBCqmNX/soriIKZJT6oZPCl+GGSWtXSEJ4XQIvgyrefrlD OaIx6uGq35t3awuWemio74oXJg1JSO1Em1fs4tJakBE76a/xCm4ly0ao7ycCUODlw/Vw hjp9H19ddTeSX1tyvpQzorziJohVlUEVzZZZerpu/MjVr0hCSNIY6zVY22V1gZkla778 JyjBMmQCwzd8s4Scziiqf5gE8jnADRCB7RlA0PNxOIBrElV8ZexhzyoQWrA7rTS+5FcP U/W6mfl9n5loA85M0ihnSCY8sljjHKFDwazboGK+xLhvej2Z/P+e7afijN39KHVM+2fE SNZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zprfjkai; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g130si9407849pgc.204.2019.02.18.21.38.22; Mon, 18 Feb 2019 21:38:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zprfjkai; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725801AbfBSFh7 (ORCPT + 99 others); Tue, 19 Feb 2019 00:37:59 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:54504 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbfBSFh7 (ORCPT ); Tue, 19 Feb 2019 00:37:59 -0500 Received: by mail-it1-f194.google.com with SMTP id f10so3384456ita.4 for ; Mon, 18 Feb 2019 21:37:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1pV9lXDp01muHyAVZEjup76eYxXHTzAQfEtdRGAZvFk=; b=ZprfjkaiBZHTnA2NKYMXf6jQrPLBGFzHse+YKQB661zPyUMtpdhUNT9FS/By4vWA/H TZ//xmR35t0XrJLq/BQPfvMU+Sb7+aprWMSDpazjloxXBxhU9+Ljo6ecfzQoesd24TtD eNW6NAJGBYoDGGZl2+lll5XnsUvCu5QLVCsxSF6LpUlb2AEUjEATE1RWR1Rhl1/WkVBR Ht5pGHc3dvDmjzD2jxQmGZP+ntoI5Ioz1D50aUkCSs0ejDkCZvXdAukTQYD1gitxL64y LzXjVtjpYnDT4kv8wj1Kirxqw7rbDRdtIwseFvi1Cd6H73mraalDFyteNl5sd/HNfLhW 4k1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1pV9lXDp01muHyAVZEjup76eYxXHTzAQfEtdRGAZvFk=; b=pyLi/mng5E22gnCCGQ+L6GpV8ortTwfDNhB1sN9/iuzuA5oaHKBCvDlhjtQRJmNmcJ 46+8uutu6dsW1gCEUzjKZkSx+1OXU81rqvzcj+xIX+RI2i/2azyCVduQjQxou9DI26Xn UwMdP69Oz6zPf9nZmMp42gJSYPMiN27Oaw/4FodNlxgPYkaCBQS2oBj33hcqrx0csCGd nHkn+KQTc3Sluz69QvxB6CWcft2GefFugA0/5/zAr1lRwAvLlQnXpkRRR1+53S7BwR3a XNBBpl9njhEo1up4JMPeXMIuYx6iFrKmryaXjNB6Ns3bxqrOKfiQN3jUw30AI3gS+6n1 rT7Q== X-Gm-Message-State: AHQUAuZq+mg8E78g5VxGrhK2hBxQMgIkA9AuH5kbowArjpTM/weShjwt ysHJHTyHv6WQwbpX8j6Qybb/IO8nlWQ= X-Received: by 2002:a02:1cca:: with SMTP id c193mr14764025jac.17.1550554678394; Mon, 18 Feb 2019 21:37:58 -0800 (PST) Received: from ubu-Virtual-Machine (66-188-57-61.dhcp.bycy.mi.charter.com. [66.188.57.61]) by smtp.gmail.com with ESMTPSA id f13sm6405476iol.82.2019.02.18.21.37.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 21:37:57 -0800 (PST) Date: Tue, 19 Feb 2019 00:37:54 -0500 From: Kimberly Brown To: Michael Kelley , Long Li , Sasha Levin , Stephen Hemminger , Dexuan Cui Cc: "K. Y. Srinivasan" , Haiyang Zhang , devel@linuxdriverproject.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Drivers: hv: vmbus: Fix sysfs functions that display monitor id and page data Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of the monitor id and monitor page data sysfs files display incorrect data. This patchset provides the following changes: 1) Change the monitor_pages index in server_monitor_pending_show() to '0', which is the correct index for the server. 2) If monitor pages are not allocated to a channel, return -EINVAL when the channel's monitor id and monitor page data sysfs files are opened. The data that is currently shown in sysfs is incorrect. Changes in v2: Patch 1: "Change server monitor_pages index to 0" - Added the "Acked-by" line received for v1. Patch 2: "Return -EINVAL if monitor_allocated not set" - Changed the return value for cases where monitor_allocated is not set to "-EINVAL" as suggested by S. Hemminger. - Updated the commit message to provide more details about the monitor page mechanism as suggested by S. Hemminger. - Updated the sysfs documentation to describe the new return value. Kimberly Brown (2): Drivers: hv: vmbus: Change server monitor_pages index to 0 Drivers: hv: vmbus: Return -EINVAL if monitor_allocated not set Documentation/ABI/stable/sysfs-bus-vmbus | 15 +++++++-- drivers/hv/vmbus_drv.c | 39 +++++++++++++++++++++++- 2 files changed, 50 insertions(+), 4 deletions(-) -- 2.17.1