1. 27 6月, 2022 3 次提交
  2. 10 6月, 2022 1 次提交
    • D
      spi: Fix per-cpu stats access on 32 bit systems · 67b9d641
      David Jander 提交于
      On 32 bit systems, the following kernel BUG is hit:
      
      BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1
      caller is debug_smp_processor_id+0x18/0x24
      CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.19.0-rc1-00001-g6ae0aec8a366 #181
      Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
      Backtrace:
       dump_backtrace from show_stack+0x20/0x24
       r7:81024ffd r6:00000000 r5:81024ffd r4:60000013
       show_stack from dump_stack_lvl+0x60/0x78
       dump_stack_lvl from dump_stack+0x14/0x1c
       r7:81024ffd r6:80f652de r5:80bec180 r4:819a2500
       dump_stack from check_preemption_disabled+0xc8/0xf0
       check_preemption_disabled from debug_smp_processor_id+0x18/0x24
       r8:8119b7e0 r7:81205534 r6:819f5c00 r5:819f4c00 r4:c083d724
       debug_smp_processor_id from __spi_sync+0x78/0x220
       __spi_sync from spi_sync+0x34/0x4c
       r10:bb7bf4e0 r9:c083d724 r8:00000007 r7:81a068c0 r6:822a83c0 r5:c083d724
       r4:819f4c00
       spi_sync from spi_mem_exec_op+0x338/0x370
       r5:000000b4 r4:c083d910
       spi_mem_exec_op from spi_nor_read_id+0x98/0xdc
       r10:bb7bf4e0 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:82358040
       r4:819f7c40
       spi_nor_read_id from spi_nor_detect+0x38/0x114
       r7:82358040 r6:00000000 r5:819f7c40 r4:819f7c40
       spi_nor_detect from spi_nor_scan+0x11c/0xbec
       r10:bb7bf4e0 r9:00000000 r8:00000000 r7:c083da4c r6:00000000 r5:00010101
       r4:819f7c40
       spi_nor_scan from spi_nor_probe+0x10c/0x2d0
       r10:bb7bf4e0 r9:bb7bf4d0 r8:00000000 r7:819f4c00 r6:00000000 r5:00000000
       r4:819f7c40
      
      per-cpu access needs to be guarded against preemption.
      
      Fixes: 6598b91b ("spi: spi.c: Convert statistics to per-cpu u64_stats_t")
      Reported-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      Signed-off-by: NDavid Jander <david@protonic.nl>
      Tested-by: NNícolas F. R. A. Prado <nfraprado@collabora.com>
      Link: https://lore.kernel.org/r/20220609121334.2984808-1-david@protonic.nlSigned-off-by: NMark Brown <broonie@kernel.org>
      67b9d641
  3. 09 6月, 2022 1 次提交
  4. 06 6月, 2022 2 次提交
  5. 03 6月, 2022 7 次提交
    • K
      nodemask: Fix return values to be unsigned · 0dfe5407
      Kees Cook 提交于
      The nodemask routines had mixed return values that provided potentially
      signed return values that could never happen. This was leading to the
      compiler getting confusing about the range of possible return values
      (it was thinking things could be negative where they could not be). Fix
      all the nodemask routines that should be returning unsigned
      (or bool) values. Silences:
      
       mm/swapfile.c: In function ‘setup_swap_info’:
       mm/swapfile.c:2291:47: error: array subscript -1 is below array bounds of ‘struct plist_node[]’ [-Werror=array-bounds]
        2291 |                                 p->avail_lists[i].prio = 1;
             |                                 ~~~~~~~~~~~~~~^~~
       In file included from mm/swapfile.c:16:
       ./include/linux/swap.h:292:27: note: while referencing ‘avail_lists’
         292 |         struct plist_node avail_lists[]; /*
             |                           ^~~~~~~~~~~
      Reported-by: NChristophe de Dinechin <dinechin@redhat.com>
      Link: https://lore.kernel.org/lkml/20220414150855.2407137-3-dinechin@redhat.com/
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: Yury Norov <yury.norov@gmail.com>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Zhen Lei <thunder.leizhen@huawei.com>
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NYury Norov <yury.norov@gmail.com>
      0dfe5407
    • K
      bitmap: Fix return values to be unsigned · 005f1700
      Kees Cook 提交于
      Both nodemask and bitmap routines had mixed return values that provided
      potentially signed return values that could never happen. This was
      leading to the compiler getting confusing about the range of possible
      return values (it was thinking things could be negative where they could
      not be). In preparation for fixing nodemask, fix all the bitmap routines
      that should be returning unsigned (or bool) values.
      
      Cc: Yury Norov <yury.norov@gmail.com>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Christophe de Dinechin <dinechin@redhat.com>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Zhen Lei <thunder.leizhen@huawei.com>
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NYury Norov <yury.norov@gmail.com>
      005f1700
    • Y
      lib: add bitmap_{from,to}_arr64 · 0a97953f
      Yury Norov 提交于
      Manipulating 64-bit arrays with bitmap functions is potentially dangerous
      because on 32-bit BE machines the order of halfwords doesn't match.
      Another issue is that compiler may throw a warning about out-of-boundary
      access.
      
      This patch adds bitmap_{from,to}_arr64 functions in addition to existing
      bitmap_{from,to}_arr32.
      
      CC: Alexander Gordeev <agordeev@linux.ibm.com>
      CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      CC: Christian Borntraeger <borntraeger@linux.ibm.com>
      CC: Claudio Imbrenda <imbrenda@linux.ibm.com>
      CC: David Hildenbrand <david@redhat.com>
      CC: Heiko Carstens <hca@linux.ibm.com>
      CC: Janosch Frank <frankja@linux.ibm.com>
      CC: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      CC: Sven Schnelle <svens@linux.ibm.com>
      CC: Vasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: NYury Norov <yury.norov@gmail.com>
      0a97953f
    • Y
      lib/bitmap: extend comment for bitmap_(from,to)_arr32() · e041e0ac
      Yury Norov 提交于
      On LE systems bitmaps are naturally ordered, therefore we can potentially
      use bitmap_copy routines when converting from 32-bit arrays, even if host
      system is 64-bit. But it may lead to out-of-bond access due to unsafe
      typecast, and the bitmap_(from,to)_arr32 comment doesn't explain that
      clearly
      
      CC: Alexander Gordeev <agordeev@linux.ibm.com>
      CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
      CC: Christian Borntraeger <borntraeger@linux.ibm.com>
      CC: Claudio Imbrenda <imbrenda@linux.ibm.com>
      CC: David Hildenbrand <david@redhat.com>
      CC: Heiko Carstens <hca@linux.ibm.com>
      CC: Janosch Frank <frankja@linux.ibm.com>
      CC: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      CC: Sven Schnelle <svens@linux.ibm.com>
      CC: Vasily Gorbik <gor@linux.ibm.com>
      Signed-off-by: NYury Norov <yury.norov@gmail.com>
      e041e0ac
    • A
      include/linux/find: Fix documentation · 6d7131bd
      Anna-Maria Behnsen 提交于
      The order of the arguments in function documentation doesn't fit the
      implementation. Change the documentation so that it corresponds to the
      code. This prevent people to get confused when reading the documentation.
      Signed-off-by: NAnna-Maria Behnsen <anna-maria@linutronix.de>
      Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NYury Norov <yury.norov@gmail.com>
      6d7131bd
    • H
      LoongArch: Add multi-processor (SMP) support · 46859ac8
      Huacai Chen 提交于
      LoongArch-based procesors have 4, 8 or 16 cores per package. This patch
      adds multi-processor (SMP) support for LoongArch.
      Reviewed-by: NWANG Xuerui <git@xen0n.name>
      Reviewed-by: NJiaxun Yang <jiaxun.yang@flygoat.com>
      Signed-off-by: NHuacai Chen <chenhuacai@loongson.cn>
      46859ac8
    • E
      net: add debug info to __skb_pull() · 22296a5c
      Eric Dumazet 提交于
      While analyzing yet another syzbot report, I found the following
      patch very useful. It allows to better understand what went wrong.
      
      This debug info is only enabled if CONFIG_DEBUG_NET=y,
      which is the case for syzbot builds.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Acked-by: NWillem de Bruijn <willemb@google.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      22296a5c
  6. 02 6月, 2022 1 次提交
  7. 01 6月, 2022 16 次提交
    • M
      gpu: host1x: Add context bus · 597b89d3
      Mikko Perttunen 提交于
      The context bus is a "dummy" bus that contains struct devices that
      correspond to IOMMU contexts assigned through Host1x to processes.
      
      Even when host1x itself is built as a module, the bus is registered
      in built-in code so that the built-in ARM SMMU driver is able to
      reference it.
      Signed-off-by: NMikko Perttunen <mperttunen@nvidia.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      597b89d3
    • O
      NFSv4.1 mark qualified async operations as MOVEABLE tasks · 118f09ed
      Olga Kornievskaia 提交于
      Mark async operations such as RENAME, REMOVE, COMMIT MOVEABLE
      for the nfsv4.1+ sessions.
      
      Fixes: 85e39fee ("NFSv4.1 identify and mark RPC tasks that can move between transports")
      Signed-off-by: NOlga Kornievskaia <kolga@netapp.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      118f09ed
    • B
      NFSv4: Fix free of uninitialized nfs4_label on referral lookup. · c3ed2227
      Benjamin Coddington 提交于
      Send along the already-allocated fattr along with nfs4_fs_locations, and
      drop the memcpy of fattr.  We end up growing two more allocations, but this
      fixes up a crash as:
      
      PID: 790    TASK: ffff88811b43c000  CPU: 0   COMMAND: "ls"
       #0 [ffffc90000857920] panic at ffffffff81b9bfde
       #1 [ffffc900008579c0] do_trap at ffffffff81023a9b
       #2 [ffffc90000857a10] do_error_trap at ffffffff81023b78
       #3 [ffffc90000857a58] exc_stack_segment at ffffffff81be1f45
       #4 [ffffc90000857a80] asm_exc_stack_segment at ffffffff81c009de
       #5 [ffffc90000857b08] nfs_lookup at ffffffffa0302322 [nfs]
       #6 [ffffc90000857b70] __lookup_slow at ffffffff813a4a5f
       #7 [ffffc90000857c60] walk_component at ffffffff813a86c4
       #8 [ffffc90000857cb8] path_lookupat at ffffffff813a9553
       #9 [ffffc90000857cf0] filename_lookup at ffffffff813ab86b
      Suggested-by: NTrond Myklebust <trondmy@hammerspace.com>
      Fixes: 9558a007 ("NFS: Remove the label from the nfs4_lookup_res struct")
      Signed-off-by: NBenjamin Coddington <bcodding@redhat.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      c3ed2227
    • C
      net/mlx5: correct ECE offset in query qp output · 3fc2a9e8
      Changcheng Liu 提交于
      ECE field should be after opt_param_mask in query qp output.
      
      Fixes: 6b646a7e ("net/mlx5: Add ability to read and write ECE options")
      Signed-off-by: NChangcheng Liu <jerrliu@nvidia.com>
      Signed-off-by: NSaeed Mahameed <saeedm@nvidia.com>
      3fc2a9e8
    • J
      virtio: use WARN_ON() to warning illegal status value · 619e9e14
      Jason Wang 提交于
      We used to use BUG_ON() in virtio_device_ready() to detect illegal
      status value, this seems sub-optimal since the value is under the
      control of the device. Switch to use WARN_ON() instead.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: "Paul E. McKenney" <paulmck@kernel.org>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Halil Pasic <pasic@linux.ibm.com>
      Cc: Cornelia Huck <cohuck@redhat.com>
      Cc: Vineeth Vijayan <vneethv@linux.ibm.com>
      Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
      Cc: linux-s390@vger.kernel.org
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Message-Id: <20220527060120.20964-10-jasowang@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NXuan Zhuo <xuanzhuo@linux.alibaba.com>
      619e9e14
    • J
      virtio: harden vring IRQ · 8b4ec69d
      Jason Wang 提交于
      This is a rework on the previous IRQ hardening that is done for
      virtio-pci where several drawbacks were found and were reverted:
      
      1) try to use IRQF_NO_AUTOEN which is not friendly to affinity managed IRQ
         that is used by some device such as virtio-blk
      2) done only for PCI transport
      
      The vq->broken is re-used in this patch for implementing the IRQ
      hardening. The vq->broken is set to true during both initialization
      and reset. And the vq->broken is set to false in
      virtio_device_ready(). Then vring_interrupt() can check and return
      when vq->broken is true. And in this case, switch to return IRQ_NONE
      to let the interrupt core aware of such invalid interrupt to prevent
      IRQ storm.
      
      The reason of using a per queue variable instead of a per device one
      is that we may need it for per queue reset hardening in the future.
      
      Note that the hardening is only done for vring interrupt since the
      config interrupt hardening is already done in commit 22b7050a
      ("virtio: defer config changed notifications"). But the method that is
      used by config interrupt can't be reused by the vring interrupt
      handler because it uses spinlock to do the synchronization which is
      expensive.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: "Paul E. McKenney" <paulmck@kernel.org>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Halil Pasic <pasic@linux.ibm.com>
      Cc: Cornelia Huck <cohuck@redhat.com>
      Cc: Vineeth Vijayan <vneethv@linux.ibm.com>
      Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
      Cc: linux-s390@vger.kernel.org
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Message-Id: <20220527060120.20964-9-jasowang@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NXuan Zhuo <xuanzhuo@linux.alibaba.com>
      8b4ec69d
    • J
      virtio: allow to unbreak virtqueue · be83f04d
      Jason Wang 提交于
      This patch allows the new introduced __virtio_break_device() to
      unbreak the virtqueue.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: "Paul E. McKenney" <paulmck@kernel.org>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Halil Pasic <pasic@linux.ibm.com>
      Cc: Cornelia Huck <cohuck@redhat.com>
      Cc: Vineeth Vijayan <vneethv@linux.ibm.com>
      Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
      Cc: linux-s390@vger.kernel.org
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Message-Id: <20220527060120.20964-8-jasowang@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NXuan Zhuo <xuanzhuo@linux.alibaba.com>
      be83f04d
    • J
      virtio: introduce config op to synchronize vring callbacks · 48b69959
      Jason Wang 提交于
      This patch introduces new virtio config op to vring
      callbacks. Transport specific method is required to make sure the
      write before this function is visible to the vring_interrupt() that is
      called after the return of this function. For the transport that
      doesn't provide synchronize_vqs(), use synchornize_rcu() which
      synchronize with IRQ implicitly as a fallback.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: "Paul E. McKenney" <paulmck@kernel.org>
      Cc: Marc Zyngier <maz@kernel.org>
      Cc: Halil Pasic <pasic@linux.ibm.com>
      Cc: Cornelia Huck <cohuck@redhat.com>
      Cc: Vineeth Vijayan <vneethv@linux.ibm.com>
      Cc: Peter Oberparleiter <oberpar@linux.ibm.com>
      Cc: linux-s390@vger.kernel.org
      Reviewed-by: NCornelia Huck <cohuck@redhat.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Message-Id: <20220527060120.20964-4-jasowang@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NXuan Zhuo <xuanzhuo@linux.alibaba.com>
      Reviewed-by: NStefano Garzarella <sgarzare@redhat.com>
      48b69959
    • C
      vdpa/vp_vdpa : add vdpa tool support in vp_vdpa · ffbda8e9
      Cindy Lu 提交于
      this patch is to add the support for vdpa tool in vp_vdpa
      here is the example steps
      
      modprobe vp_vdpa
      modprobe vhost_vdpa
      echo 0000:00:06.0>/sys/bus/pci/drivers/virtio-pci/unbind
      echo 1af4 1041 > /sys/bus/pci/drivers/vp-vdpa/new_id
      
      vdpa dev add name vdpa1 mgmtdev pci/0000:00:06.0
      Signed-off-by: NCindy Lu <lulu@redhat.com>
      Message-Id: <20220429091030.547434-1-lulu@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Acked-by: NJason Wang <jasowang@redhat.com>
      ffbda8e9
    • G
      vhost_iotlb: split out IOTLB initialization · 1cb10899
      Gautam Dawar 提交于
      This patch splits out IOTLB initialization to make sure it could be
      reused by external modules.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NGautam Dawar <gdawar@xilinx.com>
      Message-Id: <20220330180436.24644-9-gdawar@xilinx.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      1cb10899
    • G
      vdpa: introduce config operations for associating ASID to a virtqueue group · 46d554b1
      Gautam Dawar 提交于
      This patch introduces a new bus operation to allow the vDPA bus driver
      to associate an ASID to a virtqueue group.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NGautam Dawar <gdawar@xilinx.com>
      Message-Id: <20220330180436.24644-8-gdawar@xilinx.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      46d554b1
    • G
      vdpa: multiple address spaces support · db9adcbf
      Gautam Dawar 提交于
      This patches introduces the multiple address spaces support for vDPA
      device. This idea is to identify a specific address space via an
      dedicated identifier - ASID.
      
      During vDPA device allocation, vDPA device driver needs to report the
      number of address spaces supported by the device then the DMA mapping
      ops of the vDPA device needs to be extended to support ASID.
      
      This helps to isolate the environments for the virtqueue that will not
      be assigned directly. E.g in the case of virtio-net, the control
      virtqueue will not be assigned directly to guest.
      
      As a start, simply claim 1 virtqueue groups and 1 address spaces for
      all vDPA devices. And vhost-vDPA will simply reject the device with
      more than 1 virtqueue groups or address spaces.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NGautam Dawar <gdawar@xilinx.com>
      Message-Id: <20220330180436.24644-7-gdawar@xilinx.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      db9adcbf
    • G
      vdpa: introduce virtqueue groups · d4821902
      Gautam Dawar 提交于
      This patch introduces virtqueue groups to vDPA device. The virtqueue
      group is the minimal set of virtqueues that must share an address
      space. And the address space identifier could only be attached to
      a specific virtqueue group.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      Signed-off-by: NGautam Dawar <gdawar@xilinx.com>
      Message-Id: <20220330180436.24644-6-gdawar@xilinx.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      d4821902
    • E
      vdpa/mlx5: Add support for reading descriptor statistics · 1892a3d4
      Eli Cohen 提交于
      Implement the get_vq_stats calback of vdpa_config_ops to return the
      statistics for a virtqueue.
      
      The statistics are provided as vendor specific statistics where the
      driver provides a pair of attribute name and attribute value.
      
      Currently supported are received descriptors and completed descriptors.
      Signed-off-by: NEli Cohen <elic@nvidia.com>
      Message-Id: <20220518133804.1075129-6-elic@nvidia.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      1892a3d4
    • E
      net/vdpa: Use readers/writers semaphore instead of cf_mutex · a6a51adc
      Eli Cohen 提交于
      Replace cf_mutex with rw_semaphore to reflect the fact that some calls
      could be called concurrently but can suffice with read lock.
      Suggested-by: NSi-Wei Liu <si-wei.liu@oracle.com>
      Signed-off-by: NEli Cohen <elic@nvidia.com>
      Message-Id: <20220518133804.1075129-5-elic@nvidia.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      a6a51adc
    • E
      vdpa: Add support for querying vendor statistics · 13b00b13
      Eli Cohen 提交于
      Allows to read vendor statistics of a vdpa device. The specific
      statistics data are received from the upstream driver in the form of an
      (attribute name, attribute value) pairs.
      
      An example of statistics for mlx5_vdpa device are:
      
      received_desc - number of descriptors received by the virtqueue
      completed_desc - number of descriptors completed by the virtqueue
      
      A descriptor using indirect buffers is still counted as 1. In addition,
      N chained descriptors are counted correctly N times as one would expect.
      
      A new callback was added to vdpa_config_ops which provides the means for
      the vdpa driver to return statistics results.
      
      The interface allows for reading all the supported virtqueues, including
      the control virtqueue if it exists.
      
      Below are some examples taken from mlx5_vdpa which are introduced in the
      following patch:
      
      1. Read statistics for the virtqueue at index 1
      
      $ vdpa dev vstats show vdpa-a qidx 1
      vdpa-a:
      queue_type tx queue_index 1 received_desc 3844836 completed_desc 3844836
      
      2. Read statistics for the virtqueue at index 32
      $ vdpa dev vstats show vdpa-a qidx 32
      vdpa-a:
      queue_type control_vq queue_index 32 received_desc 62 completed_desc 62
      
      3. Read statisitics for the virtqueue at index 0 with json output
      $ vdpa -j dev vstats show vdpa-a qidx 0
      {"vstats":{"vdpa-a":{
      "queue_type":"rx","queue_index":0,"name":"received_desc","value":417776,\
       "name":"completed_desc","value":417548}}}
      
      4. Read statistics for the virtqueue at index 0 with preety json output
      $ vdpa -jp dev vstats show vdpa-a qidx 0
      {
          "vstats": {
              "vdpa-a": {
      
                  "queue_type": "rx",
                  "queue_index": 0,
                  "name": "received_desc",
                  "value": 417776,
                  "name": "completed_desc",
                  "value": 417548
              }
          }
      }
      Signed-off-by: NEli Cohen <elic@nvidia.com>
      Message-Id: <20220518133804.1075129-3-elic@nvidia.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      13b00b13
  8. 31 5月, 2022 1 次提交
  9. 28 5月, 2022 4 次提交
  10. 27 5月, 2022 4 次提交