1. 21 10月, 2010 3 次提交
  2. 18 10月, 2010 2 次提交
  3. 14 10月, 2010 12 次提交
    • B
      trace: print a warning if user tries to enable an unknown trace event · f871d689
      Blue Swirl 提交于
      There was no warning if a bad trace event name was given to
      'trace-event' command, thus the user could think that the command
      was successful even if this was not the case.
      
      Print a warning if the user tries to enable a trace event which is not
      known.
      Acked-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      f871d689
    • B
      mips: avoid write only variables · 2abf314d
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced a lot of warnings like:
      /src/qemu/target-mips/translate.c: In function 'gen_ld':
      /src/qemu/target-mips/translate.c:1039:17: error: variable 'opn' set but not used [-Werror=unused-but-set-variable]
      
      Fix by adding a dummy cast so that the variable is not unused.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2abf314d
    • B
      ppc: avoid write only variables · 577f25a5
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced warnings:
      /src/qemu/target-ppc/op_helper.c: In function 'helper_icbi':
      /src/qemu/target-ppc/op_helper.c:351:14: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable]
      /src/qemu/target-ppc/op_helper.c: In function 'do_6xx_tlb':
      /src/qemu/target-ppc/op_helper.c:3805:28: error: variable 'EPN' set but not used [-Werror=unused-but-set-variable]
      /src/qemu/target-ppc/op_helper.c: In function 'do_74xx_tlb':
      /src/qemu/target-ppc/op_helper.c:3838:28: error: variable 'EPN' set but not used [-Werror=unused-but-set-variable]
      
      Fix by adding a dummy cast so that the variable is not unused. Delete tmp.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      577f25a5
    • B
      i386: avoid a write only variable · 4581cbcd
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced warnings:
      /src/qemu/target-i386/op_helper.c: In function 'switch_tss':
      /src/qemu/target-i386/op_helper.c:283:53: error: variable 'new_trap' set but not used [-Werror=unused-but-set-variable]
      
      Fix by adding a dummy cast so that the variable is not unused. Add also
      pointer to docs.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      4581cbcd
    • B
      vnc: avoid write only variables · 2ded6ad7
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced warnings:
      /src/qemu/ui/vnc.c: In function 'vnc_client_cache_auth':
      /src/qemu/ui/vnc.c:217:12: error: variable 'qdict' set but not used [-Werror=unused-but-set-variable]
      /src/qemu/ui/vnc.c: In function 'vnc_display_open':
      /src/qemu/ui/vnc.c:2526:9: error: variable 'acl' set but not used [-Werror=unused-but-set-variable]
      
      Fix by making the variable declarations and their uses also conditional
      to debug definition.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2ded6ad7
    • B
      cris: avoid a write only variable · 03e654c0
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced a warning:
      In file included from /src/qemu/target-cris/translate.c:3154:0:
      /src/qemu/target-cris/translate_v10.c: In function 'dec10_prep_move_m':
      /src/qemu/target-cris/translate_v10.c:111:22: error: variable 'rd' set but not used [-Werror=unused-but-set-variable]
      
      Fix by deleting rd, adjust the only user.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      03e654c0
    • 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
    • B
      block: avoid a write only variable · 83e3f76c
      Blue Swirl 提交于
      Compiling with GCC 4.6.0 20100925 produced a warning:
      /src/qemu/block/qcow2-refcount.c: In function 'update_refcount':
      /src/qemu/block/qcow2-refcount.c:552:13: error: variable 'dummy' set but not used [-Werror=unused-but-set-variable]
      
      Fix by adding a dummy cast so that the result is not unused.
      Acked-by: NKevin Wolf <kwolf@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      83e3f76c
  4. 12 10月, 2010 1 次提交
  5. 09 10月, 2010 11 次提交
  6. 08 10月, 2010 1 次提交
  7. 07 10月, 2010 6 次提交
    • M
      vhost: error code · c8852121
      Michael S. Tsirkin 提交于
      fix up errors returned to include errno, not just -1
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      c8852121
    • M
      virtio: change set guest notifier to per-device · 54dd9321
      Michael S. Tsirkin 提交于
      When using irqfd with vhost-net to inject interrupts,
      a single evenfd might inject multiple interrupts.
      Implementing this is much easier with a single
      per-device callback to set guest notifiers.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      54dd9321
    • S
      eepro100: Add support for multiple individual addresses (multiple IA) · 010ec629
      Stefan Weil 提交于
      I reviewed the latest sources of Linux, FreeBSD and NetBSD.
      They all reset the multiple IA bit (multi_ia in BSD) to zero,
      but I did not find code which sets this bit to one
      (like it is done by some routers).
      
      Running Windows guests also did not set this bit.
      
      Intel's Open Source Software Developer Manual does not
      give much information on the semantics related to this bit,
      so I had to guess how it works. The guess was good enough
      to make the router emulation work.
      
      Related changes in this patch:
      * Update naming and documentation of the internal hash register.
        It is not limited to multicast, but also used for multiple IA.
      * Dump complete configuration register when debug traces are enabled.
      * Debug output when multiple IA bit is set during CmdConfigure.
      * Debug output when frames are received because multiple IA bit is set,
        or when they are ignored although it is set.
      
      Cc: Michael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      010ec629
    • M
      virtio-net: unify vhost-net start/stop · afbaa7b4
      Michael S. Tsirkin 提交于
      Move all of vhost-net start/stop logic to a single routine,
      and call it from everywhere.
      
      Additionally, start/stop vhost-net on link up/down:
      we should not transmit anything if user asked us to
      put the link down.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Acked-by: NAlex Williamson <alex.williamson@redhat.com>
      afbaa7b4
    • M
      virtio: invoke set_status callback on reset · e0c472d8
      Michael S. Tsirkin 提交于
      As status is set to 0 on reset, invoke the relevant callback. This makes
      for a cleaner code in devices as they don't need to duplicate the code
      in their reset routine, as well as excercises this path a little more.
      
      In particular this makes it possible to unify
      vhost-net handling code with the following patch.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      e0c472d8
    • M
      net: delay freeing peer host device · a083a89d
      Michael S. Tsirkin 提交于
      With -netdev, virtio devices present offload
      features to guest, depending on the backend used.
      Thus, removing host netdev peer while guest is
      active leads to guest-visible inconsistency and/or crashes.
      
      As a solution, while guest (NIC) peer device exists,
      we prevent the host peer from being deleted.
      This patch does this by adding peer_deleted flag in nic state:
      if host device is going away while guest device
      is around, set this flag and keep a shell of
      the host device around for as long as guest device exists.
      
      The link is put down so all packets will get discarded.
      
      At the moment, management can detect that device deletion
      is delayed by doing info net. As a next step, we shall add
      commands that control hotplug/unplug without
      removing the device, and an event to report that
      guest has responded to the hotplug event.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Acked-by: NAlex Williamson <alex.williamson@redhat.com>
      a083a89d
  8. 06 10月, 2010 4 次提交