[SeaBIOS] [PATCH 1/3] qemu: factor out qemu_cfg_detect()