• Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    Edgar E. Iglesias authored
     
    Browse Code »
  • * commit 'block/master':
      raw-posix: cleanup ioctl methods
      block: add bdrv_probe_device method
      raw-posix: split hdev drivers
      raw-posix: add a raw_open_common helper
      raw-posix: always store open flags
      fix qemu_aio_flush
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • qemu-nbd.c:349: error: ignoring return value of 'daemon', declared with attribute warn_unused_result
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • Rename raw_ioctl and raw_aio_ioctl to hdev_ioctl and hdev_aio_ioctl as they
    are only used for the host device.  Also only add them to the method table
    for the cases where we need them (generic hdev if linux and linux CDROM)
    instead of declaring stubs and always add them.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored
     
    Browse Code »
  • Add a bdrv_probe_device method to all BlockDriver instances implementing
    host devices to move matching of host device types into the actual drivers.
    For now we keep exacly the old matching behaviour based on the devices names,
    although we really should have better detetion methods based on device
    information in the future.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored
     
    Browse Code »
  • Instead of declaring one BlockDriver for all host devices declared one
    for each type:  a generic one for normal disk devices, a Linux floppy
    driver and a CDROM driver for Linux and FreeBSD.  This gets rid of a lot
    of messy ifdefs and switching based on the type in the various removal
    device methods.
    
    block.c grows a new method to find the correct host device driver based
    on OS-sepcific criteria, which will later into the actual drivers in a
    later patch in this series.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored
     
    Browse Code »
  • raw_open and hdev_open contain the same basic logic.  Add a new
    raw_open_common helper containing the guts of the open routine
    and call it from raw_open and hdev_open.
    
    We use the new open_flags field in BDRVRawState to allow passing
    additional open flags to raw_open_common from both.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored
     
    Browse Code »
  • Both the Linux floppy and the FreeBSD CDROM host device need to store
    the open flags so that they can re-open the device later.  Store the
    open flags unconditionally to remove the ifdef mess and simply the
    calling conventions for the later patches in the series.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored
     
    Browse Code »
  • qemu_aio_wait by invoking the bh or one of the aio completion
    callbacks, could end up submitting new pending aio, breaking the
    invariant that qemu_aio_flush returns only when no pending aio is
    outstanding (possibly a problem for migration as such).
    
    Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Acked-by: Kevin Wolf <kwolf@redhat.com>
    Andrea Arcangeli authored
     
    Browse Code »

  • On reset:
    Periodic Interrupt Enable (PIE) bit is cleared to zero
    Alarm Interrupt Enable (AIE) bit is cleared to zero
    Update ended Interrupt Flag (UF) bit is cleared to zero
    Interrupt Request status Flag (IRQF) bit is cleared to zero
    Periodic Interrupt Flag (PF) bit is cleared to zero
    Alarm Interrupt Flag (AF) bit is cleared to zero
    Square Wave output Enable (SQWE) zero
    
    Signed-off-by: Gleb Natapov <gleb@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Gleb Natapov authored
     
    Browse Code »




  • Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • * net-queue: (28 commits)
      virtio-net: Increase filter and control limits
      virtio-net: Add new RX filter controls
      virtio-net: MAC filter optimization
      virtio-net: Fix MAC filter overflow handling
      virtio-net: reorganize receive_filter()
      virtio-net: Use a byte to store RX mode flags
      virtio-net: Add version_id 7 placeholder for vnet header support
      virtio-net: implement rx packet queueing
      net: make use of async packet sending API in tap client
      net: add qemu_send_packet_async()
      net: split out packet queueing and flushing into separate functions
      net: return status from qemu_deliver_packet()
      net: add return value to packet receive handler
      net: pass VLANClientState* as first arg to receive handlers
      net: re-name vc->fd_read() to vc->receive()
      net: add fd_readv() handler to qemu_new_vlan_client() args
      net: only read from tapfd when we can send
      net: vlan clients with no fd_can_read() can always receive
      net: move the tap buffer into TAPState
      net: factor tap_read_packet() out of tap_send()
      ...
    
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • The function qemu_calculate_timeout() is only used when CONFIG_IOTHREAD
    is not defined. When CONFIG_IOTHREAD is defined, we have the following
    warning:
    
    vl.c:4389: warning: ‘qemu_calculate_timeout’ defined but not used
    
    This change fixes that by moving the #ifdef/#endif from main_loop()
    into qemu_calculate_timeout(). This encapsulates the logic and allow
    us to use qemu_calculate_timeout() when CONFIG_IOTHREAD is defined
    or not (suggested by Glauber Costa).
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    Luiz Capitulino authored
     
    Browse Code »