Files
libguestfs/lib
Richard W.M. Jones 593a382840 lib: Remove guestfs_int_qemu_version
This function is now only used in one place, to print the version of
qemu in direct mode, when debugging is enabled.

Remove this function and replace with a direct command invocation
('qemu --version').  We only need to run this command when debugging
is enabled, and we copy all of the output to the debug channel.

I have made the assumption here that qemu -version does not try to
create a display device.  (The previous invocation of qemu -help
actually ran 'qemu -display none -help' indicating that this was not
always the case.)

This is actually an improvement on before, since now we get to see the
full output of 'qemu --version'.  The new output looks like:

  libguestfs: begin testing qemu features
  libguestfs: command: run: /usr/bin/qemu-kvm
  libguestfs: command: run: \ -version
  libguestfs: qemu: QEMU emulator version 10.1.0 (qemu-10.1.0-8.fc44)
  libguestfs: qemu: Copyright (c) 2003-2025 Fabrice Bellard and the QEMU Project developers
2025-09-29 16:49:03 +01:00
..
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2017-01-26 15:05:46 +00:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2024-06-27 16:27:06 +01:00
2021-04-08 11:12:17 +01:00
2025-02-16 17:00:46 +00:00
2025-08-04 15:49:50 +01:00
2017-01-26 15:05:46 +00:00
2025-02-16 17:00:46 +00:00
2024-10-22 16:03:16 +01:00
2025-02-16 17:00:46 +00:00
2017-01-26 15:05:46 +00:00
2021-04-08 11:12:17 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-09-09 16:29:13 +01:00
2025-02-16 17:00:46 +00:00
2025-02-16 17:00:46 +00:00
2025-09-29 16:49:03 +01:00
2025-02-16 17:00:46 +00:00
2017-01-26 15:05:46 +00:00
2022-08-16 15:42:30 +01:00
2017-01-26 15:05:46 +00:00
2025-02-16 17:00:46 +00:00
2017-01-26 15:05:46 +00:00
2025-02-16 17:00:46 +00:00