]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: balloon: Support status report for larger page sizes
authorBoqun Feng <boqun.feng@gmail.com>
Fri, 25 Mar 2022 02:32:11 +0000 (10:32 +0800)
committerWei Liu <wei.liu@kernel.org>
Wed, 6 Apr 2022 13:15:06 +0000 (13:15 +0000)
commitb3d6dd09ff00fdcf4f7c0cb54700ffd5dd343502
treecd587a0321cce431ab9e48eafea65beaa93b26a5
parentb6cae15b5710c8097aad26a2e5e752c323ee5348
Drivers: hv: balloon: Support status report for larger page sizes

DM_STATUS_REPORT expects the numbers of pages in the unit of 4k pages
(HV_HYP_PAGE) instead of guest pages, so to make it work when guest page
sizes are larger than 4k, convert the numbers of guest pages into the
numbers of HV_HYP_PAGEs.

Note that the numbers of guest pages are still used for tracing because
tracing is internal to the guest kernel.

Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220325023212.1570049-2-boqun.feng@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_balloon.c