[Spice-commits] Changes to 'usb_ccid.v7'

Alon Levy alon at kemper.freedesktop.org
Thu Nov 25 16:49:42 PST 2010


New branch 'usb_ccid.v7' available with the following commits:
commit 3066ac4576ff7a3e198f3c510fb7ad2ac5766b2d
Author: Alon Levy <alevy at redhat.com>
Date:   Sun Oct 24 12:43:32 2010 +0200

    ccid: add docs
    
    Signed-off-by: Alon Levy <alevy at redhat.com>

commit 4b4e8300308cff5c00c87d093870f56a357dde1b
Author: Alon Levy <alevy at redhat.com>
Date:   Sun Oct 24 12:09:18 2010 +0200

    add ccid-card-emulated device (v2)
    
    changes from v1:
        remove stale comments, use only c-style comments
        bugfix, forgot to set recv_len
        change reader name to 'Virtual Reader'
    
    Signed-off-by: Alon Levy <alevy at redhat.com>

commit c0a768a576150414737c1308e2be4e69c6472fd2
Author: Alon Levy <alevy at redhat.com>
Date:   Thu Nov 25 17:00:08 2010 +0200

    libcaccard: update configure to build and use internal libcaccard
    
    Signed-off-by: Alon Levy <alevy at redhat.com>

commit 61dadd586da9f86fc1e50a81d8ce5a2f0bad360c
Author: Robert Relyea <rrelyea at redhat.com>
Date:   Wed Nov 24 21:13:56 2010 +0200

    libcaccard: initial commit after coding style fixes
    
    Signed-off-by: Alon Levy <alevy at redhat.com>

commit 05adeb57d0fd12f18ffdb39f9bd1a684970f62c9
Author: Alon Levy <alevy at redhat.com>
Date:   Sun Oct 17 13:10:32 2010 +0200

    ccid: add passthru card device
    
    For the client side utility vscclient, see libcac_card:
    
      libcac_card http://cgit.freedesktop.org/~alon/cac_card (temporary home)
      written by Robert Relyea <rrelyea at redhat.com>
    
    Signed-off-by: Alon Levy <alevy at redhat.com>

commit e0ffeba7d37013b27f828a1559ed80ac89320093
Author: Alon Levy <alevy at redhat.com>
Date:   Sun Oct 17 11:40:07 2010 +0200

    usb-ccid: add CCID bus
    
    A CCID device is a smart card reader. It is a USB device, defined at [1].
    This patch introduces the usb-ccid device that is a ccid bus. Next patches will
    introduce two card types to use it, a passthru card and an emulated card.
    
     [1] http://www.usb.org/developers/devclass_docs/DWG_Smart-Card_CCID_Rev110.
    
    Signed-off-by: Alon Levy <alevy at redhat.com>

commit a1650b7a7fa4618c84705da3201c7abd9071d289
Author: Alon Levy <alevy at redhat.com>
Date:   Thu Oct 21 07:58:59 2010 +0200

    monitor info qtree: add optional bus id

commit 99ff01ef6d86d760ddcfa1afde6b8524552e9fc9
Author: Alon Levy <alevy at redhat.com>
Date:   Thu Oct 21 07:57:46 2010 +0200

    monitor: add sub_args_type for second level parameters

commit 1dd83def869acc1ac3743777e6e7446c81867bc6
Author: Alon Levy <alevy at redhat.com>
Date:   Wed Nov 3 16:27:47 2010 +0200

    monitor usb_attach/detach: remove configure option

commit 38835d3626d2f8c2142329a3889a22f070cbf66c
Author: Alon Levy <alevy at redhat.com>
Date:   Tue Oct 19 11:43:04 2010 +0200

    monitor: add usb_attach and usb_detach (v2)
    
    v1->v2 changes:
     * fixed help text (consistent name for parameter)
     * added configure flag, also enabled with --enable-debug

commit 6540113b17232a0b0087673eeb40ae8ed5839845
Author: Alon Levy <alevy at redhat.com>
Date:   Tue Oct 19 11:42:38 2010 +0200

    usb: add public usb_device_by_id

commit 58bb348df8021a2a1edf3eff3747d7302ea1ca34
Author: Alon Levy <alevy at redhat.com>
Date:   Tue Oct 19 11:42:17 2010 +0200

    qdev: make qdev_find_recursive public

commit f711df67d611e4762966a249742a5f7499e19f99
Author: Richard Henderson <rth at redhat.com>
Date:   Mon Nov 22 14:57:52 2010 -0800

    microblaze: target-ify target_ucontext
    
    Rename the members of target_ucontext so that they don't conflict
    with possible host macros for ucontext members.  This has already
    been done for the other targets.
    
    Signed-off-by: Richard Henderson <rth at twiddle.net>
    Signed-off-by: Edgar E. Iglesias <edgar at axis.com>

