Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1704957 > unrolled thread

[PATCH 3/5] Drivers: hv: balloon: Show the max dynamic memory assigned

Started bykys@exchange.microsoft.com
First post2017-08-06 22:20 +0200
Last post2017-08-06 22:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/5] Drivers: hv: balloon: Show the max dynamic memory assigned kys@exchange.microsoft.com - 2017-08-06 22:20 +0200

#1704957 — [PATCH 3/5] Drivers: hv: balloon: Show the max dynamic memory assigned

Fromkys@exchange.microsoft.com
Date2017-08-06 22:20 +0200
Subject[PATCH 3/5] Drivers: hv: balloon: Show the max dynamic memory assigned
Message-ID<ubAbM-6NP-11@gated-at.bofh.it>
From: Alex Ng <alexng@messages.microsoft.com>

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 <alexng@messages.microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
---
 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web