1. 22 10月, 2010 3 次提交
    • 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
    • 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
  2. 21 10月, 2010 16 次提交
  3. 14 10月, 2010 5 次提交
    • B
      Delete write only variables · 49a2942d
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced warnings like:
      /src/qemu/net/tap-win32.c: In function 'tap_win32_open':
      /src/qemu/net/tap-win32.c:582:12: error: variable 'hThread' set but not used [-Werror=unused-but-set-variable]
      
      Fix by removing the unused variables.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      49a2942d
    • B
      ppc: remove video.x · ae0bfb79
      Blue Swirl 提交于
      Only Mac-on-Linux stuff used video.x, OpenBIOS does not need it.
      
      Remove video.x MoL hacks.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      ae0bfb79
    • B
      lsi53c895a: avoid a write only variable · f3f5b867
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced a warning:
      /src/qemu/hw/lsi53c895a.c: In function 'lsi_do_msgout':
      /src/qemu/hw/lsi53c895a.c:848:9: error: variable 'len' set but not used [-Werror=unused-but-set-variable]
      
      Fix by adding a dummy cast so that the variable is not unused for
      non-debug case.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      f3f5b867
    • B
      eepro100: initialize a variable in all cases · ef476062
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced warnings:
      /src/qemu/hw/eepro100.c: In function 'eepro100_read4':
      /src/qemu/hw/eepro100.c:1351:14: error: 'val' may be used uninitialized in this function [-Werror=uninitialized]
      /src/qemu/hw/eepro100.c: In function 'eepro100_read2':
      /src/qemu/hw/eepro100.c:1328:14: error: 'val' may be used uninitialized in this function [-Werror=uninitialized]
      /src/qemu/hw/eepro100.c: In function 'eepro100_read1':
      /src/qemu/hw/eepro100.c:1285:13: error: 'val' may be used uninitialized in this function [-Werror=uninitialized]
      
      Fix by initializing 'val' at start.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      ef476062
    • B
      cirrus: avoid write only variables · 8c78881f
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced a lot of warnings like:
      In file included from /src/qemu/hw/cirrus_vga_rop.h:174:0,
                       from /src/qemu/hw/cirrus_vga.c:284:
      /src/qemu/hw/cirrus_vga_rop2.h: In function 'cirrus_patternfill_0_8':
      /src/qemu/hw/cirrus_vga_rop2.h:48:18: error: variable 'col' set but not used [-Werror=unused-but-set-variable]
      /src/qemu/hw/cirrus_vga_rop2.h: In function 'cirrus_colorexpand_transp_0_8':
      /src/qemu/hw/cirrus_vga_rop2.h:104:18: error: variable 'col' set but not used [-Werror=unused-but-set-variable]
      
      Fix the warnings by introducing an inline function, which avoids
      exposing write-only variables.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      8c78881f
  4. 09 10月, 2010 1 次提交
  5. 07 10月, 2010 5 次提交
  6. 06 10月, 2010 1 次提交
  7. 03 10月, 2010 5 次提交
  8. 02 10月, 2010 2 次提交
  9. 01 10月, 2010 2 次提交