Skip to content
Snippets Groups Projects
  1. Feb 20, 2017
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/huth/tags/coldfire-20170219' into staging · 5d42ff91
      Peter Maydell authored
      
      Updates for the m68k ColdFire machines:
      - Remove the obsolete dummy machine
      - QOMify the ColdFire interrupt controller
      - Volunteer for maintaining the orphan ColdFire boards
      
      # gpg: Signature made Sat 18 Feb 2017 23:08:55 GMT
      # gpg:                using RSA key 0x2ED9D774FE702DB5
      # gpg: Good signature from "Thomas Huth <th.huth@gmx.de>"
      # gpg:                 aka "Thomas Huth <thuth@redhat.com>"
      # gpg:                 aka "Thomas Huth <huth@tuxfamily.org>"
      # Primary key fingerprint: 27B8 8847 EEE0 2501 18F3  EAB9 2ED9 D774 FE70 2DB5
      
      * remotes/huth/tags/coldfire-20170219:
        MAINTAINERS: Add odd fixer for the ColdFire boards
        hw/m68k: QOMify the ColdFire interrupt controller
        hw/m68k: Remove dummy machine
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      5d42ff91
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · d514cfd7
      Peter Maydell authored
      
      virtio, pci: fixes, features
      
      virtio is using region caches for performance
      iommu support for IOTLBs
      misc fixes
      
      Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Fri 17 Feb 2017 19:53:02 GMT
      # gpg:                using RSA key 0x281F0DB8D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * remotes/mst/tags/for_upstream: (23 commits)
        intel_iommu: vtd_slpt_level_shift check level
        intel_iommu: convert dbg macros to trace for trans
        intel_iommu: convert dbg macros to traces for inv
        intel_iommu: renaming gpa to iova where proper
        intel_iommu: simplify irq region translation
        intel_iommu: add "caching-mode" option
        vfio: allow to notify unmap for very large region
        vfio: introduce vfio_get_vaddr()
        vfio: trace map/unmap for notify as well
        pcie: simplify pcie_add_capability()
        virtio: Fix no interrupt when not creating msi controller
        virtio: use VRingMemoryRegionCaches for avail and used rings
        virtio: check for vring setup in virtio_queue_update_used_idx
        virtio: use VRingMemoryRegionCaches for descriptor ring
        virtio: add MemoryListener to cache ring translations
        virtio: use MemoryRegionCache to access descriptors
        exec: make address_space_cache_destroy idempotent
        virtio: use address_space_map/unmap to access descriptors
        virtio: add virtio_*_phys_cached
        memory: make memory_listener_unregister idempotent
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      d514cfd7
  2. Feb 18, 2017
  3. Feb 17, 2017
  4. Feb 16, 2017
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · ad584d37
      Peter Maydell authored
      
      * GUEST_PANICKED improvements (Anton)
      * vCont gdbstub rewrite (Claudio)
      * Fix CPU creation with -device (Liyang)
      * Logging fixes for pty chardevs (Ed)
      * Makefile "move if changed" fix (Lin)
      * First part of cpu_exec refactoring (me)
      * SVM emulation fix (me)
      * apic_delivered fix (Pavel)
      * "info ioapic" fix (Peter)
      * qemu-nbd socket activation (Richard)
      * QOMification of mcf_uart (Thomas)
      
      # gpg: Signature made Thu 16 Feb 2017 17:37:31 GMT
      # gpg:                using RSA key 0xBFFBD25F78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini/tags/for-upstream: (23 commits)
        target-i386: correctly propagate retaddr into SVM helpers
        vl: log available guest crash information
        report guest crash information in GUEST_PANICKED event
        i386/cpu: add crash-information QOM property
        Makefile: avoid leaving the temporary QEMU_PKGVERSION header file
        vl: Move the cpu_synchronize_all_post_init() after generic devices initialization
        qemu-nbd: Implement socket activation.
        qemu-doc: Clarify that -vga std is now the default
        cpu-exec: remove outermost infinite loop
        cpu-exec: avoid repeated sigsetjmp on interrupts
        cpu-exec: avoid cpu_loop_exit in cpu_handle_interrupt
        cpu-exec: tighten barrier on TCG_EXIT_REQUESTED
        cpu-exec: fix icount out-of-bounds access
        hw/char/mcf_uart: QOMify the ColdFire UART
        gdbstub: Fix vCont behaviour
        move vm_start to cpus.c
        char: drop data written to a disconnected pty
        apic: reset apic_delivered global variable on machine reset
        qemu-char: socket backend: disconnect on write error
        test-vmstate: remove yield_until_fd_readable
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      ad584d37
    • Paolo Bonzini's avatar
      target-i386: correctly propagate retaddr into SVM helpers · 65c9d60a
      Paolo Bonzini authored
      
      Commit 2afbdf84 ("target-i386: exception handling for memory helpers",
      2015-09-15) changed tlb_fill's cpu_restore_state+raise_exception_err
      to raise_exception_err_ra.  After this change, the cpu_restore_state
      and raise_exception_err's cpu_loop_exit are merged into
      raise_exception_err_ra's cpu_loop_exit_restore.
      
      This actually fixed some bugs, but when SVM is enabled there is a
      second path from raise_exception_err_ra to cpu_loop_exit.  This is
      the VMEXIT path, and now cpu_vmexit is called without a
      cpu_restore_state before.
      
      The fix is to pass the retaddr to cpu_vmexit (via
      cpu_svm_check_intercept_param).  All helpers can now use GETPC() to pass
      the correct retaddr, too.
      
      Cc: qemu-stable@nongnu.org
      Fixes: 2afbdf84
      Reported-by: default avatarAlexander Boettcher <alexander.boettcher@genode-labs.com>
      Tested-by: default avatarAlexander Boettcher <alexander.boettcher@genode-labs.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      65c9d60a
    • Peter Maydell's avatar
      Merge remote-tracking branch... · 7a37b59f
      Peter Maydell authored
      Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-upstream-pull-request' into staging
      
      # gpg: Signature made Thu 16 Feb 2017 14:35:46 GMT
      # gpg:                using RSA key 0xF30C38BD3F2FBE3C
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>"
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>"
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>"
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * remotes/vivier2/tags/linux-user-for-upstream-pull-request:
        linux-user: Add FICLONE and FICLONERANGE ioctls
        linux-user: Use correct types in load_symbols()
        linux-user: fill target sigcontext struct accordingly
        linux-user: fix tcg/mmap test
        linux-user: fix settime old value location
        linux-user: Update m68k syscall definitions to match Linux 4.6
        linux-user: Update sh4 syscall definitions to match Linux 4.8
        linux-user: manage two new IFLA host message types
        linux-user: Fix mq_open
        linux-user: Fix readahead
        linux-user: Fix inotify_init1 support
        linux-user: Fix s390x safe-syscall for z900
        linux-user: drop __cygwin__ ifdef
        linux-user: remove ifdef __USER_MISC
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      7a37b59f
    • Anton Nefedov's avatar
      vl: log available guest crash information · f47291b7
      Anton Nefedov authored
      
      There is a suitable log mask for the purpose.
      
      Signed-off-by: default avatarAnton Nefedov <anton.nefedov@virtuozzo.com>
      Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
      Message-Id: <1487053524-18674-4-git-send-email-den@openvz.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      f47291b7
    • Anton Nefedov's avatar
      report guest crash information in GUEST_PANICKED event · c86f106b
      Anton Nefedov authored
      
      it's not very convenient to use the crash-information property interface,
      so provide a CPU class callback to get the guest crash information, and pass
      that information in the event
      
      Signed-off-by: default avatarAnton Nefedov <anton.nefedov@virtuozzo.com>
      Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
      Message-Id: <1487053524-18674-3-git-send-email-den@openvz.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      c86f106b
    • Anton Nefedov's avatar
      i386/cpu: add crash-information QOM property · d187e08d
      Anton Nefedov authored
      
      Windows reports BSOD parameters through Hyper-V crash MSRs. This
      information is very useful for initial crash analysis and thus
      it would be nice to have a way to fetch it.
      
      Signed-off-by: default avatarAnton Nefedov <anton.nefedov@virtuozzo.com>
      Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
      Message-Id: <1487053524-18674-2-git-send-email-den@openvz.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      d187e08d
    • Lin Ma's avatar
      Makefile: avoid leaving the temporary QEMU_PKGVERSION header file · d9e73d32
      Lin Ma authored
      
      By commit 67a1de0d, When we perform 'git pull && make && sudo make install',
      In 'make' stage a qemu-version.h.tmp will be generated. If the content of
      qemu-version.h.tmp and qemu-version.h aren't consistent, The qemu-version.h.tmp
      will be renamed to qemu-version.h. Because of the target FORCE, The same action
      will be do again in 'make install' stage.
      
      In 'make install' stage, If there is no qemu-version.h.tmp exists and we run
      'make install' with sudo, The owner and group of new qemu-version.h.tmp will be
      privileged user/group. When we run 'make' next time, qemu-version.h.tmp can't
      be overwritten because of permission issue.
      
      This patch removed qemu-version.h.tmp after build to fix this issue.
      
      Signed-off-by: default avatarLin Ma <lma@suse.com>
      Message-Id: <20170215024030.23895-1-lma@suse.com>
      Reviewed-by: default avatarFam Zheng <famz@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      d9e73d32
    • Dou Liyang's avatar
      vl: Move the cpu_synchronize_all_post_init() after generic devices initialization · 3741c250
      Dou Liyang authored
      
      At the Qemu initialization, we call the cpu_synchronize_all_post_init()
      to synchronize All CPU states to KVM in the ./vl.c::main().
      
      Currently, it is called before we initialize the CPUs, which is created
      by "-device" command and parsed by generic devices initialization, So,
      these CPUs may be ignored to synchronize.
      
      The patch moves the cpu_synchronize_all_post_init func after generic
      devices initialization to make sure that all the CPUs can be included.
      
      Signed-off-by: default avatarDou Liyang <douly.fnst@cn.fujitsu.com>
      Message-Id: <1485916178-17838-1-git-send-email-douly.fnst@cn.fujitsu.com>
      Reviewed-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      Acked-by: default avatarEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3741c250
    • Richard W.M. Jones's avatar
      qemu-nbd: Implement socket activation. · a721f53b
      Richard W.M. Jones authored
      
      Socket activation (sometimes known as systemd socket activation)
      allows an Internet superserver to pass a pre-opened listening socket
      to the process, instead of having qemu-nbd open a socket itself.  This
      is done via the LISTEN_FDS and LISTEN_PID environment variables, and a
      standard file descriptor range.
      
      This change partially implements socket activation for qemu-nbd.  If
      the environment variables are set correctly, then socket activation
      will happen automatically, otherwise everything works as before.  The
      limitation is that LISTEN_FDS must be 1.
      
      Signed-off-by: default avatarRichard W.M. Jones <rjones@redhat.com>
      Message-Id: <20170204100317.32425-2-rjones@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a721f53b
    • Helge Deller's avatar
      linux-user: Add FICLONE and FICLONERANGE ioctls · 21992cb6
      Helge Deller authored
      
      Add missing FICLONE and FICLONERANGE ioctls.
      
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Message-Id: <20170211222602.GA6399@ls3530.fritz.box>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      21992cb6
    • Peter Maydell's avatar
      linux-user: Use correct types in load_symbols() · 1e06262d
      Peter Maydell authored
      
      Coverity doesn't like the code in load_symbols() which assumes
      it can use 'int' for a variable that might hold an offset into
      the guest ELF file, because in a 64-bit guest that could
      overflow. Guest binaries with 2GB sections aren't very likely
      and this isn't a security issue because we fully trust the
      guest linux-user binary anyway, but we might as well use the
      right types, which will placate Coverity. Use uint64_t to
      hold section sizes, and bail out if the symbol table is too
      large rather than just overflowing an int.
      
      (Coverity issue CID1005776)
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
      Message-Id: <1486249533-5260-1-git-send-email-peter.maydell@linaro.org>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      1e06262d
    • Jose Ricardo Ziviani's avatar
      linux-user: fill target sigcontext struct accordingly · 26920a29
      Jose Ricardo Ziviani authored
      
      A segfault is noticed when an emulated program uses any of ucontext
      regs fields. Risu detected this issue in the following operation when
      handling a signal:
        ucontext_t *uc = (ucontext_t*)uc;
        uc->uc_mcontext.regs->nip += 4;
      
      but this works fine:
        uc->uc_mcontext.gp_regs[PT_NIP] += 4;
      
      This patch set regs to a valid location as well as other sigcontext
      fields.
      
      Signed-off-by: default avatarJose Ricardo Ziviani <joserz@linux.vnet.ibm.com>
      Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Message-Id: <1485900317-3256-1-git-send-email-joserz@linux.vnet.ibm.com>
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      26920a29
Loading