qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] fb541c: kvm: Query KVM for available memory s


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] fb541c: kvm: Query KVM for available memory slots
Date: Sat, 07 Dec 2013 08:00:07 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: fb541ca59c8b55911821c9f794c3dbe5de9ba9d8
      
https://github.com/qemu/qemu/commit/fb541ca59c8b55911821c9f794c3dbe5de9ba9d8
  Author: Alex Williamson <address@hidden>
  Date:   2013-11-25 (Mon, 25 Nov 2013)

  Changed paths:
    M kvm-all.c

  Log Message:
  -----------
  kvm: Query KVM for available memory slots

KVM reports the number of available memory slots (KVM_CAP_NR_MEMSLOTS)
using the extension interface.  Both x86 and s390 implement this, ARM
and powerpc do not yet enable it.  Convert the static slots array to
be dynamically allocated, supporting more slots when available.
Default to 32 when KVM_CAP_NR_MEMSLOTS is not implemented.  The
motivation for this change is to support more assigned devices, where
memory mapped PCI MMIO BARs typically take one slot each.

Signed-off-by: Alex Williamson <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: ef36fa1492e9105f3fa607b56edc63df513d7da1
      
https://github.com/qemu/qemu/commit/ef36fa1492e9105f3fa607b56edc63df513d7da1
  Author: Marcelo Tosatti <address@hidden>
  Date:   2013-11-25 (Mon, 25 Nov 2013)

  Changed paths:
    M exec.c
    M qemu-options.hx
    M vl.c

  Log Message:
  -----------
  qemu: mempath: prefault pages manually (v4)

v4: s/fail/failed/  (Peter Maydell)

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Marcelo Tosatti <address@hidden>


  Commit: aeca6e8d8b7dba78c3d1622463e238b773d9df13
      
https://github.com/qemu/qemu/commit/aeca6e8d8b7dba78c3d1622463e238b773d9df13
  Author: Gerd Hoffmann <address@hidden>
  Date:   2013-12-02 (Mon, 02 Dec 2013)

  Changed paths:
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c

  Log Message:
  -----------
  add pc-{i440fx,q35}-2.0 machine types

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 1442d3e6912d7ec88480099503cfa0aeaedf5634
      
https://github.com/qemu/qemu/commit/1442d3e6912d7ec88480099503cfa0aeaedf5634
  Author: Gerd Hoffmann <address@hidden>
  Date:   2013-12-02 (Mon, 02 Dec 2013)

  Changed paths:
    M vl.c

  Log Message:
  -----------
  add firmware to machine options

This patch adds firmware to the machine options.  -bios <file> becomes a
shortcut for -machine firmware=<file>.  Advantage is that the firmware
can be specified via config file as -machine is parsed using QemuOpts
and it is also possible to use different defaults for different
machine types (via QEMUMachine->default_machine_opts).

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: f287c41381efe172ff5dc62498e2afc83a9ab995
      
https://github.com/qemu/qemu/commit/f287c41381efe172ff5dc62498e2afc83a9ab995
  Author: Marc-André Lureau <address@hidden>
  Date:   2013-12-02 (Mon, 02 Dec 2013)

  Changed paths:
    M include/block/coroutine.h
    M qemu-coroutine-lock.c

  Log Message:
  -----------
  coroutine: remove qemu_co_queue_wait_insert_head

qemu_co_queue_wait_insert_head() is unused in qemu code base now.

Signed-off-by: Marc-André Lureau <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 7b6b145dbc62162df818dc2c5153defd0417c688
      
https://github.com/qemu/qemu/commit/7b6b145dbc62162df818dc2c5153defd0417c688
  Author: Marc-André Lureau <address@hidden>
  Date:   2013-12-02 (Mon, 02 Dec 2013)

  Changed paths:
    M include/block/coroutine.h

  Log Message:
  -----------
  coroutine: remove unused CoQueue AioContext

The AioContext ctx field is apparently unused in qemu codebase since
02ffb504485.

Signed-off-by: Marc-André Lureau <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: af057fe74092df2e7a576448ddbdc0daac1370bf
      
https://github.com/qemu/qemu/commit/af057fe74092df2e7a576448ddbdc0daac1370bf
  Author: Fam Zheng <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/vmdk.c
    M tests/qemu-iotests/059
    M tests/qemu-iotests/059.out

  Log Message:
  -----------
  vmdk: Fix creating big description file

The buffer for description file was 4096 which only covers a few
hundred of extents. This changes the buffer to dynamic allocated with
g_strdup_printf in order to support bigger cases.

Signed-off-by: Fam Zheng <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: e9eecb5bf82a71564bf018fcbbfc6cda19cab6c2
      
https://github.com/qemu/qemu/commit/e9eecb5bf82a71564bf018fcbbfc6cda19cab6c2
  Author: Paul Moore <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M qemu-seccomp.c

  Log Message:
  -----------
  seccomp: add kill() to the syscall whitelist

The kill() syscall is triggered with the following command:

 # qemu -sandbox on -monitor stdio \
  -device intel-hda -device hda-duplex -vnc :0

The resulting syslog/audit message:

 # ausearch -m SECCOMP
 ----
 time->Wed Nov 20 09:52:08 2013
 type=SECCOMP msg=audit(1384912328.482:6656): auid=0 uid=0 gid=0 ses=854
  subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=12087
  comm="qemu-kvm" sig=31 syscall=62 compat=0 ip=0x7f7a1d2abc67 code=0x0
 # scmp_sys_resolver 62
 kill

Reported-by: CongLi <address@hidden>
Tested-by: CongLi <address@hidden>
Signed-off-by: Paul Moore <address@hidden>
Acked-by: Eduardo Otubo <address@hidden>


  Commit: d51e9fe505f7c7b97762100dd0e42cef43c90524
      
https://github.com/qemu/qemu/commit/d51e9fe505f7c7b97762100dd0e42cef43c90524
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block.c

  Log Message:
  -----------
  block: generalize BlockLimits handling to cover bdrv_aio_discard too

bdrv_co_discard is only covering drivers which have a .bdrv_co_discard()
implementation, but not those with .bdrv_aio_discard(). Not very nice,
and easy to avoid.

Suggested-by: Kevin Wolf <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: d20d9b7c6723d0123b7d60dd5557aa0a6599f471
      
https://github.com/qemu/qemu/commit/d20d9b7c6723d0123b7d60dd5557aa0a6599f471
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block.c
    M include/block/block.h

  Log Message:
  -----------
  block: add flags to BlockRequest

This lets bdrv_co_do_rw receive flags, so that it can be used for
zero writes.

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 94d6ff21f48c8c98e6e9eef58cc6f6346c9dd851
      
