1. 20 7月, 2017 11 次提交
  2. 19 7月, 2017 1 次提交
  3. 18 7月, 2017 2 次提交
  4. 17 7月, 2017 1 次提交
  5. 15 7月, 2017 13 次提交
  6. 14 7月, 2017 9 次提交
  7. 13 7月, 2017 3 次提交
    • D
      Revert "Prevent more compiler optimization of mockable functions" · 407a281a
      Daniel P. Berrange 提交于
      This reverts commit e4b980c8.
      
      When a binary links against a .a archive (as opposed to a shared library),
      any symbols which are marked as 'weak' get silently dropped. As a result
      when the binary later runs, those 'weak' functions have an address of
      0x0 and thus crash when run.
      
      This happened with virtlogd and virtlockd because they don't link to
      libvirt.so, but instead just libvirt_util.a and libvirt_rpc.a. The
      virRandomBits symbols was weak and so left out of the virtlogd &
      virtlockd binaries, despite being required by virHashTable functions.
      
      Various other binaries like libvirt_lxc, libvirt_iohelper, etc also
      link directly to .a files instead of libvirt.so, so are potentially
      at risk of dropping symbols leading to a later runtime crash.
      
      This is normal linker behaviour because a weak symbol is not treated
      as undefined, so nothing forces it to be pulled in from the .a You
      have to force the linker to pull in weak symbols using -u$SYMNAME
      which is not a practical approach.
      
      This risk is silent bad linkage that affects runtime behaviour is
      not acceptable for a fix that was merely trying to fix the test
      suite. So stop using __weak__ again.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      407a281a
    • J
      qemu: Update host-model CPUs on reconnect · 7cf22b48
      Jiri Denemark 提交于
      When libvirt starts a new QEMU domain, it replaces host-model CPUs with
      the appropriate custom CPU definition. However, when reconnecting to a
      domain started by older libvirt (< 2.3), the domain would still have a
      host-model CPU in its active definition.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1463957Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      7cf22b48
    • J
      qemu: Move qemuProcessReconnect to the end of qemu_process.c · aad362f9
      Jiri Denemark 提交于
      qemuProcessReconnect will need to call additional functions which were
      originally defined further in qemu_process.c.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      aad362f9