Skip to content
Snippets Groups Projects
  1. May 24, 2013
  2. May 20, 2013
  3. May 17, 2013
  4. May 16, 2013
  5. May 14, 2013
  6. May 13, 2013
  7. Apr 15, 2013
  8. Apr 09, 2013
    • Daniel P. Berrangé's avatar
      Add -f FMT / --format FMT arg to qemu-nbd · 6e886531
      Daniel P. Berrangé authored
      
      Currently the qemu-nbd program will auto-detect the format of
      any disk it is given. This behaviour is known to be insecure.
      For example, if qemu-nbd initially exposes a 'raw' file to an
      unprivileged app, and that app runs
      
         'qemu-img create -f qcow2 -o backing_file=/etc/shadow /dev/nbd0'
      
      then the next time the app is started, the qemu-nbd will now
      detect it as a 'qcow2' file and expose /etc/shadow to the
      unprivileged app.
      
      The only way to avoid this is to explicitly tell qemu-nbd what
      disk format to use on the command line, completely disabling
      auto-detection. This patch adds a '-f' / '--format' arg for
      this purpose, mirroring what is already available via qemu-img
      and qemu commands.
      
        qemu-nbd --format raw -p 9000 evil.img
      
      will now always use raw, regardless of what format 'evil.img'
      looks like it contains
      
      Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
      [Use errx, not err. - Paolo]
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      
      *fixed conflict due to bdrv_open() not supporting "options" param
      in v1.4.1
      
      Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
      6e886531
    • Richard Sandiford's avatar
      target-mips: Fix accumulator selection for MIPS16 and microMIPS · 6d0b135a
      Richard Sandiford authored
      
      Add accumulator arguments to gen_HILO and gen_muldiv, rather than
      extracting the accumulator directly from ctx->opcode.  The extraction
      was only right for the standard encoding: MIPS16 doesn't have access
      to the DSP registers, while microMIPS encodes the accumulator register
      in a different field (bits 14 and 15).
      
      Passing the accumulator register is probably an over-generalisation
      for division and 64-bit multiplication, which never access anything
      other than HI and LO, and which always pass 0 as the new argument.
      Separating them felt a bit fussy though.
      
      Signed-off-by: default avatarRichard Sandiford <rdsandiford@googlemail.com>
      Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
      (cherry picked from commit 26135ead)
      
      Conflicts:
      	target-mips/translate.c
      
      Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
      6d0b135a
  9. Apr 06, 2013
  10. Apr 05, 2013
  11. Apr 04, 2013
Loading