https://github.com/qemu/qemu/commit/94d6ff21f48c8c98e6e9eef58cc6f6346c9dd851
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block.c
    M trace-events

  Log Message:
  -----------
  block: add flags argument to bdrv_co_write_zeroes tracepoint

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: d5ef94d43da8c57a2d597efbdec3d9a54d97fdf7
      
https://github.com/qemu/qemu/commit/d5ef94d43da8c57a2d597efbdec3d9a54d97fdf7
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block.c
    M include/block/block.h
    M trace-events

  Log Message:
  -----------
  block: add bdrv_aio_write_zeroes

This will be used by the SCSI layer.

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 7ce21016b69b512bf4777965a4292318f2bc7544
      
https://github.com/qemu/qemu/commit/7ce21016b69b512bf4777965a4292318f2bc7544
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block.c
    M block/raw-posix.c

  Log Message:
  -----------
  block: handle ENOTSUP from discard in generic code

Similar to write_zeroes, let the generic code receive a ENOTSUP for
discard operations.  Since bdrv_discard has advisory semantics,
we can just swallow the error.

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: b8d71c09f31a9cae248d167dddc75c66d5135ff2
      
https://github.com/qemu/qemu/commit/b8d71c09f31a9cae248d167dddc75c66d5135ff2
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block.c

  Log Message:
  -----------
  block: make bdrv_co_do_write_zeroes stricter in producing aligned requests

Right now, bdrv_co_do_write_zeroes will only try to align the
beginning of the request.  However, it is simpler for many
formats to expect the block layer to separate both the head *and*
the tail.  This makes sure that the format's bdrv_co_write_zeroes
function will be called with aligned sector_num and nb_sectors for
the bulk of the request.

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 97b00e285119e611f500686f32f9bccffbb9126a
      
https://github.com/qemu/qemu/commit/97b00e285119e611f500686f32f9bccffbb9126a
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/vhdx.c
    M block/vpc.c

  Log Message:
  -----------
  vpc, vhdx: add get_info

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 95de6d7078b029b73708059a17cef20f332adcb7
      
https://github.com/qemu/qemu/commit/95de6d7078b029b73708059a17cef20f332adcb7
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/qcow2.c
    M block/qed.c
    M block/vdi.c
    M block/vhdx.c
    M block/vpc.c

  Log Message:
  -----------
  block drivers: add discard/write_zeroes properties to bdrv_get_info 
implementation

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: cffb1ec600de83f693a23578fc2f344c1af9b96f
      
https://github.com/qemu/qemu/commit/cffb1ec600de83f693a23578fc2f344c1af9b96f
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/qcow2.c
    M block/qed.c
    M block/vmdk.c

  Log Message:
  -----------
  block drivers: expose requirement for write same alignment from formats

This will let misaligned but large requests use zero clusters.  This
is important because the cluster size is not guest visible.

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 4b52498e62d02a30f780875f54431d1bad0bcabd
      
https://github.com/qemu/qemu/commit/4b52498e62d02a30f780875f54431d1bad0bcabd
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/iscsi.c

  Log Message:
  -----------
  block/iscsi: remove .bdrv_has_zero_init

since commit 3ac21627 the default value changed to 0.

Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 2af8a1a704a352bab2e9eaf803db0b3552e826d0
      
https://github.com/qemu/qemu/commit/2af8a1a704a352bab2e9eaf803db0b3552e826d0
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/iscsi.c

  Log Message:
  -----------
  block/iscsi: updated copyright

added myself to reflect recent work on the iscsi block driver.

Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: fa6252b0565526ec2347e248172f91771e0d9f47
      
https://github.com/qemu/qemu/commit/fa6252b0565526ec2347e248172f91771e0d9f47
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/iscsi.c

  Log Message:
  -----------
  block/iscsi: check WRITE SAME support differently depending on MAY_UNMAP

The current check is right for MAY_UNMAP=1.  For MAY_UNMAP=0, just
try and fall back to regular writes as soon as a WRITE SAME command
fails.

Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 260a82e524b7f86c12b8e39d4c3f208af95645f7
      
https://github.com/qemu/qemu/commit/260a82e524b7f86c12b8e39d4c3f208af95645f7
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/raw-posix.c
    M trace-events

  Log Message:
  -----------
  raw-posix: implement write_zeroes with MAY_UNMAP for files

Writing zeroes to a file can be done by punching a hole if
MAY_UNMAP is set.

Note that in this case ENOTSUP is not ignored, but makes
the block layer fall back to the generic implementation.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: d0b4503ed2d8713791c38839341b023f78d1a3d9
      
https://github.com/qemu/qemu/commit/d0b4503ed2d8713791c38839341b023f78d1a3d9
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/raw-posix.c

  Log Message:
  -----------
  raw-posix: implement write_zeroes with MAY_UNMAP for block devices

See the next commit for the description of the Linux kernel problem
that is worked around in raw_open_common.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 97a2ae34537882df34810d538ab1f51085499d2c
      
https://github.com/qemu/qemu/commit/97a2ae34537882df34810d538ab1f51085499d2c
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M block/raw-aio.h
    M block/raw-posix.c

  Log Message:
  -----------
  raw-posix: add support for write_zeroes on XFS and block devices

The code is similar to the implementation of discard and write_zeroes
with UNMAP.  However, failure must be propagated up to block.c.

The stale page cache problem can be reproduced as follows:

    # modprobe scsi-debug lbpws=1 lbprz=1
    # ./qemu-io /dev/sdXX
    qemu-io> write -P 0xcc 0 2M
    qemu-io> write -z 0 1M
    qemu-io> read -P 0x00 0 512
    Pattern verification failed at offset 0, 512 bytes
    qemu-io> read -v 0 512
    00000000:  cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc  ................
    ...

    # ./qemu-io --cache=none /dev/sdXX
    qemu-io> write -P 0xcc 0 2M
    qemu-io> write -z 0 1M
    qemu-io> read -P 0x00 0 512
    qemu-io> read -v 0 512
    00000000:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    ...

And similarly with discard instead of "write -z".

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: e18d90c15bab0d47d8f30696058abfb78396081f
      
https://github.com/qemu/qemu/commit/e18d90c15bab0d47d8f30696058abfb78396081f
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/group

  Log Message:
  -----------
  qemu-iotests: 033 is fast

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: c5fd1fb038405ed13496761970b3b531f747a892
      
https://github.com/qemu/qemu/commit/c5fd1fb038405ed13496761970b3b531f747a892
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M hw/scsi/scsi-disk.c

  Log Message:
  -----------
  scsi-disk: catch write protection errors in UNMAP