commit 4e02d460dd4b60847a1e8b689cb676e3e1f3de95
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date:   Mon Nov 15 20:44:38 2010 +0000

    virtio-pci: Convert fprintf() to error_report()
    
    Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit e7b43f7e60a0a170356e82b01b8ffdcecafad7ed
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date:   Mon Nov 15 20:44:37 2010 +0000

    virtio-net: Convert fprintf() to error_report()
    
    Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit cd92f4cc22fbe12a7bf60c9430731f768dc1537c
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date:   Mon Nov 15 20:44:36 2010 +0000

    virtio: Convert fprintf() to error_report()
    
    Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 870cef1dae88f131ee3e17fe0aaf45d609798ce1
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date:   Mon Nov 15 20:44:35 2010 +0000

    virtio-blk: Convert fprintf() to error_report()
    
    Errors should be logged using error_report() so they go to the
    appropriate monitor.
    
    Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 281a26b15b4adcecb8604216738975abd754bea8
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Nov 17 12:06:44 2010 +0100

    vgabios update: handle compatibility with older qemu versions
    
    As pointed out by avi the vgabios update is guest-visible and thus has
    migration implications.
    
    One change is that the vga has a valid pci rom bar now.  We already have
    a pci bus property to enable/disable the rom bar and we'll load the bios
    via fw_cfg as fallback for the no-rom-bar case.  So we just have to add
    compat properties to handle this case.
    
    A second change is that the magic bochs lfb @ 0xe0000000 is gone.  When
    live-migrating a guest from a older qemu version it might be using the
    lfb though, so we have to keep it for the old machine types.  The patch
    enables the bochs lfb in case we don't have the pci rom bar enabled
    (i.e. we are in 0.13+older compat mode).
    
    This patch depends on these patches which add (and use) the pc-0.13
    machine type:
      http://patchwork.ozlabs.org/patch/70797/
      http://patchwork.ozlabs.org/patch/70798/
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Cc: avi at redhat.com
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit c1ded3dc9f2d6caeb62eb3005510837a62b795d2
Author: Jan Kiszka <jan.kiszka at siemens.com>
Date:   Tue Oct 19 17:03:24 2010 +0200

    pcnet: Do not receive external frames in loopback mode
    
    While not explicitly stated in the spec, it was observed on real systems
    that enabling loopback testing on the pcnet controller disables
    reception of external frames. And some legacy software relies on it, so
    provide this behavior.
    
    Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 2871a3f6b64966bc78fce0d4033bf32fcd42401c
Author: Avi Kivity <avi at redhat.com>
Date:   Wed Nov 17 11:50:10 2010 +0200

    piix4 acpi: convert io BAR to type-safe ioport callbacks
    
    Acked-by: Anthony Liguori <aliguori at us.ibm.com>
    Signed-off-by: Avi Kivity <avi at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit acd1c812b5548c8426e093075362b6d4119db6ac
Author: Avi Kivity <avi at redhat.com>
Date:   Wed Nov 17 11:50:09 2010 +0200

    Type-safe ioport callbacks
    
    The current ioport callbacks are not type-safe, in that they accept an "opaque"
    pointer as an argument whose type must match the argument to the registration
    function; this is not checked by the compiler.
    
    This patch adds an alternative that is type-safe.  Instead of an opaque
    argument, both registation and the callback use a new IOPort type.  The
    callback then uses container_of() to access its main structures.
    
    Currently the old and new methods exist side by side; once the old way is gone,
    we can also save a bunch of memory since the new method requires one pointer
    per ioport instead of 6.
    
    Acked-by: Anthony Liguori <aliguori at us.ibm.com>
    Signed-off-by: Avi Kivity <avi at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 94b0b5ff5f5c3ab946fa926d464738edb3713ed4
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date:   Tue Nov 16 12:20:25 2010 +0000

    trace: Trace vm_start()/vm_stop()
    
    VM state change notifications are invoked from vm_start()/vm_stop().
    Trace these state changes so we can reason about the state of the VM
    from trace output.
    
    Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 9dbcca5aa13cb9ab40788ac4c56bc227d94ca920
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Nov 11 12:59:26 2010 +0100

    virtfs: enable MSI-X
    
    This patch enables MSI-X for virtfs-9p-pci.  It also adds a
    compat property to pc-0.13 which turns it of there to stay
    compatible to 0.13-stable.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit b903a0f721f28283e5eaab00a3cb2ada96c2eae0
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Nov 11 12:59:25 2010 +0100

    pc: add 0.13 pc machine type
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 0b2c508856fa23695900c29b6ada57c07843bc6f
Author: Stefan Weil <weil at mail.berlios.de>
Date:   Mon Nov 15 21:17:06 2010 +0100

    trace: Use fprintf_function (format checking)
    
    fprintf_function adds format checking with GCC_FMT_ATTR.
    
    Cc: Blue Swirl <blauwirbel at gmail.com>
    Signed-off-by: Stefan Weil <weil at mail.berlios.de>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 9eca6cc64392b4ad8bd8723e840f491fa36524ad
Author: Stefan Weil <weil at mail.berlios.de>
Date:   Mon Nov 15 21:15:26 2010 +0100

    slirp: Remove unused code for bad sprintf
    
    Neither DECLARE_SPRINTF nor BAD_SPRINTF are needed for QEMU.
    
    QEMU won't support systems with missing or bad declarations
    for sprintf. The unused code was detected while looking for
    functions with missing format checking. Instead of adding
    GCC_FMT_ATTR, the unused code was removed.
    
    Cc: Blue Swirl <blauwirbel at gmail.com>
    Signed-off-by: Stefan Weil <weil at mail.berlios.de>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 0550f9c1b58896a6ca1d1256e26c78f84de2ed55
