1. 20 3月, 2010 6 次提交
  2. 19 3月, 2010 3 次提交
  3. 18 3月, 2010 25 次提交
  4. 17 3月, 2010 6 次提交
    • A
      balloon: Do not save VM state wrt asynchronous virtio operations · 6d0ee850
      Adam Litke 提交于
      When working with the VM state (for loadvm/savevm and migration), it is not
      valid to load and store pointers since the validity of those pointers cannot be
      assured in the new qemu address space.  Therefore, virtio_balloon_save() and
      virtio_balloon_load() must not handle the stats-related fields in struct
      VirtIOBalloon.
      
      If a memory stats request is in-flight at the time of a migration or savevm,
      the request will not complete and should be resubmitted once migration or
      loadvm completes.  Note that this extremely small race window can only be
      triggered using QMP so it is not possible to hang the user monitor.
      Signed-off-by: NAdam Litke <agl@us.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6d0ee850
    • C
      block: add logical_block_size property · 8cfacf07
      Christoph Hellwig 提交于
      Add a logical block size attribute as various guest side tools only
      increase the filesystem sector size based on it, not the advisory
      physical block size.
      
      For scsi we already have support for a different logical block size
      in place for CDROMs that we can built upon.  Only my recent block
      device characteristics VPD page needs some fixups.  Note that we
      leave the logial block size for CDROMs hardcoded as the 2k value
      is expected for it in general.
      
      For virtio-blk we already have a feature flag claiming to support
      a variable logical block size that was added for the s390 kuli
      hypervisor.  Interestingly it does not actually change the units
      in which the protocol works, which is still fixed at 512 bytes,
      but only communicates a different minimum I/O granularity.  So
      all we need to do in virtio is to add a trap for unaligned I/O
      and round down the device size to the next multiple of the logical
      block size.
      
      IDE does not support any other logical block size than 512 bytes.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8cfacf07
    • J
      Avoid crash on '-usbdevice <device>' without parameters · 702f3e0f
      Jan Kiszka 提交于
      Many usbdevice_init implementors assume params is non-NULL.
      Signed-off-by: NJan Kiszka <jan.kiszka@web.de>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      702f3e0f
    • C
      Fix SIGFPE for vnc display of width/height = 1 · cc39a92c
      Chris Webb 提交于
      During boot, the screen gets resized to height 1 and a mouse click at this
      point will cause a division by zero when calculating the absolute pointer
      position from the pixel (x, y). Return a click in the middle of the screen
      instead in this case.
      Signed-off-by: NChris Webb <chris@arachsys.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      cc39a92c
    • P
      3c9c706c
    • B
      sdl: improve error message on fatal error · b6034a39
      Bjørn Mork 提交于
      The SDL_SetVideoMode() error condition is easily triggered by a user by
      simply configure a guest with a host unsupported display resolution
      and attempting to enable fullscreen.  Since the error is fatal, adding
      a bit of debugging help can't harm.
      
      Sample output with this change:
      
       (qemu) Could not open SDL display (1280x1024x32): No video mode large enough for 1280x1024
      
      The width x height might seem redundant as SDL also provides it in
      SDL_GetError(), but I believe there are situations where it is
      useful.  I.e. if there is some other SDL error.  Anyway, redundant
      information in fatal error messages has never harmed a single gerbil.
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b6034a39