1. 13 6月, 2019 2 次提交
    • A
      tests: Tweak vircapstest_LDADD · 6b8048b4
      Andrea Bolognani 提交于
      We optionally include QEMU and LXC support in this test and
      depending on which is enabled (if either is enabled at all) we
      need to link in different objects.
      
      Right now we implicitly depend on the fact that qemu_LDADDS is
      empty when QEMU is not enabled to get the correct set of objects,
      but it's better to be explicit about it.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJim Fehlig <jfehlig@suse.com>
      6b8048b4
    • A
      tests: Tweak cputest_LDADDS · 74d8909f
      Andrea Bolognani 提交于
      We want all test programs using qemu_LDADDS to also use LDADDS,
      and cputest is the only existing exception.
      
      We can't just replace GNULIB_LIBS with LDADDS though, even though
      the latter is a superset of the former, because that would result
      in a linking error due to including the same object twice:
      
        /usr/bin/ld:
        ../src/libvirt_probes.o:.../src/libvirt_probes.o.dtrace-temp.c:141:
        multiple definition of `libvirt_object_new_semaphore';
        ../src/libvirt_probes.o:.../src/libvirt_probes.o.dtrace-temp.c:141:
        first defined here
      
      To work around this, we include both qemu_LDADDS and LDADDS when
      QEMU support is enabled, and just LDADDS otherwise.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJim Fehlig <jfehlig@suse.com>
      74d8909f
  2. 12 6月, 2019 12 次提交
  3. 07 6月, 2019 4 次提交
  4. 05 6月, 2019 1 次提交
  5. 04 6月, 2019 3 次提交
  6. 03 6月, 2019 7 次提交
  7. 30 5月, 2019 1 次提交
    • J
      build: fix linking libqemutestdriver with LTO enabled · 76b420d0
      Jim Fehlig 提交于
      openSUSE Factory is in the process of enabling Link Time Optimization [0]
      and stumbled upon missing symbols when linking libqemutestdriver
      
      libtool: link: gcc -shared  -fPIC -DPIC  ../src/libvirt_qemu_probes.o  \
      -Wl,--whole-archive ../src/.libs/libvirt_driver_qemu_impl.a \
      ../src/.libs/libvirt_driver_network_impl.a \
      ../src/.libs/libvirt_driver_storage_impl.a -Wl,--no-whole-archive  \
      -lcap-ng -lgnutls -lnl-route-3 -lnl-3 -ldbus-1 -lselinux -lapparmor \
      /usr/lib/libxml2.so -ldl -lz -llzma -lm -lblkid -ltirpc  \
      -fstack-protector-strong -O2 -fstack-protector-strong -flto=16 -g -O2 \
      -fstack-protector-strong -flto=16 -g \
      -Wl,-soname -Wl,libqemutestdriver.so -o .libs/libqemutestdriver.so
      ...
      /usr/lib/gcc/i586-suse-linux/9/../../../../i586-suse-linux/bin/ld: ./.libs/libqemutestdriver.so: undefined reference to `mdir_name'
      /usr/lib/gcc/i586-suse-linux/9/../../../../i586-suse-linux/bin/ld: ./.libs/libqemutestdriver.so: undefined reference to `rpl_ioctl'
      /usr/lib/gcc/i586-suse-linux/9/../../../../i586-suse-linux/bin/ld: ./.libs/libqemutestdriver.so: undefined reference to `rpl_pipe2'
      /usr/lib/gcc/i586-suse-linux/9/../../../../i586-suse-linux/bin/ld: ./.libs/libqemutestdriver.so: undefined reference to `recvfd'
      /usr/lib/gcc/i586-suse-linux/9/../../../../i586-suse-linux/bin/ld: ./.libs/libqemutestdriver.so: undefined reference to `c_strcasecmp'
      
      The missing symbols are provided by GNUlib. Add it when linking
      libqemutestdriver.
      
      [0] https://en.opensuse.org/openSUSE:LTOSigned-off-by: NJim Fehlig <jfehlig@suse.com>
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      76b420d0
  8. 23 5月, 2019 2 次提交
  9. 22 5月, 2019 3 次提交
  10. 21 5月, 2019 2 次提交
  11. 17 5月, 2019 3 次提交
    • M
      lib: Avoid double close when passing FDs with virCommandPassFD() · 5cdd5d38
      Michal Privoznik 提交于
      If an FD is passed into a child using:
      
        virCommandPassFD(cmd, fd, VIR_COMMAND_PASS_FD_CLOSE_PARENT);
      
      then the parent should refrain from touching @fd thereafter. This
      is even documented in virCommandPassFD() comment. The reason is
      that either at virCommandRun()/virCommandRunAsync() or
      virCommandFree() time the @fd will be closed. Closing it earlier,
      e.g. right after virCommandPassFD() call might result in
      undesired results. Another thread might open a file and receive
      the same FD which is then unexpectedly closed by virCommandFree()
      or virCommandRun().
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      5cdd5d38
    • A
      qemu: Only probe available machine types · a251095e
      Andrea Bolognani 提交于
      Since we know the full list of machine types supported
      by the QEMU binary when probing machine type properties,
      we can save some work (and eventually test suite churn,
      as more architecture-specific machine types need to be
      probed) by only probing machines that we know exist.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      a251095e
    • A
      tests: Refresh capabilities for QEMU on ppc64 · 35e4c153
      Andrea Bolognani 提交于
      Now that we're probing machine type properties using the
      latest machine type rather than the "spapr-machine" parent,
      we can finally discover properties that are not available
      on all machine types.
      
      This commit refreshes replies for QEMU 4.0.0 as well as
      3.1.0 to show not only that we're actually discovering new
      machine type properties this way, but also that the number
      of available machine type properties increases with each
      subsequent QEMU release.
      
      If qom-list-properties had been available in QEMU 2.10.0,
      we could now drop the explicit version number checks for
      the QEMU_CAPS_MACHINE_PSERIES_MAX_CPU_COMPAT and
      QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT capabilities, but
      unfortunately it wasn't, so we have to keep them around
      still.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      35e4c153