Author: Bernhard Kohl <bernhard.kohl at nsn.com>
Date:   Tue Nov 16 13:28:37 2010 +0100

    pc: disable the BOCHS BIOS panic port
    
    We have an OS which writes to port 0x400 when probing for special hardware.
    This causes an exit of the VM. With SeaBIOS this port isn't used anyway.
    
    Signed-off-by: Alexander Graf <agraf at suse.de>
    Reviewed-By: Paolo Bonzini <pbonzini at redhat.com>
    Signed-off-by: Bernhard Kohl <bernhard.kohl at nsn.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 33bbd1de5ec9b8802d63e811908f2351ba83884c
Author: Avi Kivity <avi at redhat.com>
Date:   Tue Nov 16 16:33:17 2010 +0200

    optionrom: fix bugs in signrom.sh
    
    signrom.sh has multiple bugs:
    
    - the last byte is considered when calculating the existing checksum, but not
      when computing the correction
    - apprently the 'expr' expression overflows and produces incorrect results with
      larger roms
    - if the checksum happened to be zero, we calculated the correction byte to be
      256
    
    Instead of rewriting this in half a line of python, this patch fixes the bugs.
    
    Signed-off-by: Avi Kivity <avi at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit e71e00ed258202052570ae631536f4d7b65792fa
Author: Luiz Capitulino <lcapitulino at redhat.com>
Date:   Fri Nov 12 12:55:46 2010 -0200

    Makefile: Fix check dependency breakage
    
    Commit b152aa84d52882bb1846485a89baf13aa07c86bc broke the unit-tests
    build, fix it.
    
    Signed-off-by: Luiz Capitulino <lcapitulino at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 33656af70230d5ccebe29e2f3bee38afe17db9b2
Author: Marcelo Tosatti <mtosatti at redhat.com>
Date:   Mon Nov 8 17:02:56 2010 -0200

    block migration: do not submit multiple AIOs for same sector
    
    Block migration can submit multiple AIO reads for the same sector/chunk, but
    completion of such reads can happen out of order:
    
    migration               guest
    - get_dirty(N)
    - aio_read(N)
    - clear_dirty(N)
                            write(N)
                            set_dirty(N)
    - get_dirty(N)
    - aio_read(N)
    
    If the first aio_read completes after the second, stale data will be
    migrated to the destination.
    
    Fix by not allowing multiple AIOs inflight for the same sector.
    
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 4dcafbb1eba2ee201ec86027982659b669f99c70
Author: Marcelo Tosatti <mtosatti at redhat.com>
Date:   Mon Nov 8 17:02:55 2010 -0200

    block: set sector dirty on AIO write completion
    
    Sectors are marked dirty in the bitmap on AIO submission. This is wrong
    since data has not reached storage.
    
    Set a given sector as dirty in the dirty bitmap on AIO completion, so that
    reading a sector marked as dirty is guaranteed to return uptodate data.
    
    Reviewed-by: Kevin Wolf <kwolf at redhat.com>
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 6d59fec11eeff8a784dc4991c8fe4f8538510475
Author: Marcelo Tosatti <mtosatti at redhat.com>
Date:   Mon Nov 8 17:02:54 2010 -0200

    block: fix shift in dirty bitmap calculation
    
    Otherwise upper 32 bits of bitmap entries are not correctly calculated.
    
    Reviewed-by: Kevin Wolf <kwolf at redhat.com>
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit c276b17da65b7ff01627722a1abf2b7a684c8fd8
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Fri Nov 12 13:20:25 2010 +0000

    Add support for generating a systemtap tapset static probes
    
    This introduces generation of a qemu.stp/qemu-system-XXX.stp
    files which provides tapsets with friendly names for static
    probes & their arguments. Instead of
    
        probe process("qemu").mark("qemu_malloc") {
            printf("Malloc %d %p\n", $arg1, $arg2);
        }
    
    It is now possible todo
    
        probe qemu.system.i386.qemu_malloc {
            printf("Malloc %d %p\n", size, ptr);
        }
    
    There is one tapset defined per target arch, for both
    user and system emulators.
    
    * Makefile.target: Generate stp files for each target
    * tracetool: Support for generating systemtap tapsets
    * configure: Check for whether systemtap is available
      with the DTrace backend
    
    Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
    Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit b3d08c029dd78ded5e35b74eaaa3d361821f83a7
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Fri Nov 12 13:20:24 2010 +0000

    Add a DTrace tracing backend targetted for SystemTAP compatability
    
    This introduces a new tracing backend that targets the SystemTAP
    implementation of DTrace userspace tracing. The core functionality
    should be applicable and standard across any DTrace implementation
    on Solaris, OS-X, *BSD, but the Makefile rules will likely need
    some small additional changes to cope with OS specific build
    requirements.
    
    This backend builds a little differently from the other tracing
    backends. Specifically there is no 'trace.c' file, because the
    'dtrace' command line tool generates a '.o' file directly from
    the dtrace probe definition file. The probe definition is usually
    named with a '.d' extension but QEMU uses '.d' files for its
    external makefile dependancy tracking, so this uses '.dtrace' as
    the extension for the probe definition file.
    
    The 'tracetool' program gains the ability to generate a trace.h
    file for DTrace, and also to generate the trace.d file containing
    the dtrace probe definition.
    
    Example usage of a dtrace probe in systemtap looks like:
    
      probe process("qemu").mark("qemu_malloc") {
        printf("Malloc %d %p\n", $arg1, $arg2);
      }
    
    * .gitignore: Ignore trace-dtrace.*
    * Makefile: Extra rules for generating DTrace files
    * Makefile.obj: Don't build trace.o for DTrace, use
      trace-dtrace.o generated by 'dtrace' instead
    * tracetool: Support for generating DTrace data files
    
    Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
    Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 06da6e44d725117be404c3f342ef539099043fe4
