1. 11 9月, 2012 32 次提交
  2. 10 9月, 2012 8 次提交
    • A
      socket: don't attempt to reconnect a TCP socket in server mode · 455aa1e0
      Anthony Liguori 提交于
      Commit c3767ed0 introduced a possible SEGV when
      using a socket chardev with server=on because it assumes that all TCP sockets
      are in client mode.
      
      This patch adds a check to only reconnect when in client mode.
      
      Cc: Lei Li <lilei@linux.vnet.ibm.com>
      Reported-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      455aa1e0
    • M
      use --libexecdir instead of ignoring it first and reinventing it later · 8bf188aa
      Michael Tokarev 提交于
      Commit 7b93fadf "Add basic version
      of bridge helper" put the bridge helper executable into a fixed
      ${prefix}/libexec/ location, instead of using ${libexecdir} for
      this.  At the same time, --libexecdir is being happily ignored
      by ./configure.  Even more, the same patch sets unused $libexecdir
      variable in the generated config-host.mak, and uses fixed string
      (\${prefix}/libexecdir) for the bridge helper binary.
      
      Fix this braindamage by introducing $libexecdir variable, using
      it for the bridge helper binary, and recognizing --libexecdir.
      
      This patch is applicable to stable-1.1.
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      Reviewed-by: NCorey Bryant <coreyb@linux.vnet.ibm.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Cc: Corey Bryant <coreyb@linux.vnet.ibm.com>
      Cc: Richa Marwaha <rmarwah@linux.vnet.ibm.com>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8bf188aa
    • A
      Merge branch 'spice.v59' of git://anongit.freedesktop.org/spice/qemu · 69fc2553
      Aurelien Jarno 提交于
      * 'spice.v59' of git://anongit.freedesktop.org/spice/qemu:
        Remove #ifdef QXL_COMMAND_FLAG_COMPAT_16BPP
        qxl: Add set_client_capabilities() interface to QXLInterface
        spice: make number of surfaces runtime-configurable.
        configure: print spice-protocol and spice-server versions
        qxl: add QXL_IO_MONITORS_CONFIG_ASYNC
        qxl: disallow unknown revisions
        qxl/update_area_io: guest_bug on invalid parameters
        spice: increase the verbosity of spice section in "qemu --help"
        spice: adding seamless-migration option to the command line
        spice: add 'migrated' flag to spice info
        spice migration: add QEVENT_SPICE_MIGRATE_COMPLETED
        spice: notify on vm state change only via spice_server_vm_start/stop
        spice: notify spice server on vm start/stop
        spice: abort on invalid streaming cmdline params
      69fc2553
    • A
      Merge branch 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable · e22b1e99
      Aurelien Jarno 提交于
      * 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable:
        tcx: tcx_screen_dump(): add error handling
        tcx: tcx24_screen_dump(): add error handling
        g364fb: g364fb_screen_dump(): add error handling
        omap_lcdc: omap_ppm_save(): add error handling
        omap_lcdc: rename ppm_save() to omap_ppm_save()
        vga: ppm_save(): add error handling
        qapi: convert screendump
        console: vga_hw_screen_dump_ptr: take Error argument
        error: add error_setg()
        json-parser: Fix potential NULL pointer segfault
        qapi: Fix potential NULL pointer segfault
        qapi: convert sendkey
        monitor: move key_defs[] table and introduce two help functions
        qapi: add the QKeyCode enum
        qapi: generate list struct and visit_list for enum
        hmp: rename arguments
        monitor: rename keyname '<' to 'less'
        fix doc of using raw values with sendkey
        Add support for pretty-printing response in qmp-shell
      e22b1e99
    • S
      hw/mcf5206: Fix buffer overflow for MBAR read / write · a32354e2
      Stefan Weil 提交于
      Report from smatch:
      
      mcf5206.c:384 m5206_mbar_readb(7) error: buffer overflow 'm5206_mbar_width' 128 <= 128
      mcf5206.c:403 m5206_mbar_readw(8) error: buffer overflow 'm5206_mbar_width' 128 <= 128
      mcf5206.c:427 m5206_mbar_readl(8) error: buffer overflow 'm5206_mbar_width' 128 <= 128
      mcf5206.c:451 m5206_mbar_writeb(9) error: buffer overflow 'm5206_mbar_width' 128 <= 128
      mcf5206.c:475 m5206_mbar_writew(9) error: buffer overflow 'm5206_mbar_width' 128 <= 128
      mcf5206.c:503 m5206_mbar_writel(9) error: buffer overflow 'm5206_mbar_width' 128 <= 128
      
      m5206_mbar_width has 0x80 elements and supports 0 <= offset < 0x200.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      a32354e2
    • S
      target-arm: Fix potential buffer overflow · 599d64f6
      Stefan Weil 提交于
      Report from smatch:
      
      target-arm/helper.c:651 arm946_prbs_read(6) error:
       buffer overflow 'env->cp15.c6_region' 8 <= 8
      target-arm/helper.c:661 arm946_prbs_write(6) error:
       buffer overflow 'env->cp15.c6_region' 8 <= 8
      
      c7_region is an array with 8 elements, so the index must be less than 8.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      599d64f6
    • S
      hw/wm8750: Fix potential buffer overflow · 149eeb5f
      Stefan Weil 提交于
      Report from smatch:
      
      hw/wm8750.c:369 wm8750_tx(12) error: buffer overflow 's->i2c_data' 2 <= 2
      
      It looks like the preprocessor statements were simply misplaced.
      
      Replace also __FUNCTION__ by __func__ to please checkpatch.pl.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Reviewed-by: Peter Maydell <peter.maydell@linaro.org> 
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      149eeb5f
    • J
      kvm: i386: Add classic PCI device assignment · c3ebd3ba
      Jan Kiszka 提交于
      This adds PCI device assignment for i386 targets using the classic KVM
      interfaces. This version is 100% identical to what is being maintained
      in qemu-kvm for several years and is supported by libvirt as well. It is
      expected to remain relevant for another couple of years until kernels
      without full-features and performance-wise equivalent VFIO support are
      obsolete.
      
      A refactoring to-do that should be done in-tree is to model MSI and
      MSI-X support via the generic PCI layer, similar to what VFIO is already
      doing for MSI-X. This should improve the correctness and clean up the
      code from duplicate logic.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Acked-by: NAcked-by: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      c3ebd3ba