This is the same that is already done for WRITE SAME.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 823bd7391c96ba675f20fd6d952d1cb6e1ffb851
      
https://github.com/qemu/qemu/commit/823bd7391c96ba675f20fd6d952d1cb6e1ffb851
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M hw/scsi/scsi-disk.c

  Log Message:
  -----------
  scsi-disk: reject ANCHOR=1 for UNMAP and WRITE SAME commands

Since we report ANC_SUP==0 in VPD page B2h, we need to return
an error (ILLEGAL REQUEST/INVALID FIELD IN CDB) for all WRITE SAME
requests with ANCHOR==1.

Inspired by a similar patch to the LIO in-kernel target.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 84f94a9a82487639bc87d5f09f938c9f6a61f79a
      
https://github.com/qemu/qemu/commit/84f94a9a82487639bc87d5f09f938c9f6a61f79a
  Author: Paolo Bonzini <address@hidden>
  Date:   2013-12-03 (Tue, 03 Dec 2013)

  Changed paths:
    M hw/scsi/scsi-disk.c

  Log Message:
  -----------
  scsi-disk: correctly implement WRITE SAME

Fetch the data to be written from the input buffer.  If it is all zeroes,
we can use the write_zeroes call (possibly with the new MAY_UNMAP flag).
Otherwise, do as many write cycles as needed, writing 512k at a time.

Strictly speaking, this is still incorrect because a zero cluster should
only be written if the MAY_UNMAP flag is set.  But this is a bug in qcow2
and the other formats, not in the SCSI code.

Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 66f6b8143ba0fd873a0b4b4b3da41cf604bc5a11
      
https://github.com/qemu/qemu/commit/66f6b8143ba0fd873a0b4b4b3da41cf604bc5a11
  Author: Max Reitz <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M block.c

  Log Message:
  -----------
  block: Close backing file early in bdrv_img_create

Leaving the backing file open although it is not needed anymore can
cause problems if it is opened through a block driver which allows
exclusive access only and if the create function of the block driver
used for the top image (the one being created) tries to close and reopen
the image file (which will include opening the backing file a second
time).

In particular, this will happen with a backing file opened through
qemu-nbd and using qcow2 as the top image file format (which reopens the
image to flush it to disk).

In addition, the BlockDriverState in bdrv_img_create() is used for the
backing file only; it should therefore be made local to the respective
block.

Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Kevin Wolf <address@hidden>
Reviewed-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f8413b3c23b08a547ce18609acc6fae5fd04ed5c
      
https://github.com/qemu/qemu/commit/f8413b3c23b08a547ce18609acc6fae5fd04ed5c
  Author: Kevin Wolf <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M block/qcow2.c

  Log Message:
  -----------
  qcow2: Zero-initialise first cluster for new images

Strictly speaking, this is only required for has_zero_init() == false,
but it's easy enough to just do a cluster-aligned write that is padded
with zeros after the header.

This fixes that after 'qemu-img create' header extensions are attempted
to be parsed that are really just random leftover data.

Cc: address@hidden
Signed-off-by: Kevin Wolf <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 3baa84491a43c6ba4909cbff69a9f045df9f4879
      
https://github.com/qemu/qemu/commit/3baa84491a43c6ba4909cbff69a9f045df9f4879
  Author: Fam Zheng <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/check
    M tests/qemu-iotests/common

  Log Message:
  -----------
  qemu-iotests: Add "-c <cache-mode>" option

The option sets cache mode used in the tests. "-nocache" is changed to
an alias to "-c none", and internally passes "-t none" to qemu-io.

Python scripts will make use of option this in the next commit.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 58cc2ae1e3f9f8cd6830a0af116c51c3355710d3
      
https://github.com/qemu/qemu/commit/58cc2ae1e3f9f8cd6830a0af116c51c3355710d3
  Author: Fam Zheng <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/iotests.py

  Log Message:
  -----------
  qemu-iotests: Honour cache mode in iotests.py

This will allow overriding cache mode from the "-c mode" option.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f210a83c1f809516acd9179d02d8c986c5db24cd
      
https://github.com/qemu/qemu/commit/f210a83c1f809516acd9179d02d8c986c5db24cd
  Author: Fam Zheng <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/026
    M tests/qemu-iotests/039
    M tests/qemu-iotests/052
    M tests/qemu-iotests/common.rc

  Log Message:
  -----------
  qemu-iotests: Add _default_cache_mode and _supported_cache_modes

This replaces _unsupported_qemu_io_options and check for support of
current cache mode, and allow to provide a default if user didn't
specify.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: e14fb91312b27754aa30e78d4bb4ad5cb183b646
      
https://github.com/qemu/qemu/commit/e14fb91312b27754aa30e78d4bb4ad5cb183b646
  Author: Fam Zheng <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/common

  Log Message:
  -----------
  qemu-iotests: Change default cache mode to "writeback"

So that the tests can run faster.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 236c796432bed70e442aa617807a528c18b1ebd3
      
https://github.com/qemu/qemu/commit/236c796432bed70e442aa617807a528c18b1ebd3
  Author: Fam Zheng <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/common

  Log Message:
  -----------
  qemu-iotests: Clean up spaces in usage output

Whitespace changes to align columns.

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Benoit Canet <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 34602dd6424c4f1cc414ba672f4f430182b5d9f2
      
https://github.com/qemu/qemu/commit/34602dd6424c4f1cc414ba672f4f430182b5d9f2
  Author: Fam Zheng <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/048
    M tests/qemu-iotests/048.out
    A tests/qemu-iotests/074
    A tests/qemu-iotests/074.out
    M tests/qemu-iotests/group

  Log Message:
  -----------
  qemu-iotests: Split qcow2 only cases in 048

Format "raw" doesn't always work on certain file systems (e.g. tmpfs).
Use qcow2 to make the allocation status explicit and split into a new
case.

[Resolved merge conflict due to "qemu-io> " prompt filter, added 074 to
group file, and fixed up s/048/074/ copy-paste mistake.
--Stefan]

Signed-off-by: Fam Zheng <address@hidden>
Reviewed-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 7b4c4781e390a041fa0ef70817678f1b97fc6db6
      
https://github.com/qemu/qemu/commit/7b4c4781e390a041fa0ef70817678f1b97fc6db6
  Author: Wenchao Xia <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M block/qcow2-snapshot.c
    M block/qcow2.h
    M block/snapshot.c
    M include/block/block_int.h
    M include/block/snapshot.h
    M qemu-img.c

  Log Message:
  -----------
  snapshot: distinguish id and name in load_tmp