Author: Anthony Liguori <aliguori at us.ibm.com>
Date:   Wed Nov 17 18:06:06 2010 -0600

    Revert "Add a DTrace tracing backend targetted for SystemTAP compatability"
    
    This reverts commit 4addb1127f6327c7ebcbd150a6b589e7677adc92.

commit 371c338ecae44bb28cc19138484256b1df831e99
Author: Anthony Liguori <aliguori at us.ibm.com>
Date:   Wed Nov 17 18:05:58 2010 -0600

    Revert "Add support for generating a systemtap tapset static probes"
    
    This reverts commit 2834c3e0140c3b0ed4422909dfa0607b7213d95d.
    
    Conflicts:
    
    	Makefile.target

commit 39deb1e496de81957167daebf5cf5d1fbd5e47c2
Author: malc <av1474 at comtv.ru>
Date:   Thu Nov 18 14:30:12 2010 +0300

    audio: Only use audio timer when necessary
    
    Originally proposed by Gerd Hoffmann.
    
    Signed-off-by: malc <av1474 at comtv.ru>
    Acked-by: Gerd Hoffmann <kraxel at redhat.com>

commit 8ca209ad90bdb678932a6b18caf32b461dbe5eee
Author: Alex Williamson <alex.williamson at redhat.com>
Date:   Sun Nov 7 20:57:00 2010 -0700

    pc: Fix e820 fw_cfg for big endian
    
    Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 67d4b0c1907455f42ad8cea445ff10b81b49eebc
Author: Alex Williamson <alex.williamson at redhat.com>
Date:   Fri Nov 5 15:40:38 2010 -0600

    pc: e820 qemu_cfg tables need to be packed
    
    We can't let the compiler define the alignment for qemu_cfg data.
    
    Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit b88417062d5f73e2e8137e94b360ca4412942f33
Author: Peter Maydell <peter.maydell at linaro.org>
Date:   Tue Nov 16 20:07:07 2010 +0000

    Fix compilation failure with simple trace when srcdir==objdir
    
    Fix a makefile error that meant that qemu would not compile if
    the source and object directories were the same.
    
    Signed-off-by: Peter Maydell <peter.maydell at linaro.org>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 0290b57bdfec83ca78b6d119ea9847bb17943328
Author: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
Date:   Wed Nov 3 14:29:44 2010 +0000

    Delete IOHandlers after potentially running them
    
    Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read()
    handler that deletes its IOHandler is exposed to .fd_write() being
    called on the deleted IOHandler.
    
    This patch fixes deletion so that .fd_read() and .fd_write() are never
    called on an IOHandler that is marked for deletion.
    
    Signed-off-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 2cc59d8cb0ebcfa9cf3476c0528e50478997ab0c
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Wed Nov 10 10:06:25 2010 +0100

    usb-linux: Get the active configuration from sysfs rather then asking the dev
    
    Some devices seem to choke on receiving a USB_REQ_GET_CONFIGURATION ctrl msg
    (witnessed with a digital picture frame usb id 1908:1320).
    When usb_fs_type == USB_FS_SYS, the active configuration can be read directly
    from sysfs, which allows using this device through qemu's usb redirection.
    More in general it seems a good idea to not send needless control msg's to
    devices, esp. as the code in question is called every time a set_interface
    is done. Which happens multiple times during virtual machine startup, and
    when device drivers are activating the usb device.
    
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 71d71bbdeb39544ac1602c5e307d9e14c78f9d5d
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Wed Nov 10 10:06:24 2010 +0100

    usb-linux: introduce a usb_linux_get_configuration function
    
    The next patch in this series introduces multiple ways to get the
    configuration dependent upon usb_fs_type, it is cleaner to put this
    into its own function.
    
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 0f5160d1ea8bcd69d539f8a87a1b350d98fa5d52
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Wed Nov 10 10:06:23 2010 +0100

    usb-linux: Store devpath into USBHostDevice when usb_fs_type == USB_FS_SYS
    
    This allows us to recreate the sysfspath used during scanning later
    (which will be used in a later patch in this series).
    
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 43ad7e3e986dea82831debad68e68cff552b6746
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date:   Thu Nov 11 16:10:04 2010 +0100

    Add missing braces
    
    This patch adds missing braces around if/else statements that call
    macros which are likely to result in errors if the macro is
    changed. It also makes the code comply better with CODING_STYLE.
    
    Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit d59f8ba938afd837182e666cce777dfb860559e4
