You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/stubs
Thomas Huth e0091133e3 qga: Allow building of the guest agent without system emulators or tools
If configuring with "--disable-system --disable-user --enable-guest-agent"
the linking currently fails with:

qga/qemu-ga.p/commands.c.o: In function `qmp_command_info':
build/../../home/thuth/devel/qemu/qga/commands.c:70: undefined reference to `qmp_command_name'
build/../../home/thuth/devel/qemu/qga/commands.c:71: undefined reference to `qmp_command_is_enabled'
build/../../home/thuth/devel/qemu/qga/commands.c:72: undefined reference to `qmp_has_success_response'
qga/qemu-ga.p/commands.c.o: In function `qmp_guest_info':
build/../../home/thuth/devel/qemu/qga/commands.c:82: undefined reference to `qmp_for_each_command'
qga/qemu-ga.p/commands.c.o: In function `qmp_guest_exec':
build/../../home/thuth/devel/qemu/qga/commands.c:410: undefined reference to `qbase64_decode'
qga/qemu-ga.p/channel-posix.c.o: In function `ga_channel_open':
build/../../home/thuth/devel/qemu/qga/channel-posix.c:214: undefined reference to `unix_listen'
build/../../home/thuth/devel/qemu/qga/channel-posix.c:228: undefined reference to `socket_parse'
build/../../home/thuth/devel/qemu/qga/channel-posix.c:234: undefined reference to `socket_listen'
qga/qemu-ga.p/commands-posix.c.o: In function `qmp_guest_file_write':
build/../../home/thuth/devel/qemu/qga/commands-posix.c:527: undefined reference to `qbase64_decode'

Let's make sure that we also compile and link the required files if
the system emulators have not been enabled.

Message-Id: <20221110083626.31899-1-thuth@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2 years ago
..
bdrv-next-monitor-owned.c Include qemu-common.h exactly where needed 6 years ago
blk-commit-all.c Include qemu-common.h exactly where needed 6 years ago
blk-exp-close-all.c block: move block exports to libblockdev 4 years ago
blockdev-close-all-bdrv-states.c all: Clean up includes 9 years ago
change-state-handler.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 5 years ago
cmos.c stubs/cmos: Use correct include 4 years ago
cpu-get-clock.c cpu-timers, icount: new modules 4 years ago
cpu-synchronize-state.c cpus: prepare new CpusAccel cpu accelerator interface 4 years ago
cpus-get-virtual-clock.c cpus: prepare new CpusAccel cpu accelerator interface 4 years ago
dump.c Include qemu-common.h exactly where needed 6 years ago
error-printf.c Move error_printf_unless_qmp() with monitor unit 3 years ago
fdset.c monitor: simplify functions for getting a dup'd fdset entry 4 years ago
fw_cfg.c hw/nvram/fw_cfg: Add fw_cfg_arch_key_name() 6 years ago
gdbstub.c Clean up includes some more 9 years ago
get-vm-name.c include: move qemu_get_vm_name() to sysemu.h 3 years ago
icount.c replay: notify vCPU when BH is scheduled 2 years ago
io_uring.c stubs: add stubs for io_uring interface 5 years ago
iothread-lock-block.c main-loop.h: introduce qemu_in_main_thread() 3 years ago
iothread-lock.c async: the main AioContext is only "current" if under the BQL 3 years ago
is-daemonized.c Include qemu-common.h exactly where needed 6 years ago
isa-bus.c stubs: add isa_create_simple 4 years ago
linux-aio.c linux-aio: properly bubble up errors from initialization 6 years ago
meson.build qga: Allow building of the guest agent without system emulators or tools 2 years ago
migr-blocker.c Include qemu-common.h exactly where needed 6 years ago
module-opts.c modules: use modinfo for qemu opts load 3 years ago
monitor-core.c Remove qemu-common.h include from most units 3 years ago
monitor.c hmp: Fail gracefully if chardev is already in use 5 years ago
pci-bus.c stubs: add pci_create_simple 4 years ago
physmem.c stubs: add qemu_ram_block_from_host() and qemu_ram_get_fd() 2 years ago
qdev.c qapi/qdev.json: add DEVICE_UNPLUG_GUEST_ERROR QAPI event 3 years ago
qemu-timer-notify-cb.c cpu-timers, icount: new modules 4 years ago
qmp-command-available.c remove preconfig state 4 years ago
qmp-quit.c chardev: don't exit() straight away on C-a x 3 years ago
qmp_memory_device.c qom/object: Move Object typedef to 'qemu/typedefs.h' 5 years ago
qtest.c cpu-timers, icount: new modules 4 years ago
ram-block.c util/vfio-helpers.c: Use ram_block_discard_disable() in qemu_vfio_open_pci() 4 years ago
ramfb.c Revert "hw/display/ramfb: initialize fw-config space with xres/ yres" 5 years ago
replay-tools.c chardev: src buffer const for write functions 2 years ago
replay.c replay: do not build if TCG is not available 4 years ago
runstate-check.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 5 years ago
semihost.c semihosting: Allow optional use of semihosting from userspace 2 years ago
sysbus.c stubs: Clean up includes 9 years ago
target-get-monitor-def.c Clean up includes some more 9 years ago
target-monitor-defs.c Clean up includes some more 9 years ago
trace-control.c trace: remove global 'uint16 dstate[]' array 8 years ago
usb-dev-stub.c qapi: introduce x-query-usb QMP command 3 years ago
uuid.c qapi: Restrict query-uuid command to machine code 4 years ago
vfio-user-obj.c vfio-user: handle device interrupts 2 years ago
vm-stop.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 5 years ago
vmgenid.c qapi: Restrict query-vm-generation-id command to machine code 4 years ago
vmstate.c cpu: Move CPUClass::vmsd to SysemuCPUOps 4 years ago
win32-kbd-hook.c ui/win32-kbd-hook: handle AltGr in a hook procedure 5 years ago
xen-hw-stub.c hw/i386/xen/xen-hvm: Inline xen_piix_pci_write_config_client() and remove it 2 years ago