9.27 PVHVM Guest Boot Delayed by Xen Balloon Driver

Booting PVHVM guests takes longer than expected and the following message is written to stack trace:

INFO: task <task_name>:234 blocked for more than 120 seconds
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

This issue occurs when the virtual machine configuration includes a maximum memory value that is much larger than the available memory value. This configuration causes the Xen balloon driver to shrink the guest memory to the target size. As a result, the boot time for the virtual machine takes longer than expected.

Workaround: The greater the difference between the values for maximum memory and available memory, the longer it takes to boot PVHVM guests. If you encounter this issue, you should either decrease the maximum memory or increase the available memory in the virtual machine configuration.

Bug 25709221