Since later this function will be used so improve it. The only caller of it
now is qemu-img, and it is not impacted by introduce function
bdrv_snapshot_load_tmp_by_id_or_name() that call bdrv_snapshot_load_tmp()
twice to keep old search logic. bdrv_snapshot_load_tmp_by_id_or_name() return
int to let caller know the errno, and errno will be used later.
Also fix a typo in comments of bdrv_snapshot_delete().

Signed-off-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 8c116b0e4141400f8d43a7e6dac8ff3adcc8aadd
      
https://github.com/qemu/qemu/commit/8c116b0e4141400f8d43a7e6dac8ff3adcc8aadd
  Author: Wenchao Xia <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M block/snapshot.c
    M include/block/snapshot.h
    M qemu-nbd.c
    M qemu-nbd.texi

  Log Message:
  -----------
  qemu-nbd: support internal snapshot export

Now it is possible to directly export an internal snapshot, which
can be used to probe the snapshot's contents without qemu-img
convert.

Signed-off-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 9c468a013fd0b0eb6154f8c5cfd2b1d498a86113
      
https://github.com/qemu/qemu/commit/9c468a013fd0b0eb6154f8c5cfd2b1d498a86113
  Author: Wenchao Xia <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    A tests/qemu-iotests/058
    A tests/qemu-iotests/058.out
    M tests/qemu-iotests/check
    M tests/qemu-iotests/common.rc
    M tests/qemu-iotests/group

  Log Message:
  -----------
  qemu-iotests: add 058 internal snapshot export with qemu-nbd case

This case can't run when IMGPROTO=nbd, since it needs to create some
internal snapshot which would fail for EOF write request, even when
TEST_IMG is exported with "-f raw" in common.rc, so set _supported_proto
to file.

_require_command() is changed to tip what util is missing, instead
of printing a blank.

Signed-off-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: ef80654d0dc1edf2dd2a51feff8cc3e1102a6583
      
https://github.com/qemu/qemu/commit/ef80654d0dc1edf2dd2a51feff8cc3e1102a6583
  Author: Wenchao Xia <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M qemu-img-cmds.hx
    M qemu-img.c
    M qemu-img.texi

  Log Message:
  -----------
  qemu-img: add -l for snapshot in convert

Now qemu-img convert have similar options as qemu-nbd for internal
snapshot.

Signed-off-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f33d287393d58f5513d25b097310ed4706fbf5b5
      
https://github.com/qemu/qemu/commit/f33d287393d58f5513d25b097310ed4706fbf5b5
  Author: Wenchao Xia <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/058
    M tests/qemu-iotests/058.out

  Log Message:
  -----------
  qemu-iotests: add test for snapshot in qemu-img convert

Signed-off-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 4323fdcf9451deaaf48468afa91b8bcaeac00cff
      
https://github.com/qemu/qemu/commit/4323fdcf9451deaaf48468afa91b8bcaeac00cff
  Author: Wenchao Xia <address@hidden>
  Date:   2013-12-04 (Wed, 04 Dec 2013)

  Changed paths:
    M qemu-nbd.c
    M qemu-nbd.texi

  Log Message:
  -----------
  qemu-nbd: add doc for option -f

Signed-off-by: Wenchao Xia <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 13c28af87a5541a9b09a59502b876a1725fb502d
      
https://github.com/qemu/qemu/commit/13c28af87a5541a9b09a59502b876a1725fb502d
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M qemu-img.c

  Log Message:
  -----------
  qemu-img: add support for skipping zeroes in input during convert

we currently do not check if a sector is allocated during convert.
This means if a sector is unallocated that we allocate a bounce
buffer of zeroes, find out its zero later and do not write it
in the best case. In the worst case this can lead to reading
blocks from a raw device (like iSCSI) altough we could easily
know via get_block_status that they are zero and simply skip them.

This patch also fixes the progress output not being at 100% after
a successful conversion.

Signed-off-by: Peter Lieven <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 049b09825fe479f4caa013ccde0ff87fc9d82856
      
https://github.com/qemu/qemu/commit/049b09825fe479f4caa013ccde0ff87fc9d82856
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M qemu-img.c

  Log Message:
  -----------
  qemu-img: fix usage instruction for qemu-img convert

Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 1c0704a556dbb004a3b82791779760f418053951
      
https://github.com/qemu/qemu/commit/1c0704a556dbb004a3b82791779760f418053951
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M block/iscsi.c

  Log Message:
  -----------
  block/iscsi: set bdi->cluster_size

this patch aims to set bdi->cluster_size to the internal page size
of the iscsi target so that enabled callers can align requests
properly.

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 7337acaf219fc988e7ba91780b11770ff95169b4
      
https://github.com/qemu/qemu/commit/7337acaf219fc988e7ba91780b11770ff95169b4
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M include/block/block_int.h

  Log Message:
  -----------
  block: add opt_transfer_length to BlockLimits

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 7572ddc8db114d8c437a97ca3eaedab397f66cda
      
https://github.com/qemu/qemu/commit/7572ddc8db114d8c437a97ca3eaedab397f66cda
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M block/iscsi.c

  Log Message:
  -----------
  block/iscsi: set bs->bl.opt_transfer_length

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: f2521c9023067a007d18b844fe7639c1c5b6f2ac
      
https://github.com/qemu/qemu/commit/f2521c9023067a007d18b844fe7639c1c5b6f2ac
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M qemu-img.c

  Log Message:
  -----------
  qemu-img: dynamically adjust iobuffer size during convert

since the convert process is basically a sync operation it might
be benificial in some case to change the hardcoded I/O buffer
size to a greater value.

This patch increases the I/O buffer size if the output
driver advertises an optimal transfer length or discard alignment
that is greater than the default buffer size of 2M.

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 33f373d7c56350fd2ec3e31f4f2c46cb49464911
      
https://github.com/qemu/qemu/commit/33f373d7c56350fd2ec3e31f4f2c46cb49464911
  Author: Liu Jinsong <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M target-i386/cpu.c

  Log Message:
  -----------
  target-i386: fix cpuid leaf 0x0d

Fix cpuid leaf 0x0d which incorrectly parsed eax and ebx.

However, before this patch the CPUID worked fine -- the .offset
field contained the size _and_ was stored in the register that
is supposed to hold the size (eax), and likewise the .size field
contained the offset _and_ was stored in the register trhat is
supposed to hold the offset (ebx).

Signed-off-by: Liu Jinsong <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>


  Commit: 11938d7863203d5ca523865761cac6130783c858
      
