libxl_pci: Only check if qemu-dm is running in qemu-trad case
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 30 Jul 2019 14:56:30 +0000 (15:56 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 20 Sep 2019 09:42:43 +0000 (10:42 +0100)
commitb6b69029d78c749ad9ca8d10e820027b7eb30485
tree9caaa29443cdfd036ad94ed652ebbe7a94fba2c0
parent60fce0ec6b5142e6cccc962c9a0820573eb0468f
libxl_pci: Only check if qemu-dm is running in qemu-trad case

QEMU upstream (or qemu-xen) may not have set "running" state in
xenstore. "running" with QEMU doesn't mean that the binary is
running, it means that the emulation have started. When adding a
pci-passthrough device to QEMU, we do so via QMP, we have a direct
answer to whether QEMU is running or not, no need to check ahead.

Moving the check to do it only with qemu-trad makes upcoming changes
simpler.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_pci.c