1. 01 6月, 2016 12 次提交
    • F
      docker: Add travis tool · d5bd7891
      Fam Zheng 提交于
      The script is not prefixed with test- so it won't run with "make docker-test",
      because it can take too long.
      
      Run it with "make docker-travis@ubuntu".
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-13-git-send-email-famz@redhat.com
      d5bd7891
    • F
      docker: Add mingw test · c4f0eed1
      Fam Zheng 提交于
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-12-git-send-email-famz@redhat.com
      c4f0eed1
    • F
      docker: Add clang test · c8908570
      Fam Zheng 提交于
      The (currently partially commented out) configure options are suggested
      by John Snow <jsnow@redhat.com>.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Message-id: 1464755128-32490-11-git-send-email-famz@redhat.com
      c8908570
    • F
      docker: Add full test · d710ac87
      Fam Zheng 提交于
      This builds all available targets.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Message-id: 1464755128-32490-10-git-send-email-famz@redhat.com
      d710ac87
    • F
      docker: Add quick test · b7899d63
      Fam Zheng 提交于
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-9-git-send-email-famz@redhat.com
      b7899d63
    • F
      docker: Add common.rc · 3568f98c
      Fam Zheng 提交于
      "requires" checks the "FEATURE" environment for specified prerequisits,
      and skip the execution of test if not found.
      
      "build_qemu" is the central routine to compile QEMU for tests to call.
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-8-git-send-email-famz@redhat.com
      3568f98c
    • F
      docker: Add test runner · b344aa91
      Fam Zheng 提交于
      It's better to have a launcher for all tests, to make it easier to
      initialize and manage the environment.
      
      If "DEBUG=1"  a shell prompt will show up before the test runs.
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-7-git-send-email-famz@redhat.com
      b344aa91
    • F
      docker: Add images · ca853f0c
      Fam Zheng 提交于
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-6-git-send-email-famz@redhat.com
      ca853f0c
    • F
      Makefile: Rules for docker testing · 324027c2
      Fam Zheng 提交于
      This adds a group of make targets to run docker tests, all are available
      in source tree without running ./configure.
      
      The usage is shown with "make docker".
      
      Besides the fixed ones, dynamic targets for building each image and
      running each test in each image are generated automatically by make,
      scanning $(SRC_PATH)/tests/docker/ files with specific patterns.
      
      Alternative to manually list particular targets (docker-TEST@IMAGE)
      set, you can control which tests/images to run by filtering variables,
      TESTS= and IMAGES=, which are expressed in Makefile pattern syntax,
      "foo% %bar ...". For example:
      
          $ make docker-test IMAGES="ubuntu fedora"
      
      Unfortunately, it's impossible to propagate "-j $JOBS" into make in
      containers, however since each combination is made a first class target
      in the top Makefile, "make -j$N docker-test" still parallels the tests
      coarsely.
      
      Still, $J is made a magic variable to let all make invocations in
      containers to use -j$J.
      
      Instead of providing a live version of the source tree to the docker
      container we snapshot it with git-archive. This ensures the tree is in a
      pristine state for whatever operations the container is going to run on
      them.
      
      Uncommitted changes known to files known by the git index will be
      included in the snapshot if there are any.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      Message-id: 1464755128-32490-5-git-send-email-famz@redhat.com
      324027c2
    • F
      Makefile: Always include rules.mak · fb57c881
      Fam Zheng 提交于
      When config-host.mak is not found it is safe to assume SRC_PATH is ".".
      So, it is okay to move inclusion of ruls.mak out of the ifeq condition.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-4-git-send-email-famz@redhat.com
      fb57c881
    • F
      rules.mak: Add "COMMA" constant · 2f4e4dc2
      Fam Zheng 提交于
      Using "," literal in $(call quiet-command, ...) arguments is awkward.
      Add this constant to make it at least doable.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-3-git-send-email-famz@redhat.com
      2f4e4dc2
    • F
      tests: Add utilities for docker testing · 4485b04b
      Fam Zheng 提交于
      docker.py is added with a number of useful subcommands to manager docker
      images and instances for QEMU docker testing. Subcommands are:
      
      run: A wrapper of "docker run" (or "sudo -n docker run" if necessary),
      which takes care of killing and removing the running container at
      SIGINT.
      
      clean: Tear down all the containers including inactive ones that are
      started by docker_run.
      
      build: Compare an image from given dockerfile and rebuild it if they're
      different.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-2-git-send-email-famz@redhat.com
      4485b04b
  2. 31 5月, 2016 2 次提交
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160531' into staging · 500acc9c
      Peter Maydell 提交于
      ppc patch queue for 2016-05-31
      
      Here's another ppc patch queue.  This batch is all preliminaries
      towards two significant features:
      
      1) Full hypervisor-mode support for POWER8
          Patches 1-8 start fixing various bugs with TCG's handling of
          hypervisor mode
      
      2) CPU hotplug support
          Patches 9-12 make some preliminary fixes towards implementing CPU
          hotplug on ppc64 (and other non-x86 platforms).  These patches are
          actually to generic code, not ppc, but are included here with
          Paolo's ACK.
      
      # gpg: Signature made Tue 31 May 2016 01:39:44 BST using RSA key ID 20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # 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: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.7-20160531:
        cpu: Add a sync version of cpu_remove()
        cpu: Reclaim vCPU objects
        exec: Do vmstate unregistration from cpu_exec_exit()
        exec: Remove cpu from cpus list during cpu_exec_exit()
        ppc: Add PPC_64H instruction flag to POWER7 and POWER8
        ppc: Get out of emulation on SMT "OR" ops
        ppc: Fix sign extension issue in mtmsr(d) emulation
        ppc: Change 'invalid' bit mask of tlbiel and tlbie
        ppc: tlbie, tlbia and tlbisync are HV only
        ppc: Do some batching of TCG tlb flushes
        ppc: Use split I/D mmu modes to avoid flushes on interrupts
        ppc: Remove MMU_MODEn_SUFFIX definitions
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      500acc9c
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 07e070aa
      Peter Maydell 提交于
      * docs/atomics fixes and atomic_rcu_* optimization (Emilio)
      * NBD bugfix (Eric)
      * Memory fixes and cleanups (Paolo, Paul)
      * scsi-block support for SCSI status, including persistent
        reservations (Paolo)
      * kvm_stat moves to the Linux repository
      * SCSI bug fixes (Peter, Prasad)
      * Killing qemu_char_get_next_serial, non-ARM parts (Xiaoqiang)
      
      # gpg: Signature made Sun 29 May 2016 08:11:20 BST using RSA key ID 78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      
      * remotes/bonzini/tags/for-upstream: (30 commits)
        exec: hide mr->ram_addr from qemu_get_ram_ptr users
        memory: split memory_region_from_host from qemu_ram_addr_from_host
        exec: remove ram_addr argument from qemu_ram_block_from_host
        memory: remove qemu_get_ram_fd, qemu_set_ram_fd, qemu_ram_block_host_ptr
        scsi-generic: Merge block max xfer len in INQUIRY response
        scsi-block: always use SG_IO
        scsi-disk: introduce scsi_disk_req_check_error
        scsi-disk: add need_fua_emulation to SCSIDiskClass
        scsi-disk: introduce dma_readv and dma_writev
        scsi-disk: introduce a common base class
        xen-hvm: ignore background I/O sections
        docs/atomics: update comparison with Linux
        atomics: do not emit consume barrier for atomic_rcu_read
        atomics: emit an smp_read_barrier_depends() barrier only for Alpha and Thread Sanitizer
        docs/atomics: update atomic_read/set comparison with Linux
        bt: rewrite csrhci_write to avoid out-of-bounds writes
        block/iscsi: avoid potential overflow of acb->task->cdb
        scsi: megasas: check 'read_queue_head' index value
        scsi: megasas: initialise local configuration data buffer
        scsi: megasas: use appropriate property buffer size
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      07e070aa
  3. 30 5月, 2016 12 次提交
  4. 29 5月, 2016 14 次提交