aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2020-10-29 16:33:56 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2020-11-05 12:18:48 +1100
commitf29b959dc6871c9d8df781d1bedcfaebc76d5565 (patch)
treec2b01481c307229b61288d88f9daefb87fb2f688 /ui
parent184b813e7b1fe2dc27e7657befc907b5aac3b619 (diff)
downloadqemu-f29b959dc6871c9d8df781d1bedcfaebc76d5565.zip
qemu-f29b959dc6871c9d8df781d1bedcfaebc76d5565.tar.gz
qemu-f29b959dc6871c9d8df781d1bedcfaebc76d5565.tar.bz2
spapr: Convert hpt_prepare_thread() to use qemu_try_memalign()
HPT resizing is asynchronous: the guest first kicks off the creation of a new HPT, then it waits for that new HPT to be actually created and finally it asks the current HPT to be replaced by the new one. In the case of a userland allocated HPT, this currently relies on calling qemu_memalign() which aborts on OOM and never returns NULL. Since we seem to have path to report the failure to the guest with an H_NO_MEM return value, use qemu_try_memalign() instead of qemu_memalign(). Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <160398563636.32380.1747166034877173994.stgit@bahia.lan> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions