Skip to content

Commit

Permalink
Drivers: hv: balloon: Show the max dynamic memory assigned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Ng authored and Greg Kroah-Hartman committed Aug 16, 2017
1 parent 6df8d9a commit 7b6e54b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hv/hv_balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b6e54b

Please sign in to comment.