Author: Gleb Natapov <gleb at redhat.com>
Date:   Tue Nov 9 09:36:53 2010 +0200

    Out off array access in usb-net
    
    Properly check array bounds before accessing array element.
    
    Signed-off-by: Gleb Natapov <gleb at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 43ae691e775707b854f9920797c81b6b298bde61
Merge: 2834c3e0140c3b0ed4422909dfa0607b7213d95d 7466bc49107fbd84336ba680f860d5eadd6def13
Author: Anthony Liguori <aliguori at us.ibm.com>
Date:   Tue Nov 16 14:11:05 2010 -0600

    Merge remote branch 'spice/bugfix.2' into staging

commit 2834c3e0140c3b0ed4422909dfa0607b7213d95d
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Mon Nov 8 19:33:08 2010 +0000

    Add support for generating a systemtap tapset static probes
    
    This introduces generation of a qemu.stp/qemu-system-XXX.stp
    files which provides tapsets with friendly names for static
    probes & their arguments. Instead of
    
        probe process("qemu").mark("qemu_malloc") {
            printf("Malloc %d %p\n", $arg1, $arg2);
        }
    
    It is now possible todo
    
        probe qemu.system.i386.qemu_malloc {
            printf("Malloc %d %p\n", size, ptr);
        }
    
    There is one tapset defined per target arch.
    
    * Makefile: Generate a qemu.stp file for systemtap
    * tracetool: Support for generating systemtap tapsets
    
    Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 4addb1127f6327c7ebcbd150a6b589e7677adc92
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Mon Nov 8 19:33:07 2010 +0000

    Add a DTrace tracing backend targetted for SystemTAP compatability
    
    This introduces a new tracing backend that targets the SystemTAP
    implementation of DTrace userspace tracing. The core functionality
    should be applicable and standard across any DTrace implementation
    on Solaris, OS-X, *BSD, but the Makefile rules will likely need
    some small additional changes to cope with OS specific build
    requirements.
    
    This backend builds a little differently from the other tracing
    backends. Specifically there is no 'trace.c' file, because the
    'dtrace' command line tool generates a '.o' file directly from
    the dtrace probe definition file. The probe definition is usually
    named with a '.d' extension but QEMU uses '.d' files for its
    external makefile dependancy tracking, so this uses '.dtrace' as
    the extension for the probe definition file.
    
    The 'tracetool' program gains the ability to generate a trace.h
    file for DTrace, and also to generate the trace.d file containing
    the dtrace probe definition.
    
    Example usage of a dtrace probe in systemtap looks like:
    
      probe process("qemu").mark("qemu_malloc") {
        printf("Malloc %d %p\n", $arg1, $arg2);
      }
    
    * .gitignore: Ignore trace-dtrace.*
    * Makefile: Extra rules for generating DTrace files
    * Makefile.obj: Don't build trace.o for DTrace, use
      trace-dtrace.o generated by 'dtrace' instead
    * tracetool: Support for generating DTrace data files
    
    Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 9696846600cac4bd0dfd6835e45e69d25ec2b11e
Author: Adam Lackorzynski <adam at os.inf.tu-dresden.de>
Date:   Thu Nov 4 23:22:15 2010 +0100

    multiboot: Prevent loading of x86_64 images
    
    A via -kernel supplied x86_64 ELF image is being started in 32bit mode.
    Detect and exit if a 64bit image has been supplied.
    
    Signed-off-by: Adam Lackorzynski <adam at os.inf.tu-dresden.de>
    Acked-by: Alexander Graf <agraf at suse.de>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit b538e53ee7e8b9e2920d3286b480276cef209fd4
Author: Alex Williamson <alex.williamson at redhat.com>
Date:   Fri Nov 5 16:01:29 2010 -0600

    apic: Don't iterate past last used apic
    
    local_apics are allocated sequentially and never removed, so
    we can stop any iterations that go to MAX_APICS as soon as we
    hit the first NULL.  Looking at a small guest running a virtio-net
    workload with oprofile, this drops apic_get_delivery_bitmask()
    from #3 in the profile to down in the noise.
    
    Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 4cff0a5994d0300e6e77e90d3354aa517a120539
Author: Michael S. Tsirkin <mst at redhat.com>
Date:   Fri Nov 12 16:21:35 2010 +0900

    pci: allow hotplug removal of cold-plugged devices
    
    This patch fixes hot unplug of cold plugged devices
    (those present at system start), which got broken by
    5beb8ad503c88a76f2b8106c3b74b4ce485a60e1 .
    
    Signed-off-by: Isaku Yamahata <yamahata at valinux.co.jp>
    Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
    Acked-by: Cam Macdonell <cam at cs.ualberta.ca>
    Tested-by: Cam Macdonell <cam at cs.ualberta.ca>
    Reported-by: Cam Macdonell <cam at cs.ualberta.ca>.

