1. 17 6月, 2013 8 次提交
    • L
      sheepdog: support 'qemu-img snapshot -a' · cede621f
      Liu Yuan 提交于
      Just call sd_create_branch() in the snapshot_goto to rollback the image is good
      enough. With this patch, 'loadvm' process for sheepdog is modified:
      
      Suppose we have a snapshot chain A --> B --> C, we do 'loadvm A' so as to get
      a new chain,
      
      A --> B
      |
      V
      C1
      
      in the old code:
      
      1 reload inode of A (in snapshot_goto)
      2 read vmstate via A's vdi_id (loadvm_state)
      3 delete C and create C1, reload inode of C1 (sd_create_branch on write)
      
      with this patch applied:
      
      1 reload inode of A, delete C and create C1  (in snapshot_goto)
      2 read vmstate via C1's parent, that is A's vdi_id (loadvm_state)
      
      This will fix the possible bug that QEMU exit between 2 and 3 in the old code
      
      Cc: qemu-devel@nongnu.org
      Cc: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: Stefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NLiu Yuan <namei.unix@gmail.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      cede621f
    • L
      sheepdog: fix snapshot tag initialization · b579ffb3
      Liu Yuan 提交于
      This is an old and obvious bug. We should pass snapshot_id to the
      tag. Or simple command like 'qemu-img snapshot -a tag sheepdog:image' will fail
      
      Cc: qemu-devel@nongnu.org
      Cc: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: Stefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NLiu Yuan <namei.unix@gmail.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      b579ffb3
    • A
      Merge remote-tracking branch 'pmaydell/configury.next' into staging · 38aea177
      Anthony Liguori 提交于
      # By Paolo Bonzini (4) and others
      # Via Peter Maydell
      * pmaydell/configury.next:
        ppc: Remove CONFIG_FDT conditionals
        microblaze: Remove CONFIG_FDT conditionals
        arm: Remove CONFIG_FDT conditionals
        configure: Require libfdt for arm, ppc, microblaze softmmu targets
        configure: dtc: Probe for libfdt_env.h
        build: drop TARGET_TYPE
        main: use TARGET_ARCH only for the target-specific #define
        build: do not use TARGET_ARCH
        build: rename TARGET_ARCH2 to TARGET_NAME
        Add a stp file for usage from build directory
      
      Message-id: 1371221594-11556-1-git-send-email-peter.maydell@linaro.org
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      38aea177
    • A
      Merge remote-tracking branch 'mjt/trivial-patches' into staging · b7a3b1cd
      Anthony Liguori 提交于
      # By Michael Tokarev (1) and Vladimir Senkov (1)
      # Via Michael Tokarev
      * mjt/trivial-patches:
        char/serial: fix copy&paste error (fifo8_is_full vs empty)
        vl: always define no_frame
      
      Message-id: 1371455050-9523-1-git-send-email-mjt@msgid.tls.msk.ru
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b7a3b1cd
    • V
      char/serial: fix copy&paste error (fifo8_is_full vs empty) · b165b0d8
      Vladimir Senkov 提交于
      Copy&paste error in serial.c causes a crash when attempting
      to read from UART (if there is no data to be read)
      Signed-off-by: NVladimir Senkov <hangup@gmail.com>
      Reviewed-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      b165b0d8
    • M
      vl: always define no_frame · 616404cd
      Michael Tokarev 提交于
      Commit 047d4e15 "Unbreak -no-quit for GTK, validate SDL options" broke
      build of qemu without sdl, by referencing `no_frame' variable which is defined
      inside #if SDL block.  Fix that by defining that variable unconditionally.
      
      This is a better fix for the build issue introduced by that patch than
      a revert.  This change keeps the new functinality introduced by that patch
      and just fixes the compilation.  It still is not a complete fix around the
      original issue (not working -no-frame et al with -display gtk), because it
      makes only the legacy interface working, not the new suboption interface,
      so a few more changes are needed.
      
      Cc: Peter Wu <lekensteyn@gmail.com>
      Cc: qemu-trivial@nongnu.org
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: NPeter Wu <lekensteyn@gmail.com>
      616404cd
    • S
      gtk: Fix compiler warning (GTK 3 deprecated function) · 030b4b7d
      Stefan Weil 提交于
      With GTK 3, the function gdk_cursor_unref is deprecated:
      
      qemu/ui/gtk.c: In function ‘gd_cursor_define’:
      qemu/ui/gtk.c:380:5: error:
       ‘gdk_cursor_unref’ is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkcursor.h:233): Use 'g_object_unref' instead [-Werror=deprecated-declarations]
      
      Fix the gcc compiler warning by using conditional compilation.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Message-id: 1371391987-10795-1-git-send-email-sw@weilnetz.de
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      030b4b7d
    • M
      vl: always define no_frame · a1077090
      Michael Tokarev 提交于
      Commit 047d4e15 "Unbreak -no-quit for GTK, validate SDL options" broke
      build of qemu without sdl, by referencing `no_frame' variable which is defined
      inside #if SDL block.  Fix that by defining that variable unconditionally.
      
      This is a better fix for the build issue introduced by that patch than
      a revert.  This change keeps the new functinality introduced by that patch
      and just fixes the compilation.  It still is not a complete fix around the
      original issue (not working -no-frame et al with -display gtk), because it
      makes only the legacy interface working, not the new suboption interface,
      so a few more changes are needed.
      
      Cc: Peter Wu <lekensteyn@gmail.com>
      Cc: qemu-trivial@nongnu.org
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Reviewed-by: NPeter Wu <lekensteyn@gmail.com>
      Tested-by: NAndreas Färber <afaerber@suse.de>
      Message-id: 1371292923-28105-1-git-send-email-mjt@msgid.tls.msk.ru
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a1077090
  2. 16 6月, 2013 12 次提交
  3. 15 6月, 2013 2 次提交
    • B
      Merge branch 'realize-isa.v2' of git://github.com/afaerber/qemu-cpu · 371a775d
      Blue Swirl 提交于
      * 'realize-isa.v2' of git://github.com/afaerber/qemu-cpu:
        qdev: Drop FROM_QBUS() macro
        isa: QOM'ify ISADevice
        isa: QOM'ify ISABus
        i8259: Convert PICCommonState to use QOM realizefn
        kvm/i8259: QOM'ify some more
        i8259: QOM'ify some more
        i8254: Convert PITCommonState to QOM realizefn
        kvm/i8254: QOM'ify some more
        i8254: QOM'ify some more
        isa: Use realizefn for ISADevice
        cs4231a: QOM'ify some more
        gus: QOM'ify some more
      371a775d
    • M
      ide-test: fix failure for test_flush · 22bfa16e
      Michael Roth 提交于
      bd07684a added a test to ensure BSY
      flag is set when a flush request is in flight. It does this by setting
      a blkdebug breakpoint on flush_to_os before issuing a CMD_FLUSH_CACHE.
      It then resumes CMD_FLUSH_CACHE operation and checks that BSY is unset.
      
      The actual unsetting of BSY does not occur until ide_flush_cb gets
      called in a bh, however, so in some cases this check will race with
      the actual completion.
      
      Fix this by polling the ide status register until BSY flag gets unset
      before we do our final sanity checks. According to
      f68ec837 this is in line with how a guest
      would determine whether or not the device is still busy.
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      22bfa16e
  4. 14 6月, 2013 18 次提交