• In current code, we're sending ENOSYS to target when a syscall for the
    xattrs is done. This makes applications like ls complain loudly about
    that and breaks scripts parsing the output. Moreover, iirc, implemented
    features of filesystems are are sending EOPNOTSUPP (I've not checked so
    I may be a little bit wrong on that...).
    So, I'm proposing to return -EOPNOTSUPP and make ls happy
    
    Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
    Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
    Arnaud Patard authored
     
    Browse Code »
  • When converting the termios structure between host and target in
    target_to_host_termios and host_to_target_termios, the c_cc[] array is
    never initialised.
    Calling memset() before using it allows to run successfully "stty echo /
    stty -echo" on arm-linux-user target (host being x86 and mips).
    
    Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
    Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
    Arnaud Patard authored
     
    Browse Code »
  • The glibc function for utimensat glibc returns -EINVAL when the path is null
    which is a different behaviour with the syscall.
    
    path can be null because internally the glibc is using utimensat with
    path null when implmenting futimens. If path is null, call futimes
    instead.
    
    don't try to copy timespec from user if is NULL.
    
    Add configure check for older systems
    
    Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
    Riku Voipio authored
     
    Browse Code »
  • - to not to break strace with GUEST_BASE is set:
    - Strace now can load and print guest strings correctly.
    - Added printing support for commonly used flags in some syscalls
      (e.g open, creat, mmap etc.)
    
    v2:
    - fix strace.c build on etch
    - add futex print to strace
    
    Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
    Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
    Mika Westerberg authored
     
    Browse Code »
  • Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
    Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
    Mika Westerberg authored
     
    Browse Code »
  • When target process is killed with signal (such signal that
    should dump core) a coredump file is created.  This file is
    similar than coredump generated by Linux (there are few exceptions
    though).
    
    Riku Voipio: added support for rlimit
    
    Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
    Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
    Mika Westerberg authored
     
    Browse Code »
  • No regressions were observed on either 64bit or 32bit
    IA hosts.
    
    Patch based on original patches by:
      Kirill A. Shutemov <kirill@shutemov.name>
      - Implement shm* syscalls
      - Fix and cleanup IPCOP_shm* ipc calls handling
    
    Depends on "export mmap_find_vma for shmat" patch.
    
    Various whitespace uglifications applied to minimize
    patch size.
    
    Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
    Riku Voipio authored
     
    Browse Code »
  • Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
    Riku Voipio authored
     
    Browse Code »

  • Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    Anthony Liguori authored
     
    Browse Code »
  • 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 »