https://github.com/qemu/qemu/commit/11938d7863203d5ca523865761cac6130783c858
  Author: Gerd Hoffmann <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M roms/seabios

  Log Message:
  -----------
  roms: update seabios submodule to 31b8b4eea9d9ad58a73b22a6060d3ac1c419c26d

Updates seabios to git master snapshot.  seabios is in freeze now,
update to final 1.7.4 will follow later this year.

Summary of major changes:

 * Support for acpi table loading from qemu.
 * Support for the xhci host adapter.
 * Support for the pvscsi HBA.
 * Various minor bug fixes.
 * Lots of cleanups.

Full shortlog since 1.7.3 (note that some of these changes have been
cherry-picked into 1.7.3-stable):

Evgeny Budilovsky (1):
      Add pvscsi boot support

Gerd Hoffmann (27):
      coreboot: add cbmem console support
      Add CONFIG_DEBUG_COREBOOT config option
      apm: fix shutdown
      ahci: add missing check for allocation failure
      bochsvga: fallback to stdvga if dispi interface isn't present
      Add generic qemu detection
      Drop coreboot qemu detection
      Add qemu detection to csm
      uas: add (temporary) superspeed stopgap
      usb: add usb_update_pipe()
      usb: add xhci support
      fix buildversion.sh
      build: simplify cross builds
      build: create output dirs in do-kconfig
      build: explicitly set ROM size
      Add qemu_cfg_e820 function.
      Add support for etc/e820 fw_cfg file
      pci: don't reorder entries when moving to 64bit list
      pci: don't map usb host adapters above 4G
      pci: align 64bit pci regions to 1G
      pci: tweak + comment minimum allocations
      pci: log pci windows
      pci: map 64-bit BARs at location provided by emulator
      ahci: zap real mode macros
      ahci: remote some parentheses
      ahci: alloc structs in high memory
      add hw/serialio.c to SRC32SEG

Jonathan A. Kollasch (1):
      vgahooks: add SM720 VGA BIOS hooks for WIN Enterprises MB-60470

Kevin O'Connor (80):
      Fix USB EHCI detection that was broken in hlist conversion of PCIDevices.
      Update README to include info on VARLOW variables.
      PIC code cleanups.
      Move internal timer code from clock.c to a new file timer.c.
      Don't pass khz to pmtimer_setup - it's always PM_TIMER_FREQUENCY.
      Add helper functions to convert timer irqs to milliseconds.
      Improve accuracy of internal timers.
      Rename cpu_khz to TimerKHz.
      Shift CPU TSC down to reduce need for 64bit variables.
      Rename check_timer() function (and similar) to irqtimer_check().
      Rename check_tsc() (and similar) to timer_check() and use u32.
      Separate out timer setup code.
      Unify pmtimer_read() and pittimer_read() code.
      Default unused UMB areas to be read-only.
      Add missing mathcp_setup() call to CSM code.
      Fix bug in CBFS file walking with compressed files.
      Support custom boot menu prompt and custom boot menu key.
      Minor cleanups to smm assembler.
      Add config option to support memory allocations in 9-segment.
      Minor - no need to declare MaxCountCPUs as VARFSEG.
      Minor - simplify rom_reserve().
      Rename tools/ directory to scripts/ directory.
      Update kconfig to latest version.
      build: Don't use vpath makefile directive.
      Move code centered around specific hardware devices to src/hw/
      Move code cenetered around firmware initialization to src/fw/
      build: Reorder makefile source list to group like files together.
      README: Update readme to note scripts/ directory rename and vgasrc/ 
directory.
      vgabios: Rename stdvga_bpp_factor to stdvga_vram_ratio.
      vgabios: Limit the range of the VBE number of "pages" parameter.
      readme: Minor - fix typo in readme.
      Split x86 specific functions out of util.c/h to new files x86.c/h.
      Move keyboard calling code from util.c to boot.c.
      Rename util.c to string.c and introduce string.h.
      build: Perform compile checking on vgasrc code.
      Move stacks.c definitions from util.h to new file stacks.h.
      Move romfile definitions from util.h to new file romfile.h.
      Move malloc code from pmm.c to new files malloc.c and malloc.h.
      Move function definitions for output.c from util.h to new file output.h.
      Move definition of struct segoff_s from farptr.h to types.h.
      build: Fix import of gcc dependency files.
      Move pirtable definitions from hw/pci.h to std/pirtable.h and util.h.
      Move optionroms.h to std/optionrom.h and util.h.
      Move vbe.h to std/vbe.h.
      Move fw/LegacyBios.h to std/LegacyBios.h and remove csm.h.
      Move fw/smbios.h to std/smbios.h.
      Move fw/mptable.h to std/mptable.h.
      Move fw/acpi.h to std/acpi.h.
      Move pnpbios definition to new file std/pnpbios.h.
      Move pmm definitions to new file std/pmm.h.
      Split disk.h into block.h and std/disk.h.
      Move standard bda type info from biosvar.h to std/bda.h.
      Merge bmp.h, boot.h, jpeg.h, and post.h into util.h.
      Sort the sections of util.h.
      Move PIT setup from clock.c to hw/timer.c.
      Rename hw/cmos.h to hw/rtc.h and copy RTC code from clock.c to hw/rtc.c.
      Move dma code to new file hw/dma.c.
      Remove ioport.h; disperse its contents to other header files.
      Minor - update file comments in src/malloc.c.
      Rename fields of 'struct chs_s' and use in floppy lba2chs().
      Rearrange stack_hop_back() call in wait_irq, check_irqs, and _farcall16.
      Minor - move call16 assembler in romlayout.S.
      Make __call16 use C calling convention and support two passed parameters.
      Update _farcall16() to pass segment of callregs explicitly.
      Support call16() calls after entering 32bit mode from call32().
      Run ahci code entirely in 32bit mode.
      Build different final files for QEMU, coreboot, and CSM.
      Convert op->drive_g from a 16bit pointer to a 32 bit "GLOBALFLAT" pointer.
      megasas: Don't attempt to access 'struct pci_device' at runtime.
      Minor - eliminate the SET_GLOBAL macro.
      Move low-level hardware writing from output.c to new file hw/serialio.c.
      vgabios: Load the DAC palette in "packed" modes on Cirrus and BochsVGA.
      vgabios: Support custom fonts in vga framebuffer text writing.
      vgabios: Add bochsvga "HDTV" resolutions.
      vgabios: Avoid possible divide by zero in bochsvga_set_displaystart.
      vgabios: Work around lack of support for "calll" in x86emu emulation.
      Minor - update file comment on bootsplash.c.
      vgabios: Support allocating an extra stack for vgabios calls and default 
on.
      vgabios: Move initialization code to new file vgainit.c.
      floppy: Minor - add warnings if timeouts occur.

