diff options
author | Alex Ng <alexng@messages.microsoft.com> | 2017-08-06 22:12:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-16 18:14:43 +0200 |
commit | 7b6e54b524b66b60e4cf49e8aa7c43045ebb987d (patch) | |
tree | 2bb9a6d2d6726be53a8c9a0992180f4679060851 /drivers/hv | |
parent | Drivers: hv: balloon: Correctly update onlined page count (diff) | |
download | linux-7b6e54b524b66b60e4cf49e8aa7c43045ebb987d.tar.xz linux-7b6e54b524b66b60e4cf49e8aa7c43045ebb987d.zip |
Drivers: hv: balloon: Show the max dynamic memory assigned
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r-- | 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 0a5c318eedc1..7cec4826b011 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; |