1. 12 2月, 2015 1 次提交
  2. 24 1月, 2015 1 次提交
  3. 05 1月, 2015 1 次提交
  4. 10 12月, 2014 1 次提交
  5. 12 11月, 2014 1 次提交
  6. 23 10月, 2014 2 次提交
  7. 20 10月, 2014 3 次提交
  8. 30 9月, 2014 8 次提交
  9. 24 9月, 2014 1 次提交
  10. 23 9月, 2014 5 次提交
  11. 22 9月, 2014 2 次提交
  12. 10 9月, 2014 1 次提交
    • B
      block: Extract the block accounting code · 5e5a94b6
      Benoît Canet 提交于
      The plan is to add new accounting metrics (latency, invalid requests, failed
      requests, queue depth) and block.c is overpopulated so it will be better to work
      in a separate module.
      
      Moreover the long term plan is to have statistics in each of the BDS of the graph
      for metrology purpose; this means that the device model statistics must move from
      the topmost BDS to the device model.
      
      So we need to decouple the statistic code from BlockDriverState.
      
      This is another argument for the extraction of the code in a separate module.
      
      CC: Kevin Wolf <kwolf@redhat.com>
      CC: Stefan Hajnoczi <stefanha@redhat.com>
      CC: Max Reitz <mreitz@redhat.com>
      CC: Eric Blake <eblake@redhat.com>
      CC: Benoit Canet <benoit@irqsave.net>
      CC: Fam Zheng <famz@redhat.com>
      CC: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
      CC: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NBenoît Canet <benoit.canet@nodalink.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      5e5a94b6
  13. 19 8月, 2014 1 次提交
  14. 09 8月, 2014 1 次提交
  15. 14 7月, 2014 3 次提交
  16. 06 7月, 2014 1 次提交
  17. 01 7月, 2014 4 次提交
  18. 30 6月, 2014 3 次提交
    • G
      virtio: memory accessors for endian-ambivalent targets · 0f5d1d2a
      Greg Kurz 提交于
      This is the virtio-access.h header file taken from Rusty's "endian-ambivalent
      targets using legacy virtio" patch. It introduces helpers that should be used
      when accessing vring data or by drivers for data that contains headers.
      The virtio config space is also target endian, but the current code already
      handles that with the virtio_is_big_endian() helper. There is no obvious
      benefit at using the virtio accessors in this case.
      
      Now we have two distinct paths: a fast inline one for fixed endian targets,
      and a slow out-of-line one for targets that define the new TARGET_IS_BIENDIAN
      macro.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      [ relicensed virtio-access.h to GPLv2+ on Rusty's request,
        pass &address_space_memory to physical memory accessors,
        per-device endianness,
        virtio tswap16 and tswap64 helpers,
        faspath for fixed endian targets,
        Greg Kurz <gkurz@linux.vnet.ibm.com> ]
      Cc: Cédric Le Goater <clg@fr.ibm.com>
      Signed-off-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Reviewed-by: NAlexander Graf <agraf@suse.de>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      0f5d1d2a
    • G
      virtio: add endian-ambivalent support to VirtIODevice · 616a6552
      Greg Kurz 提交于
      Some CPU families can dynamically change their endianness. This means we
      can have little endian ppc or big endian arm guests for example. This has
      an impact on legacy virtio data structures since they are target endian.
      We hence introduce a new property to track the endianness of each virtio
      device. It is reasonnably assumed that endianness won't change while the
      device is in use : we hence capture the device endianness when it gets
      reset.
      
      We migrate this property in a subsection, after the device descriptor. This
      means the load code must not rely on it until it is restored. As a consequence,
      the vring sanity checks had to be moved after the call to vmstate_load_state().
      We enforce paranoia by poisoning the property at the begining of virtio_load().
      Signed-off-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      616a6552
    • G
      exec: introduce target_words_bigendian() helper · 98ed8ecf
      Greg Kurz 提交于
      We currently have a virtio_is_big_endian() helper that provides the target
      endianness to the virtio code. As of today, the helper returns a fixed
      compile-time value. Of course, this will have to change if we want to
      support target endianness changes at run-time.
      
      Let's move the TARGET_WORDS_BIGENDIAN bits out to a new helper and have
      virtio_is_big_endian() implemented on top of it.
      
      This patch doesn't change any functionality.
      Signed-off-by: NGreg Kurz <gkurz@linux.vnet.ibm.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      98ed8ecf