Michael S. Tsirkin (6):
      acpi: sync FADT flags from PIIX4 to Q35
      acpi_extract.py: document DEVICE directives
      biostables: support looking up RSDP
      romfile_loader: utility to patch in-memory ROM files
      acpi: load and link tables through romfile loader
      acpi: strip compiler info in built-in DSDT if any

Paul Menzel (2):
      ACPI DSDT: Make control method `IQCR` serialized
      hw/usb-xhci.c: Code refactoring to not override initializers in 
`speed_from_xhci[16]`

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 94e68caaa089f90f5210435c7e07e97701c98ee5
      
https://github.com/qemu/qemu/commit/94e68caaa089f90f5210435c7e07e97701c98ee5
  Author: Gerd Hoffmann <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M roms/Makefile
    R roms/config.seabios
    A roms/config.seabios-128k
    A roms/config.seabios-256k

  Log Message:
  -----------
  roms: build two seabios binaries

Adding xhci support to seabios made it jump over the 128k line.
Changing the bios size breaks migration, so we have to keep a
128k seabios binary for old machine types.  New machine types can
use a large 256k bios which should be big enougth for a while.

This patch updates the seabios build process to build seabios twice,
once full featured and once with xen and xhci turned off so the
resulting binary is small enougth to fit into 128k.

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 07403a5a0319d1c9783ea7da13782c8835a42cc9
      
https://github.com/qemu/qemu/commit/07403a5a0319d1c9783ea7da13782c8835a42cc9
  Author: Gerd Hoffmann <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M roms/Makefile

  Log Message:
  -----------
  roms: enable seabios cross builds

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 385724e7887670e17865d97cd8106a235f113faa
      
https://github.com/qemu/qemu/commit/385724e7887670e17865d97cd8106a235f113faa
  Author: Gerd Hoffmann <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M pc-bios/acpi-dsdt.aml
    A pc-bios/bios-256k.bin
    M pc-bios/bios.bin
    M pc-bios/q35-acpi-dsdt.aml

  Log Message:
  -----------
  roms: update seabios binaries

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 6eefccc0bb9c34051b1e21880fc3a1c1c8686edd
      
https://github.com/qemu/qemu/commit/6eefccc0bb9c34051b1e21880fc3a1c1c8686edd
  Author: Gerd Hoffmann <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M pc-bios/vgabios-cirrus.bin
    M pc-bios/vgabios-qxl.bin
    M pc-bios/vgabios-stdvga.bin
    M pc-bios/vgabios-vmware.bin
    M pc-bios/vgabios.bin

  Log Message:
  -----------
  roms: update vgabios binaries

This also switches from lgplvgabios to seavgabios.

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: bcf2b7d2af7c54bb42be1229df9e78ba7d08d2a7
      
https://github.com/qemu/qemu/commit/bcf2b7d2af7c54bb42be1229df9e78ba7d08d2a7
  Author: Gerd Hoffmann <address@hidden>
  Date:   2013-12-05 (Thu, 05 Dec 2013)

  Changed paths:
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c

  Log Message:
  -----------
  pc: switch 2.0 machine types to large seabios binary

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 24f833cd43dbfb5f8ae99e8a6d3691671622d3ea
      
https://github.com/qemu/qemu/commit/24f833cd43dbfb5f8ae99e8a6d3691671622d3ea
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M qemu-img.c

  Log Message:
  -----------
  qemu-img: round down request length to an aligned sector

this patch shortens requests to end at an aligned sector so that
the next request starts aligned.

[Squashed Peter's fix for bdrv_get_info() failure discussed on the
mailing list.
--Stefan]

Reviewed-by: Paolo Bonzini <address@hidden>
Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 405889820bcd5c2abf4eb70598e96f525f862c0f
      
https://github.com/qemu/qemu/commit/405889820bcd5c2abf4eb70598e96f525f862c0f
  Author: Peter Lieven <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M qemu-img.c

  Log Message:
  -----------
  qemu-img: decrease progress update interval on convert

when doing very large jobs updating the progress only every 2%
is too rare.

Signed-off-by: Peter Lieven <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: ac95acdb8e0876fa489bd31a48e8ecd6ef901d67
      
https://github.com/qemu/qemu/commit/ac95acdb8e0876fa489bd31a48e8ecd6ef901d67
  Author: Hu Tao <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M block/qcow2-cluster.c
    M block/qcow2-refcount.c

  Log Message:
  -----------
  qcow2: use start_of_cluster() and offset_into_cluster() everywhere

Signed-off-by: Hu Tao <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: 0b06ef3bdd17742ae50c0662d3fe8ed944648890
      
https://github.com/qemu/qemu/commit/0b06ef3bdd17742ae50c0662d3fe8ed944648890
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M block.c

  Log Message:
  -----------
  block: clean up bdrv_drain_all() throttling comments

