1. 22 3月, 2013 28 次提交
  2. 20 3月, 2013 1 次提交
  3. 19 3月, 2013 11 次提交
    • A
      Merge remote-tracking branch 'kraxel/ipxe.2' into staging · f7d42093
      Anthony Liguori 提交于
      # By Gerd Hoffmann
      # Via Gerd Hoffmann
      * kraxel/ipxe.2:
        Switch to efi-enabled nic roms by default
        Add efi rom binaries
        Add Makefile rules to build nic rom binaries with efi support
        Update ipxe submodule to latest master
        Add Makefile rules to build nic rom binaries
      f7d42093
    • A
      add a boot option to do strict boot · c8a6ae8b
      Amos Kong 提交于
      Seabios already added a new device type to halt booting.
      Qemu can add "HALT" at the end of bootindex string, then
      seabios will halt booting after trying to boot from all
      selected devices.
      
      This patch added a new boot option to configure if boot
      from un-selected devices.
      
      This option only effects when boot priority is changed by
      bootindex options, the old style(-boot order=..) will still
      try to boot from un-selected devices.
      
      v2: add HALT entry in get_boot_devices_list()
      v3: rebase to latest qemu upstream
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Message-id: 1363674207-31496-1-git-send-email-akong@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      c8a6ae8b
    • P
      ui/cocoa.m: Fix compile failures introduced by recent console changes · 8510d91e
      Peter Maydell 提交于
      Fix various compilation failures introduced by the recent console
      changes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1363638501-29603-1-git-send-email-peter.maydell@linaro.org
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8510d91e
    • A
      Merge remote-tracking branch 'kwolf/for-anthony' into staging · 277ba8a6
      Anthony Liguori 提交于
      # By Stefan Hajnoczi (2) and others
      # Via Kevin Wolf
      * kwolf/for-anthony:
        virtio-blk: Do not segfault fault if failed to initialize dataplane
        qemu-iotests: add 052 BDRV_O_SNAPSHOT test
        block: fix BDRV_O_SNAPSHOT protocol detection
        qcow2: Fix segfault in qcow2_invalidate_cache
        sheepdog: show error message for halt status
      277ba8a6
    • K
      char: Fix return type of qemu_chr_fe_add_watch() · 2c8a5942
      Kevin Wolf 提交于
      qemu_chr_fe_add_watch() can return negative errors, therefore it must
      not have an unsigned return type. For consistency with other
      qemu_chr_fe_* functions, this uses a standard C int instead of glib
      types.
      
      In situations where qemu_chr_fe_add_watch() is falsely assumed to have
      succeeded, the serial ports would go into a state where it never becomes
      ready for transmitting more data; this is fixed by this patch.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      2c8a5942
    • G
      fix monitor · f628926b
      Gerd Hoffmann 提交于
      chardev flow control broke monitor, fix it by adding watch support.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      f628926b
    • D
      virtio-blk: Do not segfault fault if failed to initialize dataplane · a8e5cc0c
      Dunrong Huang 提交于
      $ ~/usr/bin/qemu-system-x86_64 -enable-kvm -m 1024 -drive if=none,id=drive0,cache=none,aio=native,format=raw,file=/root/Image/centos-6.4.raw -device virtio-blk-pci,drive=drive0,scsi=off,x-data-plane=on,config-wce=on # make dataplane fail to initialize
      qemu-system-x86_64: -device virtio-blk-pci,drive=drive0,scsi=off,x-data-plane=on,config-wce=on: device is incompatible with x-data-plane, use config-wce=off
      *** glibc detected *** /root/usr/bin/qemu-system-x86_64: free(): invalid pointer: 0x00007f001fef12f8 ***
      ======= Backtrace: =========
      /lib64/libc.so.6(+0x7d776)[0x7f00153a5776]
      /root/usr/bin/qemu-system-x86_64(+0x2c34ec)[0x7f001cf5b4ec]
      /root/usr/bin/qemu-system-x86_64(+0x342f9a)[0x7f001cfdaf9a]
      /root/usr/bin/qemu-system-x86_64(+0x33694e)[0x7f001cfce94e]
      ....................
      
       (gdb) bt
       #0  0x00007f3bf3a12015 in raise () from /lib64/libc.so.6
       #1  0x00007f3bf3a1348b in abort () from /lib64/libc.so.6
       #2  0x00007f3bf3a51a4e in __libc_message () from /lib64/libc.so.6
       #3  0x00007f3bf3a57776 in malloc_printerr () from /lib64/libc.so.6
       #4  0x00007f3bfb60d4ec in free_and_trace (mem=0x7f3bfe0129f8) at vl.c:2786
       #5  0x00007f3bfb68cf9a in virtio_cleanup (vdev=0x7f3bfe0129f8) at /root/Develop/QEMU/qemu/hw/virtio.c:900
       #6  0x00007f3bfb68094e in virtio_blk_device_init (vdev=0x7f3bfe0129f8) at /root/Develop/QEMU/qemu/hw/virtio-blk.c:666
       #7  0x00007f3bfb68dadf in virtio_device_init (qdev=0x7f3bfe0129f8) at /root/Develop/QEMU/qemu/hw/virtio.c:1092
       #8  0x00007f3bfb50da46 in device_realize (dev=0x7f3bfe0129f8, err=0x7fff479c9258) at hw/qdev.c:176
      .............................
      
      In virtio_blk_device_init(), the memory which vdev point to is a static
      member of "struct VirtIOBlkPCI", not heap memory, and it does not
      get freed. So we shoule use virtio_common_cleanup() to clean this VirtIODevice
      rather than virtio_cleanup(), which attempts to free the vdev.
      
      This error was introduced by commit 05ff6865
      recently.
      Signed-off-by: NDunrong Huang <huangdr@cloud-times.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a8e5cc0c
    • S
      qemu-iotests: add 052 BDRV_O_SNAPSHOT test · f95e26dd
      Stefan Hajnoczi 提交于
      Check that writes to an image opened with BDRV_O_SNAPSHOT do not modify
      the underlying image file.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f95e26dd
    • S
      block: fix BDRV_O_SNAPSHOT protocol detection · 4d70655b
      Stefan Hajnoczi 提交于
      realpath(3) is used to get an absolute path to the image file when
      creating a -drive snapshot=on temporary qcow2.  This does not work for
      protocols since their filenames ("proto:foo:...") do not correspond to
      file system paths.
      
      Commit 7c96d46e ("Let snapshot work with
      protocols") skipped realpath(3) for protocols.  Later on the "raw"
      format was introduced and broke the check.
      
      Use path_has_protocol(filename) to decide if this image uses a protocol
      or a filename.
      Reported-by: NRichard Jones <rjones@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      4d70655b
    • K
      qcow2: Fix segfault in qcow2_invalidate_cache · acdfb480
      Kevin Wolf 提交于
      Need to pass an options QDict to qcow2_open() now. This fixes a segfault
      on the migration target with qcow2.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      acdfb480
    • L
      sheepdog: show error message for halt status · fca23f0a
      Liu Yuan 提交于
      Sheepdog (neither quorum nor unsafe mode) will refuse to serve IO requests when
      number of alive nodes is less than that of copies specified by users. This will
      return 0x19 to QEMU client which currently doesn't recognize it.
      
      This patch adds an error description when QEMU client receives it, other than
      plainly printing 'Invalid error code'
      
      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 <tailai.ly@taobao.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed-by: NMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      fca23f0a