1. 15 8月, 2012 1 次提交
  2. 14 8月, 2012 1 次提交
  3. 08 8月, 2012 1 次提交
  4. 07 8月, 2012 2 次提交
  5. 23 7月, 2012 1 次提交
    • P
      qapi: fix error propagation · d195325b
      Paolo Bonzini 提交于
      Don't overwrite / leak previously set errors.
      Make traversal cope with missing mandatory sub-structs.
      Don't try to end a container that could not be started.
      
      v1->v2:
      - unchanged
      
      v2->v3:
      - instead of examining, assert that we never overwrite errors with
        error_set()
      - allow visitors to set a NULL struct pointer successfully, so traversal
        of incomplete objects can continue
      - check for a NULL "obj" before accessing "(*obj)->has_XXX" (this is not a
        typo, "obj != NULL" implies "*obj != NULL" here)
      - fix start_struct / end_struct balance for unions as well
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NLaszlo Ersek <lersek@redhat.com>
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      d195325b
  6. 21 7月, 2012 1 次提交
  7. 12 7月, 2012 1 次提交
    • G
      usb: add usb attached scsi emulation · 0f58f68b
      Gerd Hoffmann 提交于
      $subject says all.  First cut.
      
      It's a pure UAS (usb attached scsi) emulation, without BOT (bulk-only
      transport) compatibility.  If your guest can't handle it use usb-storage
      instead.
      
      The emulation works like any other scsi hba emulation (eps, lsi, virtio,
      megasas, ...).  It provides just the HBA where you can attach scsi
      devices as you like using '-device'.  A single scsi target with up to
      256 luns is supported.
      
      For now only usb 2.0 transport is supported.  This will change in the
      future though as I plan to use this as playground when codeing up &
      testing usb 3.0 transport and streams support in the qemu usb core and
      the xhci emulation.
      
      No migration support yet.  I'm planning to add usb 3.0 support first as
      this probably requires saving additional state.
      
      Special thanks go to Paolo for bringing the qemu scsi emulation into
      shape, so this can be added nicely without having to touch a single line
      of scsi code.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      0f58f68b
  8. 24 6月, 2012 1 次提交
    • B
      spapr: Add "memop" hypercall · c73e3771
      Benjamin Herrenschmidt 提交于
      This adds a qemu-specific hypervisor call to the pseries machine
      which allows to do what amounts to memmove, memcpy and xor over
      regions of physical memory such as the framebuffer.
      
      This is the simplest way to get usable framebuffer speed from
      SLOF since the framebuffer isn't mapped in the VRMA and so would
      otherwise require an hcall per 8 bytes access.
      
      The performance is still not great but usable, and can be improved
      with a more complex implementation of the hcall itself if needed.
      
      This also adds some documentation for the qemu-specific hypercalls
      that we add to PAPR along with a new qemu,hypertas-functions property
      that mirrors ibm,hypertas-functions and provides some discoverability
      for the new calls.
      
      Note: I chose note to advertise H_RTAS to the guest via that mechanism.
      This is done on purpose, the guest uses the normal RTAS interfaces
      provided by qemu (including SLOF) which internally calls H_RTAS.
      
      We might in the future implement part (or even all) of RTAS inside the
      guest like IBM's firmware does and replace H_RTAS with some finer grained
      set of private hypercalls.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      c73e3771
  9. 30 5月, 2012 1 次提交
  10. 03 5月, 2012 1 次提交
  11. 20 4月, 2012 1 次提交
    • K
      Specification for qcow2 version 3 · 4fabffc1
      Kevin Wolf 提交于
      This updates the qcow2 specification to cover version 3. It contains the
      following changes:
      
      - Added compatible/incompatible/auto-clear feature bits plus an optional
        feature name table to allow useful error messages even if an older
        version doesn't know some feature at all.
      
      - Configurable refcount width. If you don't want to use internal
        snapshots, make refcounts one bit and save cache space and I/O.
      
      - Zero cluster flags. This allows discard even with a backing file that
        doesn't contain zeros. It is also useful for copy-on-read/image
        streaming, as you'll want to keep sparseness without accessing the
        remote image for an unallocated cluster all the time.
      
      - Fixed internal snapshot metadata to use 64 bit VM state size. You
        can't save a snapshot of a VM with >= 4 GB RAM today.
      
      - Extended internal snapshot metadata to contain the disk size, so that
        resizing images that have snapshots can be allowed in the future.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      4fabffc1
  12. 15 4月, 2012 3 次提交
  13. 07 4月, 2012 1 次提交
  14. 27 3月, 2012 1 次提交
    • P
      qapi: untangle next_list · 3a86a0fa
      Paolo Bonzini 提交于
      Right now, the semantics of next_list are complicated.  The caller must:
      
      * call start_list
      
      * call next_list for each element *including the first*
      
      * on the first call to next_list, the second argument should point to
      NULL and the result is the head of the list.  On subsequent calls,
      the second argument should point to the last node (last result of
      next_list) and next_list itself tacks the element at the tail of the
      list.
      
      This works for both input and output visitor, but having the visitor
      write memory when it is only reading the list is ugly.  Plus, relying
      on *list to detect the first call is tricky and undocumented.
      
      We can initialize so->entry in next_list instead of start_list, leaving
      it NULL in start_list.  This way next_list sees clearly whether it is
      on the first call---as a bonus, it discriminates the cases based on
      internal state of the visitor rather than external state.  We can
      also pull the assignment of the list head from generated code up to
      next_list.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      3a86a0fa
  15. 20 3月, 2012 1 次提交
    • S
      Introduce "xen-save-devices-state" · a7ae8355
      Stefano Stabellini 提交于
      - add an "is_ram" flag to SaveStateEntry;
      
      - register_savevm_live sets is_ram for live_savevm devices;
      
      - introduce a "xen-save-devices-state" QAPI command that can be used to save
      the state of all devices, but not the RAM or the block devices of the
      VM.
      
      Changes in v8:
      
      - rename save-devices-state to xen-save-devices-state.
      
      Changes in v7:
      
      - rename save_devices to save-devices-state.
      
      Changes in v6:
      
      - remove the is_ram parameter from register_savevm_live and sets is_ram
      if the device is a live_savevm device;
      
      - introduce save_devices as a QAPI command, write a better description
      for it;
      
      - fix CODING_STYLE;
      
      - introduce a new doc to explain the save format used by save_devices.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Reviewed-by: NAnthony Liguori <aliguori@us.ibm.com>
      Acked-by: NLuiz Capitulino <lcapitulino@redhat.com>
      a7ae8355
  16. 12 3月, 2012 2 次提交
  17. 08 3月, 2012 1 次提交
  18. 26 1月, 2012 1 次提交
  19. 13 1月, 2012 1 次提交
  20. 15 12月, 2011 1 次提交
  21. 08 12月, 2011 1 次提交
  22. 06 12月, 2011 2 次提交
  23. 17 11月, 2011 3 次提交
  24. 01 11月, 2011 2 次提交
  25. 29 10月, 2011 1 次提交
  26. 21 9月, 2011 2 次提交
  27. 17 9月, 2011 1 次提交
    • S
      trace: allow PRI*64 at beginning and ending of format string · 913540a3
      Stefan Hajnoczi 提交于
      The tracetool parser only picks up PRI*64 and other format string macros
      when enclosed between double quoted strings.  Lift this restriction by
      extracting everything after the closing ')' as the format string:
      
        cpu_set_apic_base(uint64_t val) "%016"PRIx64
                                        ^^        ^^
      
      One trick here: it turns out that backslashes in the format string like
      "\n" were being interpreted by echo(1).  Fix this by using the POSIX
      printf(1) command instead.  Although it normally does not make sense to
      include backslashes in trace event format strings, an injected newline
      causes tracetool to emit a broken header file and I want to eliminate
      cases where broken output is emitted, even if the input was bad.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      913540a3
  28. 09 9月, 2011 1 次提交
  29. 01 9月, 2011 3 次提交