Since cc0681c45430a1f1a4c2d06e9499b7775afc9a18 ("block: Enable the new
throttling code in the block layer.") bdrv_drain_all() no longer spins.
The code used to look as follows:

  do {
      busy = qemu_aio_wait();

      /* FIXME: We do not have timer support here, so this is effectively
       * a busy wait.
       */
      QTAILQ_FOREACH(bs, &bdrv_states, list) {
    while (qemu_co_enter_next(&bs->throttled_reqs)) {
        busy = true;
    }
      }
  } while (busy);

Note that throttle requests are kicked but I/O throttling limits are
still in effect.  The loop spins until the vm_clock time allows the
request to make progress and complete.

The new throttling code introduced bdrv_start_throttled_reqs().  This
function not only kicks throttled requests but also temporarily disables
throttling so requests can run.

The outdated FIXME comment can be removed.  Also drop the busy = true
assignment since we overwrite it immediately afterwards.

Reviewed-by: Alex Bligh <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: d3fa923044321b2ccc12bbdedd582d2c49d958aa
      
https://github.com/qemu/qemu/commit/d3fa923044321b2ccc12bbdedd582d2c49d958aa
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M aio-posix.c
    M aio-win32.c
    M tests/test-aio.c

  Log Message:
  -----------
  aio: make aio_poll(ctx, true) block with no fds

This patch drops a special case where aio_poll(ctx, true) returns false
instead of blocking if no file descriptors are waiting on I/O.  Now it
is possible to block in aio_poll() to wait for aio_notify().

This change eliminates busy waiting.  bdrv_drain_all() used to rely on
busy waiting to completed throttled I/O requests but this is no longer
required so we can simplify aio_poll().

Note that aio_poll() still returns false when aio_notify() was used.  In
other words, stopping a blocking aio_poll() wait is not considered
making progress.

Adjust test-aio /aio/bh/callback-delete/one which assumed aio_poll(ctx,
true) would immediately return false instead of blocking.

Reviewed-by: Alex Bligh <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: ac9524dc55dc32e492ac3e6fbc9785be7168f8a2
      
https://github.com/qemu/qemu/commit/ac9524dc55dc32e492ac3e6fbc9785be7168f8a2
  Author: Stefan Hajnoczi <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M tests/qemu-iotests/051.out
    M tests/qemu-iotests/common.filter

  Log Message:
  -----------
  qemu-iotests: filter QEMU monitor \r\n

SMTP does not preserve newlines.  This is normally not a problem if the
email body uses DOS or UNIX newlines consistently.  In 051.out we mix
UNIX newlines with DOS newlines (since QEMU monitor output uses \r\n).

This patch filters the QEMU monitor output so the golden master file
uses UNIX newlines exclusively.

The result is that patches touching 051.out will apply cleanly without
mangling newlines after this commit.

Signed-off-by: Stefan Hajnoczi <address@hidden>


  Commit: bf63839ffa2d0eebb1eb1706022f46e93b6fec08
      
https://github.com/qemu/qemu/commit/bf63839ffa2d0eebb1eb1706022f46e93b6fec08
  Author: Alex Williamson <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M linux-headers/asm-arm/kvm.h
    M linux-headers/asm-powerpc/epapr_hcalls.h
    M linux-headers/asm-powerpc/kvm.h
    M linux-headers/asm-x86/hyperv.h
    M linux-headers/asm-x86/kvm.h
    M linux-headers/linux/kvm.h

  Log Message:
  -----------
  linux-headers: Update from v3.13-rc3

Update to tag v3.13-rc3 (374b105797c3d4f29c685f3be535c35f5689b30e)

Signed-off-by: Alex Williamson <address@hidden>


  Commit: 5b49ab188ff0339aa3097ce7f5309f1306092f9e
      
https://github.com/qemu/qemu/commit/5b49ab188ff0339aa3097ce7f5309f1306092f9e
  Author: Alex Williamson <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M hw/misc/vfio.c

  Log Message:
  -----------
  vfio-pci: Make use of new KVM-VFIO device

Add and remove groups from the KVM virtual VFIO device as we make
use of them.  This allows KVM to optimize for performance and
correctness based on properties of the group.

Signed-off-by: Alex Williamson <address@hidden>


  Commit: 96eeeba0db38b856eb2cae0e4a2a620d8d65771a
      
https://github.com/qemu/qemu/commit/96eeeba0db38b856eb2cae0e4a2a620d8d65771a
  Author: Alex Williamson <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M hw/misc/vfio.c

  Log Message:
  -----------
  vfio-pci: Fix Nvidia MSI ACK through 0x88000 quirk

When MSI is enabled on Nvidia GeForce cards the driver seems to
acknowledge the interrupt by writing a 0xff byte to the MSI capability
ID register using the PCI config space mirror at offset 0x88000 from
BAR0.  Without this, the device will only fire a single interrupt.
VFIO handles the PCI capability ID/next registers as virtual w/o write
support, so any write through config space is currently dropped.  Add
a check for this and allow the write through the BAR window.  The
registers are read-only anyway.

Signed-off-by: Alex Williamson <address@hidden>


  Commit: b3ebc10c373ed5922d4bdb5076fd0e9fd7ff8056
      
https://github.com/qemu/qemu/commit/b3ebc10c373ed5922d4bdb5076fd0e9fd7ff8056
  Author: Alex Williamson <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M hw/misc/vfio.c

  Log Message:
  -----------
  vfio-pci: Add debug config options to disable MSI/X KVM support

It's sometimes useful to be able to verify interrupts are passing
through correctly.

Signed-off-by: Alex Williamson <address@hidden>


  Commit: 3e40ba0faf0822fa78336fe6cd9d677ea9b14f1b
      
https://github.com/qemu/qemu/commit/3e40ba0faf0822fa78336fe6cd9d677ea9b14f1b
  Author: Alex Williamson <address@hidden>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M hw/misc/vfio.c

  Log Message:
  -----------
  vfio-pci: Release all MSI-X vectors when disabled

We were relying on msix_unset_vector_notifiers() to release all the
vectors when we disable MSI-X, but this only happens when MSI-X is
still enabled on the device.  Perform further cleanup by releasing
any remaining vectors listed as in-use after this call.  This caused
a leak of IRQ routes on hotplug depending on how the guest OS prepared
the device for removal.

Signed-off-by: Alex Williamson <address@hidden>
Cc: address@hidden


  Commit: 2a576ee6e36924bb3c3e6690e9ca35a9942e0634
      
https://github.com/qemu/qemu/commit/2a576ee6e36924bb3c3e6690e9ca35a9942e0634
  Author: Anthony Liguori <address@hidden>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M qemu-seccomp.c

  Log Message:
  -----------
  Merge remote-tracking branch 'otubo/seccomp' into staging

# By Paul Moore
# Via Eduardo Otubo
* otubo/seccomp:
  seccomp: add kill() to the syscall whitelist

Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 3c88da3c243ff7b452026e207cbba853123250cc
      
https://github.com/qemu/qemu/commit/3c88da3c243ff7b452026e207cbba853123250cc
  Author: Anthony Liguori <address@hidden>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M hw/i386/pc_piix.c
    M hw/i386/pc_q35.c
    M pc-bios/acpi-dsdt.aml
    A pc-bios/bios-256k.bin
    M pc-bios/bios.bin
    M pc-bios/q35-acpi-dsdt.aml
    M pc-bios/vgabios-cirrus.bin
    M pc-bios/vgabios-qxl.bin
    M pc-bios/vgabios-stdvga.bin
    M pc-bios/vgabios-vmware.bin
    M pc-bios/vgabios.bin
    M roms/Makefile
    R roms/config.seabios
    A roms/config.seabios-128k
    A roms/config.seabios-256k
    M roms/seabios
    M vl.c

  Log Message:
  -----------
  Merge remote-tracking branch 'kraxel/tags/pull-seabios-31b8b4e-1' into staging

Update seabios to master snapshot (pre-1.7.4).
Update vgabios, switch from lgplvgabios to seavgabios.
Update build process to build both 128k and 256k bios versions.
Use 256k bios for pc-*-2.0+ machine types.

# gpg: Signature made Fri 06 Dec 2013 12:01:24 AM PST using RSA key ID D3E87138
# gpg: Can't check signature: public key not found

# By Gerd Hoffmann
# Via Gerd Hoffmann
* kraxel/tags/pull-seabios-31b8b4e-1:
  pc: switch 2.0 machine types to large seabios binary
  roms: update vgabios binaries
  roms: update seabios binaries
  roms: enable seabios cross builds
  roms: build two seabios binaries
  roms: update seabios submodule to 31b8b4eea9d9ad58a73b22a6060d3ac1c419c26d
  add firmware to machine options
  add pc-{i440fx,q35}-2.0 machine types

Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 0c0cb6a2378f937410f5f55cbf3e3b2c20f293c6
      
https://github.com/qemu/qemu/commit/0c0cb6a2378f937410f5f55cbf3e3b2c20f293c6
  Author: Anthony Liguori <address@hidden>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M exec.c
    M kvm-all.c
    M qemu-options.hx
    M target-i386/cpu.c
    M vl.c

  Log Message:
  -----------
  Merge remote-tracking branch 'qemu-kvm/uq/master' into staging

# By Alex Williamson (1) and others
# Via Paolo Bonzini
* qemu-kvm/uq/master:
  target-i386: fix cpuid leaf 0x0d
  qemu: mempath: prefault pages manually (v4)
  kvm: Query KVM for available memory slots

Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: 93531372f0f74bb4d886480c0c8aa0e4ca6f5423
      
https://github.com/qemu/qemu/commit/93531372f0f74bb4d886480c0c8aa0e4ca6f5423
  Author: Anthony Liguori <address@hidden>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M aio-posix.c
    M aio-win32.c
    M block.c
    M block/iscsi.c
    M block/qcow2-cluster.c
    M block/qcow2-refcount.c
    M block/qcow2-snapshot.c
    M block/qcow2.c
    M block/qcow2.h
    M block/qed.c
    M block/raw-aio.h
    M block/raw-posix.c
    M block/snapshot.c
    M block/vdi.c
    M block/vhdx.c
    M block/vmdk.c
    M block/vpc.c
    M hw/scsi/scsi-disk.c
    M include/block/block.h
    M include/block/block_int.h
    M include/block/coroutine.h
    M include/block/snapshot.h
    M qemu-coroutine-lock.c
    M qemu-img-cmds.hx
    M qemu-img.c
    M qemu-img.texi
    M qemu-nbd.c
    M qemu-nbd.texi
    M tests/qemu-iotests/026
    M tests/qemu-iotests/039
    M tests/qemu-iotests/048
    M tests/qemu-iotests/048.out
    M tests/qemu-iotests/051.out
    M tests/qemu-iotests/052
    A tests/qemu-iotests/058
    A tests/qemu-iotests/058.out
    M tests/qemu-iotests/059
    M tests/qemu-iotests/059.out
    A tests/qemu-iotests/074
    A tests/qemu-iotests/074.out
    M tests/qemu-iotests/check
    M tests/qemu-iotests/common
    M tests/qemu-iotests/common.filter
    M tests/qemu-iotests/common.rc
    M tests/qemu-iotests/group
    M tests/qemu-iotests/iotests.py
    M tests/test-aio.c
    M trace-events

  Log Message:
  -----------
  Merge remote-tracking branch 'stefanha/block' into staging

# By Paolo Bonzini (17) and others
# Via Stefan Hajnoczi
* stefanha/block: (48 commits)
  qemu-iotests: filter QEMU monitor \r\n
  aio: make aio_poll(ctx, true) block with no fds
  block: clean up bdrv_drain_all() throttling comments
  qcow2: use start_of_cluster() and offset_into_cluster() everywhere
  qemu-img: decrease progress update interval on convert
  qemu-img: round down request length to an aligned sector
  qemu-img: dynamically adjust iobuffer size during convert
  block/iscsi: set bs->bl.opt_transfer_length
  block: add opt_transfer_length to BlockLimits
  block/iscsi: set bdi->cluster_size
  qemu-img: fix usage instruction for qemu-img convert
  qemu-img: add support for skipping zeroes in input during convert
  qemu-nbd: add doc for option -f
  qemu-iotests: add test for snapshot in qemu-img convert
  qemu-img: add -l for snapshot in convert
  qemu-iotests: add 058 internal snapshot export with qemu-nbd case
  qemu-nbd: support internal snapshot export
  snapshot: distinguish id and name in load_tmp
  qemu-iotests: Split qcow2 only cases in 048
  qemu-iotests: Clean up spaces in usage output
  ...

Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


  Commit: d2aa90cda81ae3f860dd047ce5e37e0473452d54
      
https://github.com/qemu/qemu/commit/d2aa90cda81ae3f860dd047ce5e37e0473452d54
  Author: Anthony Liguori <address@hidden>
  Date:   2013-12-07 (Sat, 07 Dec 2013)

  Changed paths:
    M hw/misc/vfio.c
    M linux-headers/asm-arm/kvm.h
    M linux-headers/asm-powerpc/epapr_hcalls.h
    M linux-headers/asm-powerpc/kvm.h
    M linux-headers/asm-x86/hyperv.h
    M linux-headers/asm-x86/kvm.h
    M linux-headers/linux/kvm.h

  Log Message:
  -----------
  Merge remote-tracking branch 'awilliam/tags/vfio-pci-for-qemu-20131206.0' 
into staging

vfio-pci updates include:
 - Update linux-headers to include KVM-VFIO device support
 - Enable QEMU support for KVM-VFIO device
 - Additional Nvidia x-vga quirk to ACK MSI interrupts
 - Debug options to disable MSI/X KVM acceleration
 - Fix to cleanup MSI-X vectors on shutdown and avoid IRQ route leaks

The KVM-VFIO device support enables KVM to manage how it handles
coherency instructions in the presence of non-coherent I/O.  Dave
Airlie had noted that the Nvidia MSI ACK support here may just be
scratching the surface, but it's better than what we have now and
it's only enabled via the x-vga option, so I'm willing to add since
it does enable some users.

# gpg: Signature made Fri 06 Dec 2013 12:28:19 PM PST using RSA key ID 3BB08B22
# gpg: Can't check signature: public key not found

# By Alex Williamson
# Via Alex Williamson
* awilliam/tags/vfio-pci-for-qemu-20131206.0:
  vfio-pci: Release all MSI-X vectors when disabled
  vfio-pci: Add debug config options to disable MSI/X KVM support
  vfio-pci: Fix Nvidia MSI ACK through 0x88000 quirk
  vfio-pci: Make use of new KVM-VFIO device
  linux-headers: Update from v3.13-rc3

Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>


Compare: https://github.com/qemu/qemu/compare/0a0ee0b93bdd...d2aa90cda81a

reply via email to

[Prev in Thread] Current Thread [Next in Thread]