• "struct timeval last" caused a compilation error with mingw32
    (missing header for struct timeval).
    
    It is unused, so it was possible to remove it.
    
    Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
    Signed-off-by: Stefan Weil <weil@mail.berlios.de>
    Stefan Weil authored
     
    Browse Code »
  • Implement and use a common device bus state.  The main side-effect is
    that creating a bus and attaching it to a parent device are no longer
    separate operations.  For legacy code we allow a NULL parent, but that
    should go away eventually.
    
    Also tweak creation code to veriry theat a device in on the right bus.
    
    Signed-off-by: Paul Brook <paul@codesourcery.com>
    Paul Brook authored
     
    Browse Code »

  • Signed-off-by: Paul Brook <paul@codesourcery.com>
    Paul Brook authored
     
    Browse Code »
  • Signed-off-by: Paul Brook <paul@codesourcery.com>
    Paul Brook authored
     
    Browse Code »
  • Bit 0 is the enable bit, which we not only don't want to set, but
    it will stick and make us think it's an I/O port resource.
    
    Signed-off-by: Alex Williamson <alex.williamson@hp.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Jan Kiszka authored
     
    Browse Code »
  • Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Jan Kiszka authored
     
    Browse Code »
  • Currently Qemu can read from posix I/O and NBD. This patch adds a
    third protocol to the game: HTTP.
    
    In certain situations it can be useful to access HTTP data directly,
    for example if you want to try out an http provided OS image, but
    don't know if you want to download it yet.
    
    Using this patch you can now try it on on the fly. Just use it like:
    
    qemu -cdrom http://host/path/my.iso
    
    Signed-off-by: Alexander Graf <agraf@suse.de>
    Alexander Graf authored
     
    Browse Code »
  • Add in a workaround to allow the usb serial devices to work with the
    usb pass through mechanism.  The ioctl() to request an alternate
    interface will always return < 0 for a usb-serial device based on the
    kernel driver.  This means there is no alternate interface end point.
    
    This was fully tested with a pl2303 usb serial device.
    
    Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
    Jason Wessel authored
     
    Browse Code »
  • After creating an automated regression test to test the sysrq
    responses while running a linux image in qemu, I found that the
    simulated uart was eating the character right after the sysrq about
    75% of the time.
    
    The problem is that the qemu sets the LSR_DR (data ready) bit on a
    serial break.  The automated tests can send a break and the sysrq
    character quickly enough that the qemu serial fifo has a real
    character available. When there is valid character in the fifo, it
    gets consumed by the serial driver in the guest OS.
    
    The real hardware also appears to set the LSR_DR but always appears to
    have a null byte in this condition.  This patch changes the qemu
    behavior to match the tested characteristics of a real 16550 chip.
    
    Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
    Jason Wessel authored
     
    Browse Code »
  • Implement the serial break via usb serial.
    
    The second data byte in ftdi status packet contains the break status.
    The values were already defined in usb-serial.c so it was a matter of
    making use of the event_trigger to form a urb to send over to the host
    controller with the serial break status set.
    
    This was tested against a linux development image which enables sysrq
    via a serial break on the ftdi usb console.
    
    Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
    Jason Wessel authored
     
    Browse Code »
  • In case a client restarts a DHCP recovery without releasing its old
    address, reassign the same address to prevent consuming free addresses
    and moving away from the standard client address.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Jan Kiszka authored
     
    Browse Code »
  • Save and restore all so far neglected KVM-specific CPU states. Handling
    the TSC stabilizes migration in KVM mode. The interrupt_bitmap and
    mp_state are currently unused, but will become relevant for in-kernel
    irqchip support. By including proper saving/restoring already, we avoid
    having to increment CPU_SAVE_VERSION later on once again.
    
    v2:
     - initialize mp_state runnable (for the boot CPU)
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • Use standard callback with highest order to synchronize VCPU on reset
    after all device callbacks were execute. This allows to remove the
    special kvm hook in qemu_system_reset.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »
  • Add the parameter 'order' to qemu_register_reset and sort callbacks on
    registration. On system reset, callbacks with lower order will be
    invoked before those with higher order. Update all existing users to the
    standard order 0.
    
    Note: At least for x86, the existing users seem to assume that handlers
    are called in their registration order. Therefore, the patch preserves
    this property. If someone feels bored, (s)he could try to identify this
    dependency and express it properly on callback registration.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Jan Kiszka authored
     
    Browse Code »