]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
config: Add function to check if fw_cfg exists
authorPetr Berky <petr.berky@email.cz>
Tue, 28 Mar 2017 21:03:53 +0000 (23:03 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 30 Mar 2017 01:13:21 +0000 (21:13 -0400)
commit5fbf246bdb9c1ee3f474d3f343e2a79db060c93c
tree95be7aef28b1251eaee1aab6ccccb4f1546d21f1
parentc68aff57ce317d9f2d69d20eba893a10d964f316
config: Add function to check if fw_cfg exists

It was found qemu_get_present_cpus_count may return impossible
number of cpus because of not checking if fw_cfg exists before
using it. That may lead to undefined behavior of emulator,
in particular Bochs that freezes.

Signed-off-by: Petr Berky <petr.berky@email.cz>
src/fw/paravirt.c
src/fw/paravirt.h