commit a6a9239cd87d1bcdade909cf71413686fb70f8d0
Author: Alex Williamson <alex.williamson at redhat.com>
Date:   Mon Oct 4 15:53:11 2010 -0600

    PCI: Bus number from the bridge, not the device
    
    pcibus_dev_print() was erroneously retrieving the device bus
    number from the secondary bus number offset of the device
    instead of the bridge above the device.  This ends of landing
    in the 2nd byte of the 3rd BAR for devices, which thankfully
    is usually zero.
    
    Note: pcibus_get_dev_path() copied this code,
    inheriting the same bug.  pcibus_get_dev_path() is used for
    ramblock naming, so changing it can effect migration.  However,
    I've only seen this byte be non-zero for an assigned device,
    which can't migrate anyway, so hopefully we won't run into
    any issues.
    
    This patch does not touch pcibus_get_dev_path, as
    bus number is guest assigned for nested buses,
    so using it for migration is broken anyway.
    Fix it properly later.
    
    Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst at redhat.com>

commit 1f892feb37dabedbb2492c6b499b0c1b22631a1f
Author: Alex Williamson <alex.williamson at redhat.com>
Date:   Fri Nov 5 14:52:08 2010 -0600

    e1000: Fix TCP checksum overflow with TSO
    
    When adding the length to the pseudo header, we're not properly
    accounting for overflow.
    
    From: Mark Wu <dwu at redhat.com>
    Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst at redhat.com>

commit 27a6375de3edece2e5d115847d54c01e52331f7e
Author: Michael S. Tsirkin <mst at redhat.com>
Date:   Sun Oct 31 19:06:47 2010 +0200

    tap: make set_offload a nop after netdev cleanup
    
    virtio-net expects set_offload to succeed after
    peer cleanup.
    Since we don't have an open fd anymore, make it so.
    Fixes warning about the failure of offload setting.
    
    Reported-by: Jason Wang <jasowang at redhat.com>
    Signed-off-by: Michael S. Tsirkin <mst at redhat.com>

commit f6584ee20338a74ef3b05b38b8f9dc5e7a7276a6
Author: Gleb Natapov <gleb at redhat.com>
Date:   Sun Oct 24 14:27:55 2010 +0200

    Add support for async page fault to qemu
    
    Add save/restore of MSR for migration and cpuid bit.
    
    Signed-off-by: Gleb Natapov <gleb at redhat.com>
    Signed-off-by: Marcelo Tosatti <mtosatti at redhat.com>

commit 43849424cff82803011fad21074531a1101e514e
Author: Michael S. Tsirkin <mst at redhat.com>
Date:   Wed Oct 27 20:03:43 2010 +0200

    tap: clear vhost_net backend on cleanup
    
    Frontends calling tap_get_vhost_net get an invalid pointer after the
    peer backend has been deleted. Jason Wang <jasowang at redhat.com> reports
    this leading to a crash in ack_features when we remove the vhost-net
    bakend of a virtio nic.
    
    The fix is simply to clear the backend pointer.
    
    Signed-off-by: Michael S. Tsirkin <mst at redhat.com>

commit 788954270d339b4b271e1a537a481e7068ba3591
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Oct 15 11:45:13 2010 +0200

    more stdvga cleanups.
    
    video.x is gone now.  It was the only user of the
    vga bios_offset + bios_size logic.  Zap it.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 4eccfec4943db1106c79a01069e18dd4f463219b
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu May 6 11:14:11 2010 +0200

    switch vmware_vga to pci vgabios
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 543f8e3468e6df32bfde8f84ac36d05a7604e082
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu May 6 11:13:11 2010 +0200

    switch stdvga to pci vgabios
    
    Make stdvga provide the new vgabios binary (with pcibios support)
    using the PCI option rom bar.  Seabios will happily load it from
    there.  The new vga bios will also lookup the framebuffer address
    in pci config space, so the magic bochs lfb @ 0xe0000000 is not
    needed any more -> zap it.
    
    Without the patch:
    
      # dmesg | grep framebuffer
      vesafb: framebuffer at 0xe0000000, mapped to 0xf7e80000, using 1875k, total 8192k
      # lspci -vs2
      00:02.0 VGA compatible controller: Technical Corp. Device 1111 (prog-if 00 [VGA controller])
    	Subsystem: Qumranet, Inc. Device 1100
    	Physical Slot: 2
    	Flags: fast devsel
    	Memory at f0000000 (32-bit, prefetchable) [size=8M]
    	Expansion ROM at <unassigned> [disabled]
    
    With patch applied:
    
      # dmesg | grep framebuffer
      vesafb: framebuffer at 0xf0000000, mapped to 0xf7e80000, using 1875k, total 8192k
      # lspci -vs2
      00:02.0 VGA compatible controller: Technical Corp. Device 1111 (prog-if 00 [VGA controller])
    	Subsystem: Qumranet, Inc. Device 1100
    	Physical Slot: 2
    	Flags: fast devsel
    	Memory at f0000000 (32-bit, prefetchable) [size=8M]
    	Expansion ROM at f0800000 [disabled] [size=64K]
    
    cheers,
      Gerd
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 3b3d448e01ccfc6fdcb6e3d4ebf47418075e3bb4
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Mon Aug 23 12:10:46 2010 +0200

    Add new vgabios binaries to blobs list.
    
    aliguori: update VGA BIOS
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit cf2c1839a955482f2e208d7400594bf076c222f2
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Nov 11 13:07:52 2010 +0100

    add copyright to spiceaudio
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: malc <av1474 at comtv.ru>

