1. 16 10月, 2017 1 次提交
    • D
      build: automatically handle GIT submodule checkout for dtc · aef45d51
      Daniel P. Berrange 提交于
      Currently if DTC is required by configure and not available in the host
      OS install, we exit with an error message telling the user to checkout a
      git submodule or install the library.
      
      This introduces automatic handling of the git submodule checkout process
      and enables it for dtc. This only runs if building from GIT, so users of
      release tarballs still need the system library install. The current state
      of the git checkout is stashed in .git-submodule-status, and a helper
      program is used to determine if this state matches the desired submodule
      state. A dependency against 'Makefile' ensures that the submodule state
      is refreshed at the start of the build process
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20170929101201.21039-2-berrange@redhat.com
      
      [ kraxel: use /bin/sh not bash for scripts/git-submodule.sh ]
      [ kraxel: fix Makefile dependencies ]
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      
      [fixup] Makefile dep
      aef45d51
  2. 26 9月, 2017 4 次提交
  3. 23 9月, 2017 2 次提交
    • P
      scsi: add multipath support to qemu-pr-helper · fe8fc5ae
      Paolo Bonzini 提交于
      Proper support of persistent reservation for multipath devices requires
      communication with the multipath daemon, so that the reservation is
      registered and applied when a path comes up.  The device mapper
      utilities provide a library to do so; this patch makes qemu-pr-helper.c
      detect multipath devices and, when one is found, delegate the operation
      to libmpathpersist.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      fe8fc5ae
    • P
      scsi: build qemu-pr-helper · b855f8d1
      Paolo Bonzini 提交于
      Introduce a privileged helper to run persistent reservation commands.
      This lets virtual machines send persistent reservations without using
      CAP_SYS_RAWIO or out-of-tree patches.  The helper uses Unix permissions
      and SCM_RIGHTS to restrict access to processes that can access its socket
      and prove that they have an open file descriptor for a raw SCSI device.
      
      The next patch will also correct the usage of persistent reservations
      with multipath devices.
      
      It would also be possible to support for Linux's IOC_PR_* ioctls in
      the future, to support NVMe devices.  For now, however, only SCSI is
      supported.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      b855f8d1
  4. 22 9月, 2017 9 次提交
  5. 20 9月, 2017 1 次提交
  6. 15 9月, 2017 1 次提交
  7. 13 9月, 2017 3 次提交
    • G
      usb: drop HOST_USB · 4e5ee5b2
      Gerd Hoffmann 提交于
      Nowdays we use libusb for usb-host, so we don't have different code
      for linux vs. bsd any more.  So there is little reason to have the
      HOST_USB variable, we can just write things directly into the Makefile
      and avoid a pointless indirection.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-id: 20170908111217.21985-2-kraxel@redhat.com
      4e5ee5b2
    • G
      pixman: drop configure switches · 35c4e86c
      Gerd Hoffmann 提交于
      Remove pixman switches from configure, should not be needed any more,
      configure can figure by itself whenever pixman is needed or not.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20170905140116.28181-3-kraxel@redhat.com
      35c4e86c
    • G
      pixman: drop submodule · c12b6d70
      Gerd Hoffmann 提交于
      Drop pixman submodule and support for the "internal" pixman build.
      pixman should be reasonably well established meanwhile so we don't
      need the fallback submodule any more.  While being at it also drop
      some #ifdefs for pixman versions older than what we require in
      configure anyway.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 20170905140116.28181-2-kraxel@redhat.com
      c12b6d70
  8. 08 9月, 2017 1 次提交
  9. 06 9月, 2017 1 次提交
  10. 31 8月, 2017 1 次提交
    • C
      configure: enable --s390-pgste linker option · e9a3591f
      Christian Borntraeger 提交于
      KVM guests on s390 need a different page table layout than normal
      processes (2kb page table + 2kb page status extensions vs 2kb page table
      only). As of today this has to be enabled via the vm.allocate_pgste
      sysctl.
      
      Newer kernels (>= 4.12) on s390 check for an S390_PGSTE program header
      and enable the pgste page table extensions in that case. This makes the
      vm.allocate_pgste sysctl unnecessary. We enable this program header for
      the s390 system emulation (qemu-system-s390x) if we build on s390
      - for s390 system emulation
      - the linker supports --s390-pgste (binutils >= 2.29)
      - KVM is enabled
      
      This will allow distributions to disable the global vm.allocate_pgste
      sysctl, which will improve the page table allocation for non KVM
      processes as only 2kb chunks are necessary.
      
      Cc: Christian Ehrhardt <christian.ehrhardt@canonical.com>
      Cc: Alexander Graf <agraf@suse.de>
      Cc: Dan Horak <dhorak@redhat.com>
      Cc: David Hildenbrand <david@redhat.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Acked-by: NJanosch Frank <frankja@linux.vnet.ibm.com>
      Reviewed-by: NThomas Huth <thuth@redhat.com>
      Message-Id: <1503483383-199649-1-git-send-email-borntraeger@de.ibm.com>
      Reviewed-by: NDavid Hildenbrand <david@redhat.com>
      Signed-off-by: NCornelia Huck <cohuck@redhat.com>
      e9a3591f
  11. 03 8月, 2017 1 次提交
  12. 24 7月, 2017 1 次提交
  13. 21 7月, 2017 2 次提交
    • P
      configure: Drop ancient Solaris 9 and earlier support · 91939262
      Peter Maydell 提交于
      Solaris 9 was released in 2002, its successor Solaris 10 was
      released in 2005, and Solaris 9 was end-of-lifed in 2014.
      Nobody has stepped forward to express interest in supporting
      Solaris of any flavour, so removing support for the ancient
      versions seems uncontroversial.
      
      In particular, this allows us to remove a use of 'uname'
      in configure that won't work if you're cross-compiling.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 1499955697-28045-1-git-send-email-peter.maydell@linaro.org
      91939262
    • P
      configure: Never use 'uname' to identify target OS · 951fedfc
      Peter Maydell 提交于
      For a very long time we have used 'uname -s' as our fallback if
      we don't identify the target OS using a compiler #define. This
      obviously doesn't work for cross-compilation, and we've had
      a comment suggesting we fix this in configure for a long time.
      Since we now have an exhaustive list of which OSes we can run
      on (thanks to commit 898be3e0 making an unrecognized OS
      be a fatal error), we know which ones we're missing.
      
      Add check_define tests for the remaining OSes we support.  The
      defines checked are based on ones we already use in the codebase for
      identifying the host OS (with the exception of GNU/kFreeBSD).
      We can now set bogus_os immediately rather than doing it later.
      
      We leave the comment about uname being bad untouched, since
      there is still a use of it for the fallback for unrecognized
      host CPU type.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-id: 1499958932-23839-1-git-send-email-peter.maydell@linaro.org
      951fedfc
  14. 20 7月, 2017 2 次提交
  15. 19 7月, 2017 2 次提交
  16. 18 7月, 2017 1 次提交
  17. 14 7月, 2017 2 次提交
  18. 11 7月, 2017 3 次提交
  19. 04 7月, 2017 2 次提交