Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868AbdHFUO0 (ORCPT ); Sun, 6 Aug 2017 16:14:26 -0400 Received: from a2nlsmtp01-02.prod.iad2.secureserver.net ([198.71.225.36]:52794 "EHLO a2nlsmtp01-02.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbdHFUN7 (ORCPT ); Sun, 6 Aug 2017 16:13:59 -0400 x-originating-ip: 107.180.71.197 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: Alex Ng , "K. Y. Srinivasan" Subject: [PATCH 3/5] Drivers: hv: balloon: Show the max dynamic memory assigned Date: Sun, 6 Aug 2017 13:12:54 -0700 Message-Id: <1502050376-23662-3-git-send-email-kys@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1502050348-23624-1-git-send-email-kys@exchange.microsoft.com> References: <1502050348-23624-1-git-send-email-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfGeuFpaOpLzHhL5eg4u39Ufo9P4qgJnI9bZComEstQN52jIS/LiPBLe021kdaDFZSJx9BqEUONqKekDE4DVJJSI5g2+GUvk0d6wywhzB/Rwk4+vS7Vjj DRI68hApZtQJtWXyyidlMFj+KylggavKSY3agxFE1sPlHVj8m39LZUKDtE03qHsWeccux/eI7ZlRN4CucjnRxltfMWXEO2bnWHyV05WuoY68rlhOhGl0NANU 0PilyzIMx6xP1Xqrd4dbOj16SvDDQn+sRvKJxac/si4rMK6LjfeQYZoJcFKZlLrM8BBFSxcXvUFaZ95M86hUmL86CWHhhJdmndbP1uHV+kD7Nes2RVHCwXO+ RrOm9vfSWqt1wa4d8esLPZxEzplpJvtSIqJoVSHhGmkj+k2z/k55HwnPg9b5wX7Kpwf+/n5kLx9ZMiEnVuz/QfSldDKGh3Yl2+lh7X+zAGhZq0As1opW2ljY ofOGCiJUVs35Y3fzL9LwJ0PoBlvlytzCtDowZJMzTmq+T6tc/XDQGRKpYXwDagI45/Hr55chy5gAFc4CMMb+K+QnThL5t9j7WlZNA2AUf/6agFvX0TVM8C1O pmk= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 987 Lines: 29 From: Alex Ng Previously we were only showing max number of pages. We should make it more clear that this value is the max amount of dynamic memory that the Hyper-V host is willing to assign to this guest. Signed-off-by: Alex Ng Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 0a5c318..7cec482 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -1035,8 +1035,8 @@ static void process_info(struct hv_dynmem_device *dm, struct dm_info_msg *msg) if (info_hdr->data_size == sizeof(__u64)) { __u64 *max_page_count = (__u64 *)&info_hdr[1]; - pr_info("INFO_TYPE_MAX_PAGE_CNT = %llu\n", - *max_page_count); + pr_info("Max. dynamic memory size: %llu MB\n", + (*max_page_count) >> (20 - PAGE_SHIFT)); } break; -- 1.7.1