commit 3e31375378f40558f1ee7c258f3cc63c85596bfc
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 9 17:29:46 2010 +0100

    spice: add audio
    
    Add support for the spice audio interface.  With this patch applied
    audio can be forwarded over the network from/to the spice client.  Both
    recording and playback is supported.
    
    The driver is first in the driver list, but the can_be_default flag is
    set only in case spice is active.  So if you have the spice protocol
    enabled the spice audio driver is the default one, otherwise whatever
    comes first after spice in the list.  Overriding the default using
    QEMU_AUDIO_DRV works in any case.
    
    [ v2: audio codestyle: add spaces before open parenthesis ]
    [ v2: add const to silence array ]
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Cc: malc <av1474 at comtv.ru>
    Signed-off-by: malc <av1474 at comtv.ru>

commit df0db2212d86e98c41774600c44cc960ddc2b68c
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 9 17:28:38 2010 +0100

    intel-hda: fix codec addressing.
    
    The HDA bus supports up to 15 codecs, with addresses 0 ... 14.
    We get that wrong in two places:
    
     * When handing out addresses we accept address 15 as valid.
     * The bitmasks for two registers (WAKEEN and STATESTS) don't
       have bit 14 set.
    
    This patch fixes it.
    
    [ v2: codestyle: add braces ]
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: malc <av1474 at comtv.ru>

commit e2553eb44e4ddd0b22124216d3dd20b6a0fecefb
Author: malc <av1474 at comtv.ru>
Date:   Tue Nov 9 19:14:15 2010 +0300

    Revert "intel-hda: fix codec addressing."
    
    Misses braces
    
    This reverts commit acc086837e49b44f15eff6007bb1726844df7aec.

commit acc086837e49b44f15eff6007bb1726844df7aec
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 9 11:47:49 2010 +0100

    intel-hda: fix codec addressing.
    
    The HDA bus supports up to 15 codecs, with addresses 0 ... 14.
    We get that wrong in two places:
    
     * When handing out addresses we accept address 15 as valid.
     * The bitmasks for two registers (WAKEEN and STATESTS) don't
       have bit 14 set.
    
    This patch fixes it.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: malc <av1474 at comtv.ru>

commit 17786d52acd3e18e77cd7e823f7d6bad9ece818e
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 9 11:47:48 2010 +0100

    intel-hda: add msi support
    
    This patch adds MSI support to the intel hda audio driver.  It is
    enabled by default, use '-device intel-hda,msi=0' to disable it.
    
    [ v2: codestyle: add braces ]
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: malc <av1474 at comtv.ru>

commit 6a0d02f5be44ee17cf0ce843f0658d08e97a68c2
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 9 11:47:47 2010 +0100

    intel-hda: update irq status on WAKEEN changes.
    
    When the guest updates the WAKEEN register we
    must re-calculate the IRQ status.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: malc <av1474 at comtv.ru>

commit af93485cde810f3c2f488533e0b60c99eae5d01d
Author: François Revol <revol at free.fr>
Date:   Tue Nov 9 11:47:46 2010 +0100

    intel-hda: Honor WAKEEN bits.
    
    HDA: Honor WAKEEN bits when deciding to raise an interrupt on codec
    status change.  This prevents an interrupt storm with the Haiku HDA
    driver which does not handle codec status changes in the irq handler.
    
    Signed-off-by: François Revol <revol at free.fr>
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: malc <av1474 at comtv.ru>

commit 129dcd2c66c3f693425f8a50c553146b8f6f4fd6
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 9 11:47:45 2010 +0100

    hda-audio: exit cleanup
    
    Add exit callback to the driver.  Unregister the sound card properly
    on exit.
    
    [ v2: codestyle: add braces ]
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: malc <av1474 at comtv.ru>

commit dc4b9240dc531f1fc8538e9dc968f2e34e169346
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 9 11:47:44 2010 +0100

    intel-hda: exit cleanup
    
    Add pci exit callback for the intel-hda device and cleanup properly.
    Also add an exit callback to the HDA bus implementation and make sure
    it is called on qdev_free().
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
    Signed-off-by: malc <av1474 at comtv.ru>

commit cfd07e7abb1ef39373cd4ce312b015d61b9eea8d
Author: Blue Swirl <blauwirbel at gmail.com>
Date:   Sun Nov 7 15:10:40 2010 +0000

    Fix win32 build
    
    Fix a return value change missed by
    205ef7961f781496366e0a93a4ec621ad3724bd7.
    
    Signed-off-by: Blue Swirl <blauwirbel at gmail.com>

commit d33ea50a958b2e050d2b28e5f17e3b55e91c6d74
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Wed Oct 27 13:15:27 2010 +0200

    scsi-disk: Fix immediate failure of bdrv_aio_*
    
    Fix scsi-disk to use the usual completion paths that involve rerror/werror
    handling instead of directly completing the requests in cases where
    bdrv_aio_readv/writev returns NULL.
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>

