1. 31 10月, 2010 1 次提交
  2. 30 10月, 2010 14 次提交
  3. 26 10月, 2010 3 次提交
    • A
      Merge remote branch 'qmp/for-anthony' into staging · 174b2877
      Anthony Liguori 提交于
      174b2877
    • A
      21bcc590
    • A
      seabios: Update to 0.6.1 · 758c309f
      Anthony Liguori 提交于
       - 0ff9051 Update version to 0.6.1
       - 9c000e6 Support Samsung SE-S084 USB DVD drive (and probably many others)
       - eebe949 pciinit: remove unused variable, old_addr, in pci_set_io_region_addr().
       - 06644f4 Minor - indentation change to jpeg.c.
       - 2dcd9fa Enhance tools/readserial.py to support reading from a pipe.
       - 7ce09ae Make tools/transdump.py more resilient to unknown input.
       - 6039fc5 Update qemu_cfg_read to use "rep insb".
       - 9a01a9c Only show bootsplash during boot menu.
       - 5feb83c add write support to virtio-blk
       - 22f6378 Don't try to talk to APIC on 486
       - e2074bf Add ACPI SSDT/DSDT support for CPU hotplug.
       - eb6dc78 Add additional debug status messages to bootsplash code.
       - c8e4e88 Allow qemu to use bootsplash code via fwcfg interface.
       - 597040d Add tools/trandump.py tool for converting hexdump() output.
       - 48f5f8b Default bootsplash on (for coreboot users).
       - 8d85eb1 Autodetect video mode based on bootsplash jpeg dimensions.
       - b2b9d4a Rename "decdata" to "jpeg" in bootsplash - to be consistent with jpeg.c.
       - bbc4722 Breakup jpeg_decode into parsing and displaying phases.
       - 2976dd4 Avoid using BSS variables in jpeg.c.
       - cc9e1bf Add FUNC16() helper macro for converting a 16bit func to a segoff_s.
       - b4525a0 Handle unaligned sizes in iomemcpy().
       - 0e27e19 Cleanup bootsplash vesa signature detection.
       - cadaf0e Be sure to disable bootsplash on all BIOS boot cases.
       - 2641186 Add call16_int10 helper to bootsplash.c.
       - 6dc76f4 Don't do "double buffering" in bootsplash code.
       - 227dc3e Check that malloc succeeds in bootsplash code.
       - a576c9c Bootsplash fixes and cleanups.
       - 9fd4851 Minor - clarify bit logic in mptable.c.
       - abf31d3 Fix integer truncating bug in calc_future_timer().
       - 1d5c333 seabios: pciinit: fix 64bit bar initilization.
       - ae6924d Minor - introduce GDT_GRANLIMIT macro.
       - 0f78889 Avoid code addresses >64K in big real mode.
       - aec19c9 seabios: smm: move out piix4 specific smram logic to dev-i440fx.c
       - 08328e7 seabios: shadow: make device finding more generic.
       - 4c67f90 seabios: acpi: clean up of finding pm device.
       - fe54a53 seabios: acpi: split out piix4 pm logic.
       - d06afb4 seabios: acpi: move acpi definitions to acpi.h from acpi.c
       - 2f54bb4 seabios: acpi: move out endian conversion helper function.
       - 23173ac seabios: pci: introduce helper function to find device from table and initialize it.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      758c309f
  4. 23 10月, 2010 10 次提交
  5. 22 10月, 2010 12 次提交
    • A
      dbb14135
    • K
      virtio-blk: Respect werror option for flushes · 8c269b54
      Kevin Wolf 提交于
      The werror option now affects not only write requests, but also flush requests.
      Previously, it was not possible to stop a VM on a failed flush.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      8c269b54
    • K
      ide: Handle flush failure · e2bcadad
      Kevin Wolf 提交于
      Instead of always assuming success for bdrv_aio_flush, actually do something
      with the error. This respects the werror option and accordingly ignores the
      error, reports it to the guest or stops the VM and retries after cont.
      
      Ignoring the error is trivial, obviously. For stopping the VM and retrying
      later old code can be reused, but we need to introduce a new status for "retry
      a flush". For reporting to the guest, fortunately the same action is required
      as for a failed read/write (status = DRDY | ERR, error = ABRT), so this code
      can be reused as well.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      e2bcadad
    • K
      ide: Factor ide_flush_cache out · 6bcb1a79
      Kevin Wolf 提交于
      The next patch reuses this code, so put it in its own function.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6bcb1a79
    • K
      qemu-img: Fix qemu-img convert -obacking_file · a18953fb
      Kevin Wolf 提交于
      The old -B option caused a backing file to be used for the converted image and
      to avoid copying clusters from the old backing file. When replaced with
      -obacking_file, qemu-img convert does assign the backing file to the new image,
      but it doesn't realize that it should avoid copying clusters from the backing
      file.
      
      This patch checks the -o options for a backing_file and applies the same logic
      as for -B in this case.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a18953fb
    • S
      block: Use GCC_FMT_ATTR and fix a format error · a77cffe7
      Stefan Weil 提交于
      Adding the gcc format attribute detects a format bug
      which is fixed here.
      
      v2:
      Don't use type cast. BDRV_SECTOR_SIZE is unsigned long long,
      so %lld should be the correct format specifier.
      
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a77cffe7
    • K
      qemu-io: New command map · 191c2890
      Kevin Wolf 提交于
      The new map command in qemu-io lists all allocated/unallocated areas in an
      image file.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      191c2890
    • E
      Copy snapshots out of QCOW2 disk · 51ef6727
      edison 提交于
      In order to backup snapshots, created from QCOW2 iamge, we want to copy snapshots out of QCOW2 disk to a seperate storage.
      The following patch adds a new option in "qemu-img": qemu-img convert -f qcow2 -O qcow2 -s snapshot_name src_img bck_img.
      Right now, it only supports to copy the full snapshot, delta snapshot is on the way.
      
      Changes from V1: all the comments from Kevin are addressed:
      Add read-only checking
      Fix coding style
      Change the name from bdrv_snapshot_load to bdrv_snapshot_load_tmp
      Signed-off-by: NDisheng Su <edison@cloud.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      51ef6727
    • C
      ide: set WCACHE supported in IDENTIFY data · a58b8d54
      Christoph Hellwig 提交于
      ATA does not only have the WCACHE enabled bit in identify word 85, but also
      a WCACHE supported bit in word 82.  While the Linux kernel is fine with the
      latter at least hdparm also needs the former before correctly displaying
      the cache settings.  There's also a non-zero chance other operating systems
      are more picky in their volatile write cache detection.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a58b8d54
    • K
      qcow2: Remove old image creation function · 9b036055
      Kevin Wolf 提交于
      They have been #ifdef'd out by the previous patch.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      9b036055
    • K
      qcow2: Simplify image creation · a9420734
      Kevin Wolf 提交于
      Instead of doing lots of magic for setting up initial refcount blocks and stuff
      create a minimal (inconsistent) image, open it and initialize the rest with
      regular qcow2 functions.
      
      This is a complete rewrite of the image creation function. The old
      implementating is #ifdef'd out and will be removed by the next patch (removing
      it here would have made the diff unreadable because diff tries to find
      similarities when it's really a rewrite)
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      a9420734
    • S
      qcow2: Support exact L1 table growth · 72893756
      Stefan Hajnoczi 提交于
      The L1 table grow operation includes a size calculation that bumps up
      the new L1 table size in order to anticipate the size needs of vmstate
      data.  This helps reduce the number of times that the L1 table has to be
      grown when vmstate data is appended.
      
      This size overhead is not necessary during image creation,
      bdrv_truncate(), or snapshot goto operations.  In fact, existing
      qemu-iotests that exercise table growth are no longer able to trigger it
      because image creation preallocates an L1 table that is too large after
      changes to qcow_create2().
      
      This patch keeps the size calculation but also adds exact growth for
      callers that do not want to inflate the L1 table size unnecessarily.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      72893756