Skip to content
Snippets Groups Projects
  1. Oct 16, 2017
    • Daniel P. Berrangé's avatar
      build: automatically handle GIT submodule checkout for dtc · aef45d51
      Daniel P. Berrangé authored
      
      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: default avatarDaniel 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: default avatarGerd Hoffmann <kraxel@redhat.com>
      
      [fixup] Makefile dep
      aef45d51
  2. Oct 12, 2017
  3. Oct 11, 2017
    • Eduardo Habkost's avatar
      scripts: Remove debug parameter from QEMUMachine · 1a6d3757
      Eduardo Habkost authored
      
      All scripts that use the QEMUMachine and QEMUQtestMachine classes
      (device-crash-test, tests/migration/*, iotests.py, basevm.py)
      already configure logging.
      
      The basicConfig() call inside QEMUMachine.__init__() is being
      kept just to make sure a script would still work if it didn't
      configure logging.
      
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <20171005172013.3098-4-ehabkost@redhat.com>
      Reviewed-by: default avatarLukáš Doktor <ldoktor@redhat.com>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      1a6d3757
    • Eduardo Habkost's avatar
      scripts: Remove debug parameter from QEMUMonitorProtocol · 09177654
      Eduardo Habkost authored
      
      Use logging module for the QMP debug messages.  The only scripts
      that set debug=True are iotests.py and guestperf/engine.py, and
      they already call logging.basicConfig() to set up logging.
      
      Scripts that don't configure logging are safe as long as they
      don't need debugging output, because debug messages don't trigger
      the "No handlers could be found for logger" message from the
      Python logging module.
      
      Scripts that already configure logging but don't use debug=True
      (e.g. scripts/vm/basevm.py) will get QMP debugging enabled for
      free.
      
      Cc: "Alex Bennée" <alex.bennee@linaro.org>
      Cc: Fam Zheng <famz@redhat.com>
      Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <20171005172013.3098-3-ehabkost@redhat.com>
      Reviewed-by: default avatarLukáš Doktor <ldoktor@redhat.com>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      09177654
    • Eduardo Habkost's avatar
      guestperf: Configure logging on all shell frontends · 8af09b80
      Eduardo Habkost authored
      
      The logging module will eventually replace the 'debug' parameter
      in QEMUMachine and QEMUMonitorProtocol.
      
      Cc: Daniel P. Berrange <berrange@redhat.com>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <20171005172013.3098-2-ehabkost@redhat.com>
      Reviewed-by: default avatarLukáš Doktor <ldoktor@redhat.com>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      8af09b80
    • Eduardo Habkost's avatar
      basevm: Call logging.basicConfig() · fb3b4e6d
      Eduardo Habkost authored
      
      Just setting level=DEBUG when debug is enabled is not enough: we
      need to set up a log handler if we want debug messages generated
      using logging.getLogger(...).debug() to be printed.
      
      This was not a problem before because logging.debug() calls
      logging.basicConfig() implicitly, but it's safer to not rely on
      that.
      
      Cc: "Alex Bennée" <alex.bennee@linaro.org>
      Cc: Fam Zheng <famz@redhat.com>
      Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <20170927130339.21444-4-ehabkost@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrange <berrange@redhat.com>
      Reviewed-by: default avatarFam Zheng <famz@redhat.com>
      Reviewed-by: default avatarLukáš Doktor <ldoktor@redhat.com>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      fb3b4e6d
    • Eduardo Habkost's avatar
      iotests: Set up Python logging · 43851b5b
      Eduardo Habkost authored
      
      Set up Python logging module instead of relying on
      QEMUMachine._debug to enable debugging messages.
      
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: Max Reitz <mreitz@redhat.com>
      Cc: qemu-block@nongnu.org
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      Message-Id: <20170927130339.21444-3-ehabkost@redhat.com>
      Reviewed-by: default avatarDaniel P. Berrange <berrange@redhat.com>
      Reviewed-by: default avatarLukáš Doktor <ldoktor@redhat.com>
      Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      43851b5b
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/elmarco/tags/vus-pull-request' into staging · bac96083
      Peter Maydell authored
      
      # gpg: Signature made Tue 10 Oct 2017 22:33:56 BST
      # gpg:                using RSA key 0xDAE8E10975969CE5
      # gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>"
      # gpg:                 aka "Marc-André Lureau <marcandre.lureau@gmail.com>"
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 87A9 BD93 3F87 C606 D276  F62D DAE8 E109 7596 9CE5
      
      * remotes/elmarco/tags/vus-pull-request: (27 commits)
        vhost-user-scsi: remove server_sock from VusDev
        vhost-user-scsi: use libvhost-user glib helper
        libvhost-user: add glib source helper
        vhost-user-scsi: use glib logging
        vhost-user-scsi: simplify source handling
        vhost-user-scsi: drop extra callback pointer
        vhost-user-scsi: don't copy iscsi/scsi-lowlevel.h
        vhost-user-scsi: avoid use of iscsi_ namespace
        vhost-user-scsi: rename VUS types
        vhost-user-scsi: remove unimplemented functions
        vhost-user-scsi: remove VUS_MAX_LUNS
        vhost-user-scsi: remove vdev_scsi_add_iscsi_lun()
        vhost-user-scsi: assert() in iscsi_add_lun()
        vhost-user-scsi: use NULL pointer
        vhost-user-scsi: simplify unix path cleanup
        vhost-user-scsi: remove vdev_scsi_find_by_vu()
        vhost-user-scsi: also free the gtree
        vhost-user-scsi: glib calls that allocate don't return NULL
        vhost-user-scsi: use glib allocation
        vhost-user-scsi: code style fixes
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      bac96083
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20171010' into staging · e74c0cfa
      Peter Maydell authored
      
      Queued TCG patches
      
      # gpg: Signature made Tue 10 Oct 2017 20:23:12 BST
      # gpg:                using RSA key 0x64DF38E8AF7E215F
      # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
      # Primary key fingerprint: 7A48 1E78 868B 4DB6 A85A  05C0 64DF 38E8 AF7E 215F
      
      * remotes/rth/tags/pull-tcg-20171010:
        tcg/mips: delete commented out extern keyword.
        tcg: define TCG_HIGHWATER
        util: move qemu_real_host_page_size/mask to osdep.h
        tcg: take .helpers out of TCGContext
        tci: move tci_regs to tcg_qemu_tb_exec's stack
        exec-all: extract tb->tc_* into a separate struct tc_tb
        translate-all: define and use DEBUG_TB_CHECK_GATE
        translate-all: define and use DEBUG_TB_INVALIDATE_GATE
        exec-all: introduce TB_PAGE_ADDR_FMT
        translate-all: define and use DEBUG_TB_FLUSH_GATE
        exec-all: bring tb->invalid into tb->cflags
        tcg: consolidate TB lookups in tb_lookup__cpu_state
        tcg: remove addr argument from lookup_tb_ptr
        tcg/mips: constify tcg_target_callee_save_regs
        tcg/i386: constify tcg_target_callee_save_regs
        cpu-exec: rename have_tb_lock to acquired_tb_lock in tb_find
        translate-all: make have_tb_lock static
        exec-all: fix typos in TranslationBlock's documentation
        tcg: fix corruption of code_time profiling counter upon tb_flush
        cputlb: bring back tlb_flush_count under !TLB_DEBUG
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      e74c0cfa
  4. Oct 10, 2017
Loading