1. 22 11月, 2013 3 次提交
    • P
      pc: get rid of builtin pvpanic for "-M pc-1.5" · 7839ff59
      Paolo Bonzini 提交于
      This causes two slight backwards-incompatibilities between "-M pc-1.5"
      and 1.5's "-M pc":
      
      (1) a fw_cfg file is removed with this patch.  This is only a problem
      if migration stops the virtual machine exactly during fw_cfg enumeration.
      
      (2) after migration, a VM created without an explicit "-device pvpanic"
      will stop reporting panics to management.
      
      The first problem only occurs if migration is done at a very, very
      early point (and I'm not sure it can happen in practice for reasonable-size
      VMs, since it will likely take more time to send the RAM to destination,
      than it will take for BIOS to scan fw_cfg).
      
      The second problem only occurs if the guest panics _and_ has a guest
      driver _and_ management knows to look at the crash event, so it is
      mostly theoretical at this point in time.
      
      Thus keep the code simple, and pretend it was never broken.
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      7839ff59
    • P
      configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0 · 45d285ab
      Peter Maydell 提交于
      Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
      explicitly specifying everything and not relying on any default
      variables or rules. However we were accidentally relying on the
      default ARFLAGS ("rv"). This went unnoticed because of a bug in
      GNU Make 3.82 and earlier which meant that adding -rR to MAKEFLAGS
      only affected submakes, not the currently running instance.
      Explicitly set ARFLAGS in config-host.mak, in the same way we
      handle CFLAGS and LDFLAGS; this will allow us to work with
      Make 4.0.
      
      Thanks to Paul Smith for analyzing this bug for us.
      
      Cc: qemu-stable@nongnu.org
      Reported-by: NKen Moffat <zarniwhoop@ntlworld.com>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      45d285ab
    • M
      sun4m: Add FCode ROM for TCX framebuffer · da87dd7b
      Mark Cave-Ayland 提交于
      Upstream OpenBIOS now implements SBus probing in order to determine the
      contents of a physical bus slot, which is required to allow OpenBIOS to
      identify the framebuffer without help from the fw_cfg interface.
      
      SBus probing works by detecting the presence of an FCode program
      (effectively tokenised Forth) at the base address of each slot, and if
      present executes it so that it creates its own device node in the
      OpenBIOS device tree.
      
      The FCode ROM is generated as part of the OpenBIOS build and should
      generally be updated at the same time.
      Signed-off-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      CC: Blue Swirl <blauwirbel@gmail.com>
      CC: Bob Breuer <breuerr@mc.net>
      CC: Artyom Tarasenko <atar4qemu@gmail.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      da87dd7b
  2. 20 11月, 2013 10 次提交
    • A
      Merge remote-tracking branch 'quintela/migration.next' into staging · 394cfa39
      Anthony Liguori 提交于
      # By Peter Lieven
      # Via Juan Quintela
      * quintela/migration.next:
        migration: drop MADVISE_DONT_NEED for incoming zero pages
      
      Message-id: 1384878412-23521-1-git-send-email-quintela@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      394cfa39
    • A
      Merge remote-tracking branch 'stefanha/block' into staging · 4ed34791
      Anthony Liguori 提交于
      # By Andreas Färber
      # Via Stefan Hajnoczi
      * stefanha/block:
        qtest: Use -display none by default
      4ed34791
    • A
      Merge remote-tracking branch 'afaerber/tags/qom-devices-for-anthony' into staging · 1c46e594
      Anthony Liguori 提交于
      QOM infrastructure fixes for 1.7
      
      * QOM memory leak fix
      
      # gpg: Signature made Tue 19 Nov 2013 01:58:58 AM PST using RSA key ID 3E7E013F
      # gpg: Can't check signature: public key not found
      
      # By Vlad Yasevich
      # Via Andreas Färber
      * afaerber/tags/qom-devices-for-anthony:
        qom: Fix memory leak in object_property_set_link()
      1c46e594
    • A
      Merge remote-tracking branch 'rth/tcg-ia64-17' into staging · dc6dc0a9
      Anthony Liguori 提交于
      # By Richard Henderson
      # Via Richard Henderson
      * rth/tcg-ia64-17:
        tcg-ia64: Introduce tcg_opc_bswap64_i
        tcg-ia64: Introduce tcg_opc_ext_i
        tcg-ia64: Introduce tcg_opc_movi_a
        tcg-ia64: Introduce tcg_opc_mov_a
        tcg-ia64: Use A3 form of logical operations
        tcg-ia64: Use SUB_A3 and ADDS_A4 for subtraction
        tcg-ia64: Use ADDS for small addition
        tcg-ia64: Avoid unnecessary stop bit in tcg_out_alu
        tcg-ia64: Move AREG0 to R32
        tcg-ia64: Simplify brcond
        tcg-ia64: Handle constant calls
        tcg-ia64: Use shortcuts for nop insns
        tcg-ia64: Use TCGMemOp within qemu_ldst routines
      
      Message-id: 1384811395-7097-1-git-send-email-rth@twiddle.net
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      dc6dc0a9
    • A
      Merge remote-tracking branch 'mst/tags/for_anthony' into staging · 4be6693a
      Anthony Liguori 提交于
      pc last minute fixes for 1.8
      
      This has a patch that drops an unused FW CFG entry.
      I think it's best to include it before 1.7 to avoid
      the need to maintain it in compat machine types.
      
      There's also a doc bugfix by Amos: I'm guessing
      doc fixes are still fair game even at this late stage.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Mon 18 Nov 2013 03:48:14 AM PST using RSA key ID D28D5469
      # gpg: Can't check signature: public key not found
      
      # By Amos Kong (1) and Igor Mammedov (1)
      # Via Michael S. Tsirkin
      * mst/tags/for_anthony:
        doc: fix hardcoded helper path
        pc: disable pci-info
      
      Message-id: 1384775449-6693-1-git-send-email-mst@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      4be6693a
    • A
      Merge remote-tracking branch 'mjt/trivial-patches' into staging · 38dc7490
      Anthony Liguori 提交于
      # By Jan Krupa (4) and others
      # Via Michael Tokarev
      * mjt/trivial-patches:
        hw/i386/Makefile.obj: use $(PYTHON) to run .py scripts consistently
        configure: Use -B switch only for Python versions which support it
        qga: Fix shutdown command of guest agent to work with SysV
        console: Remove unused debug code
        qga: Fix compilation for old versions of MinGW
        .travis.yml: basic compile and check recipes
        pci-assign: Fix error_report of pci-stub message
        qapi: Fix comment for create-type to match code.
        vl: fix build when configured with no graphic support
        usb: drop unused USBNetState.inpkt field
        qemu-char: add missing characters used in keymaps
        qemu-char: add support for U-prefixed symbols
        qemu-char: add Czech keymap file
        qemu-char: add Czech characters to VNC keysyms
      
      Message-id: 1384684850-6777-1-git-send-email-mjt@msgid.tls.msk.ru
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      38dc7490
    • A
      Merge remote-tracking branch 'kwolf/tags/for-anthony' into staging · 7af31519
      Anthony Liguori 提交于
      Block fixes for 1.7.0
      
      # gpg: Signature made Fri 15 Nov 2013 09:51:25 AM PST using RSA key ID C88F2FD6
      # gpg: Can't check signature: public key not found
      
      # By Max Reitz (3) and others
      # Via Kevin Wolf
      * kwolf/tags/for-anthony:
        block: Fail if requested driver is not available
        MAINTAINERS: add block driver sub-maintainers
        qemu-img: Fix overwriting 'ret' before using
        qemu-iotests: Test qcow2 count_contiguous_clusters()
        qcow2: fix possible corruption when reading multiple clusters
        qmp: access the local QemuOptsLists for drive option
        MAINTAINERS: add block tree repo URLs
        qemu-iotests: Extend 041 for unbacked mirroring
        block/drive-mirror: Check for NULL backing_hd
        qapi-schema: Update description for NewImageMode
        block: Print its file name if backing file opening failed
      
      Message-id: 1384537999-5972-1-git-send-email-kwolf@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      7af31519
    • A
      Merge remote-tracking branch 'stefanha/net' into staging · 88a47b9d
      Anthony Liguori 提交于
      # By Amos Kong (1) and Sebastian Huber (1)
      # Via Stefan Hajnoczi
      * stefanha/net:
        virtio-net: fix the memory leak in rxfilter_notify()
        smc91c111: Fix receive starvation
      
      Message-id: 1384532032-19057-1-git-send-email-stefanha@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      88a47b9d
    • A
      Merge remote-tracking branch 'agraf/tags/signed-ppc-for-upstream-1.7' into staging · 8c630d51
      Anthony Liguori 提交于
      Patch queue for ppc - 2013-11-08
      
      These are two patches that will hopefully make it into 1.7. The SLOF update
      fixes -append kernel command line argument passing into the guest kernel. The
      other patch makes VIO devices appear when using -device '?'.
      
      # gpg: Signature made Thu 07 Nov 2013 07:34:54 PM PST using RSA key ID 03FEDC60
      # gpg: Can't check signature: public key not found
      
      # By Alexey Kardashevskiy
      # Via Alexander Graf
      * agraf/tags/signed-ppc-for-upstream-1.7:
        pseries: Update SLOF firmware image
        spapr: add vio-bus devices to categories
      
      Message-id: 1383881766-13958-1-git-send-email-agraf@suse.de
      Signed-off-by: NAnthony Liguori <aliguori@amazon.com>
      8c630d51
    • P
      migration: drop MADVISE_DONT_NEED for incoming zero pages · fc1c4a5d
      Peter Lieven 提交于
      The madvise for zeroed out pages was introduced when every transferred
      zero page was memset to zero and thus allocated. Since commit
      211ea740 we check for zeroness of a target page before we memset
      it to zero. Additionally we memmap target memory so it is essentially
      zero initialized (except for e.g. option roms and bios which are loaded
      into target memory although they shouldn't).
      
      It was reported recently that this madvise causes a performance degradation
      in some situations. As the madvise should only be called rarely and if it's called
      it is likely on a busy page (it was non-zero and changed to zero during migration)
      drop it completely.
      Reported-By: NZhang Haoyu <haoyu.zhang@huawei.com>
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      fc1c4a5d
  3. 19 11月, 2013 3 次提交
  4. 18 11月, 2013 14 次提交
  5. 17 11月, 2013 2 次提交
  6. 16 11月, 2013 1 次提交
    • W
      qga: Fix shutdown command of guest agent to work with SysV · 485e741c
      whitearchey 提交于
      For now guest agent uses following command to shutdown system:
      shutdown -P +0 "blabla"
      but this syntax works only with shutdown command from systemd or upstart,
      because SysV shutdown requires -h switch.
      
      Following patch changes the command so it works with systemd, upstart and SysV
      
      With upstart/systemd qga use one of thee commands, depending on 'mode' parameter:
        shutdown -P +0 "..."
        shutdown -H +0 "..."
        shutdown -r +0 "..."
      SysV equivalents for these are:
        shutdown -h -P +0 "..."
        shutdown -h -H +0 "..."
        shutdown -h -r +0 "..."
      and these retain their meaning with upstart/systemd.
      
      According to FreeBSD manpages, shutdown does not accept -P and -H options. Commands should be:
        shutdown -p +0 "..."
        shutdown -h +0 "..."
        shutdown -r +0 "..."
      
      shutdown in Solaris does not accept any of -hHpPr and does not accept time in "+0" format
      Signed-off-by: NMichael Avdienko <whitearchey@gmail.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      485e741c
  7. 15 11月, 2013 5 次提交
  8. 14 11月, 2013 2 次提交
    • P
      qcow2: fix possible corruption when reading multiple clusters · 78a52ad5
      Peter Lieven 提交于
      if multiple sectors spanning multiple clusters are read the
      function count_contiguous_clusters should ensure that the
      cluster type should not change between the clusters.
      
      Especially the for-loop should break when we have one
      or more normal clusters followed by a compressed cluster.
      
      Unfortunately the wrong macro was used in the mask to
      compare the flags.
      
      This was discovered while debugging a data corruption
      issue when converting a compressed qcow2 image to raw.
      qemu-img reads 2MB chunks which span multiple clusters.
      
      CC: qemu-stable@nongnu.org
      Signed-off-by: NPeter Lieven <pl@kamp.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      78a52ad5
    • A
      qmp: access the local QemuOptsLists for drive option · 968854c8
      Amos Kong 提交于
      Currently we have three QemuOptsList (qemu_common_drive_opts,
      qemu_legacy_drive_opts, and qemu_drive_opts), only qemu_drive_opts
      is added to vm_config_groups[].
      
      This patch changes query-command-line-options to access three local
      QemuOptsLists for drive option, and merge the description items
      together.
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      968854c8