commit 18a8d4214b861aff0caa5acfa921862d0be05bbb
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Wed Oct 27 13:10:15 2010 +0200

    virtio-blk: Handle immediate flush failure properly
    
    Fix virtio-blk to use the usual completion path that involves werror handling
    instead of directly completing the request in cases where bdrv_aio_flush
    returns NULL.
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>

commit b2df7531f3adc4f0f65067b917cef8c66ba812c5
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Wed Oct 27 13:04:15 2010 +0200

    ide: Handle immediate bdrv_aio_flush failure
    
    If bdrv_aio_flush returns NULL, this should be treated as an error.
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>

commit a31335863648d1e707f59296cffb74205aedba96
Author: Blue Swirl <blauwirbel at gmail.com>
Date:   Sat Oct 30 16:46:27 2010 +0000

    block: avoid a warning on 64 bit hosts with long as int64_t
    
    When building on a 64 bit host which uses 'long' for int64_t,
    GCC emits a warning:
      CC    block/blkverify.o
    /src/qemu/block/blkverify.c: In function `blkverify_verify_readv':
    /src/qemu/block/blkverify.c:304: warning: long long int format, long
    unsigned int arg (arg 3)
    
    Rework a77cffe7e916f4dd28f2048982ea2e0d98143b11 to avoid the warning.
    
    Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>

commit 1c02e2a17104fe7fc11893125864dc0daf1e6d5b
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Thu Oct 28 16:16:00 2010 +0200

    qcow2: Invalidate cache after failed read
    
    The cache content may be destroyed after a failed read, better not use it any
    more.
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>

commit 4a4111851fa75bc91028a26eb75dcdd136d9032d
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Fri Oct 22 16:17:57 2010 +0200

    vpc: Implement bdrv_flush
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>

commit 78ced65e6ec6d76059f0d943a82103122d4e6494
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Mon Oct 25 16:40:17 2010 +0200

    scsi-disk: Implement werror for flushes
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>

commit 8af7a3ab51d9780f52b7d2581f144ab127097362
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Mon Oct 25 12:43:22 2010 +0200

    scsi-disk: Complete failed requests in scsi_disk_emulate_command
    
    This pulls the request completion for error cases from the caller to
    scsi_disk_emulate_command. This should not change semantics, but allows to
    reuse scsi_handle_write_error() for flushes in the next patch.
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>

commit 205ef7961f781496366e0a93a4ec621ad3724bd7
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Thu Oct 21 16:43:43 2010 +0200

    block: Allow bdrv_flush to return errors
    
    This changes bdrv_flush to return 0 on success and -errno in case of failure.
    It's a requirement for implementing proper error handle in users of bdrv_flush.
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>

commit 5dba48a882c126ccc86db6506cfa6dcca97badab
Author: Kevin Wolf <kwolf at redhat.com>
Date:   Mon Oct 25 14:52:21 2010 +0200

    scsi-disk: Implement rerror option
    
    This implements the rerror option for SCSI disks.
    
    It also includes minor changes to the write path where the same code is used
    that was criticized in the review for the changes to the read path required for
    rerror support.
    
    Signed-off-by: Kevin Wolf <kwolf at redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha at linux.vnet.ibm.com>

commit 5fc9cfedfa09199e10b5f9b67dcd286bfeae4f7a
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date:   Mon Nov 1 20:02:23 2010 +0100

    Fold send_all() wrapper unix_write() into one function
    
    The current send_all() wrapper for POSIX calls does nothing but call
    unix_write(). Merge them to simplify the code.
    
    Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 07de3e60b05d13f255d12f8dfac8e3b1e5e34d7d
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date:   Thu Oct 21 17:15:49 2010 +0200

    Remove obsolete 'f' double parameter type
    
    'f' double is no longer used, and we should be using floating point
    variables to store byte sizes. Remove it.
    
    Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit ed3d4a8075ac6f2437e100bc063bad82ff3a8671
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date:   Thu Oct 21 17:15:48 2010 +0200

    Switch migrate_set_speed() to take an 'o' argument rather than a float.
    
    Clarify default value of MB in migration speed argument in monitor, if
    no suffix is specified. This differ from previous default of bytes,
    but is consistent with the rest of the places where we accept a size
    argument.
    
    Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit dbc0c67faff9f44ff6917eb4157a9c471902a453
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date:   Thu Oct 21 17:15:47 2010 +0200

    Add support for 'o' octet (bytes) format as monitor parameter.
    
    Octet format relies on strtosz which supports K/k, M/m, G/g, T/t
    suffixes and unit support for humans, like 1.3G
    
    Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>

commit 9f9b17a4f0865286391e4d3a0a735230122a2289
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date:   Thu Oct 21 17:15:46 2010 +0200

    Introduce strtosz() library function to convert a string to a byte count.
    
    strtosz() returns -1 on error. It now supports human unit formats in
    eg. 1.0G, with better error handling.
    
    The following suffixes are supported:
    B/b = bytes
    K/k = KB
    M/m = MB
    G/g = GB
    T/t = TB
    
    This patch changes -numa and -m input to use strtosz().
    
    Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
    Signed-off-by: Anthony Liguori <aliguori at us.ibm.com>



More information about the Spice-commits mailing list