Commit 5e8453fd authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Tim Gardner

Drivers: hv: balloon: reset host_specified_ha_region

BugLink: http://bugs.launchpad.net/bugs/1616677

We set host_specified_ha_region = true on certain request but this is a
global state which stays 'true' forever. We need to reset it when we
receive a request where ha_region is not specified. I did not see any
real issues, the bug was found by code inspection.
Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit d19a55d6)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Acked-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 65604b05
...@@ -1400,6 +1400,7 @@ static void balloon_onchannelcallback(void *context) ...@@ -1400,6 +1400,7 @@ static void balloon_onchannelcallback(void *context)
* This is a normal hot-add request specifying * This is a normal hot-add request specifying
* hot-add memory. * hot-add memory.
*/ */
dm->host_specified_ha_region = false;
ha_pg_range = &ha_msg->range; ha_pg_range = &ha_msg->range;
dm->ha_wrk.ha_page_range = *ha_pg_range; dm->ha_wrk.ha_page_range = *ha_pg_range;
dm->ha_wrk.ha_region_range.page_range = 0; dm->ha_wrk.ha_region_range.page_range = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment