All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL 0/5] Trivial branch for 7.1 patches
@ 2022-04-26 12:46 Laurent Vivier
  2022-04-26 12:46 ` [PULL 1/5] hw/pvrdma: Some cosmetic fixes Laurent Vivier
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Laurent Vivier @ 2022-04-26 12:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Laurent Vivier

The following changes since commit a1755db71e34df016ffc10aa0727360aae2c6036:

  Merge tag 'pull-block-2022-04-25' of https://gitlab.com/hreitz/qemu into staging (2022-04-25 13:35:41 -0700)

are available in the Git repository at:

  https://gitlab.com/laurent_vivier/qemu.git tags/trivial-branch-for-7.1-pull-request

for you to fetch changes up to 4a89bf188a318592324769bd2bda95172c9a7091:

  docs: Replace HomeBrew -> Homebrew (2022-04-26 12:40:36 +0200)

----------------------------------------------------------------
Pull request trivial patches 20220426

----------------------------------------------------------------

Eugenio Pérez (1):
  vdpa: Add missing tracing to batch mapping functions

Stefan Weil (2):
  docs: Replace Qemu -> QEMU
  docs: Replace HomeBrew -> Homebrew

Thomas Huth (1):
  target/mips: Remove stale TODO file

Yuval Shaia (1):
  hw/pvrdma: Some cosmetic fixes

 docs/about/build-platforms.rst |  4 +--
 docs/pcie_sriov.txt            |  6 ++--
 hw/rdma/vmw/pvrdma_main.c      |  9 +++---
 hw/virtio/trace-events         |  2 ++
 hw/virtio/vhost-vdpa.c         |  2 ++
 target/mips/TODO               | 51 ----------------------------------
 6 files changed, 14 insertions(+), 60 deletions(-)
 delete mode 100644 target/mips/TODO

-- 
2.35.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PULL 1/5] hw/pvrdma: Some cosmetic fixes
  2022-04-26 12:46 [PULL 0/5] Trivial branch for 7.1 patches Laurent Vivier
@ 2022-04-26 12:46 ` Laurent Vivier
  2022-04-26 12:46 ` [PULL 2/5] vdpa: Add missing tracing to batch mapping functions Laurent Vivier
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Laurent Vivier @ 2022-04-26 12:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Yuval Shaia, Laurent Vivier

From: Yuval Shaia <yuval.shaia.ml@gmail.com>

Signed-off-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <20220403095837.2378-1-yuval.shaia.ml@gmail.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/rdma/vmw/pvrdma_main.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/hw/rdma/vmw/pvrdma_main.c b/hw/rdma/vmw/pvrdma_main.c
index 27a76224320e..58db0b8e3bb9 100644
--- a/hw/rdma/vmw/pvrdma_main.c
+++ b/hw/rdma/vmw/pvrdma_main.c
@@ -159,13 +159,13 @@ static void free_dsr(PVRDMADev *dev)
     free_dev_ring(pci_dev, &dev->dsr_info.cq, dev->dsr_info.cq_ring_state);
 
     rdma_pci_dma_unmap(pci_dev, dev->dsr_info.req,
-                         sizeof(union pvrdma_cmd_req));
+                       sizeof(union pvrdma_cmd_req));
 
     rdma_pci_dma_unmap(pci_dev, dev->dsr_info.rsp,
-                         sizeof(union pvrdma_cmd_resp));
+                       sizeof(union pvrdma_cmd_resp));
 
     rdma_pci_dma_unmap(pci_dev, dev->dsr_info.dsr,
-                         sizeof(struct pvrdma_device_shared_region));
+                       sizeof(struct pvrdma_device_shared_region));
 
     dev->dsr_info.dsr = NULL;
 }
@@ -249,7 +249,8 @@ static void init_dsr_dev_caps(PVRDMADev *dev)
 {
     struct pvrdma_device_shared_region *dsr;
 
-    if (dev->dsr_info.dsr == NULL) {
+    if (!dev->dsr_info.dsr) {
+        /* Buggy or malicious guest driver */
         rdma_error_report("Can't initialized DSR");
         return;
     }
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PULL 2/5] vdpa: Add missing tracing to batch mapping functions
  2022-04-26 12:46 [PULL 0/5] Trivial branch for 7.1 patches Laurent Vivier
  2022-04-26 12:46 ` [PULL 1/5] hw/pvrdma: Some cosmetic fixes Laurent Vivier
@ 2022-04-26 12:46 ` Laurent Vivier
  2022-04-26 12:46 ` [PULL 3/5] target/mips: Remove stale TODO file Laurent Vivier
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Laurent Vivier @ 2022-04-26 12:46 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, qemu-trivial, Jason Wang, Laurent Vivier,
	Eugenio Pérez, Stefano Garzarella

From: Eugenio Pérez <eperezma@redhat.com>

These functions were not traced properly.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220405063628.853745-1-eperezma@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 hw/virtio/trace-events | 2 ++
 hw/virtio/vhost-vdpa.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/hw/virtio/trace-events b/hw/virtio/trace-events
index a5102eac9e57..333348d9d5d0 100644
--- a/hw/virtio/trace-events
+++ b/hw/virtio/trace-events
@@ -25,6 +25,8 @@ vhost_user_postcopy_waker_nomatch(const char *rb, uint64_t rb_offset) "%s + 0x%"
 # vhost-vdpa.c
 vhost_vdpa_dma_map(void *vdpa, int fd, uint32_t msg_type, uint64_t iova, uint64_t size, uint64_t uaddr, uint8_t perm, uint8_t type) "vdpa:%p fd: %d msg_type: %"PRIu32" iova: 0x%"PRIx64" size: 0x%"PRIx64" uaddr: 0x%"PRIx64" perm: 0x%"PRIx8" type: %"PRIu8
 vhost_vdpa_dma_unmap(void *vdpa, int fd, uint32_t msg_type, uint64_t iova, uint64_t size, uint8_t type) "vdpa:%p fd: %d msg_type: %"PRIu32" iova: 0x%"PRIx64" size: 0x%"PRIx64" type: %"PRIu8
+vhost_vdpa_listener_begin_batch(void *v, int fd, uint32_t msg_type, uint8_t type)  "vdpa:%p fd: %d msg_type: %"PRIu32" type: %"PRIu8
+vhost_vdpa_listener_commit(void *v, int fd, uint32_t msg_type, uint8_t type)  "vdpa:%p fd: %d msg_type: %"PRIu32" type: %"PRIu8
 vhost_vdpa_listener_region_add(void *vdpa, uint64_t iova, uint64_t llend, void *vaddr, bool readonly) "vdpa: %p iova 0x%"PRIx64" llend 0x%"PRIx64" vaddr: %p read-only: %d"
 vhost_vdpa_listener_region_del(void *vdpa, uint64_t iova, uint64_t llend) "vdpa: %p iova 0x%"PRIx64" llend 0x%"PRIx64
 vhost_vdpa_add_status(void *dev, uint8_t status) "dev: %p status: 0x%"PRIx8
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
index b57be529c7eb..a30510ed17e4 100644
--- a/hw/virtio/vhost-vdpa.c
+++ b/hw/virtio/vhost-vdpa.c
@@ -129,6 +129,7 @@ static void vhost_vdpa_listener_begin_batch(struct vhost_vdpa *v)
         .iotlb.type = VHOST_IOTLB_BATCH_BEGIN,
     };
 
+    trace_vhost_vdpa_listener_begin_batch(v, fd, msg.type, msg.iotlb.type);
     if (write(fd, &msg, sizeof(msg)) != sizeof(msg)) {
         error_report("failed to write, fd=%d, errno=%d (%s)",
                      fd, errno, strerror(errno));
@@ -163,6 +164,7 @@ static void vhost_vdpa_listener_commit(MemoryListener *listener)
     msg.type = v->msg_type;
     msg.iotlb.type = VHOST_IOTLB_BATCH_END;
 
+    trace_vhost_vdpa_listener_commit(v, fd, msg.type, msg.iotlb.type);
     if (write(fd, &msg, sizeof(msg)) != sizeof(msg)) {
         error_report("failed to write, fd=%d, errno=%d (%s)",
                      fd, errno, strerror(errno));
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PULL 3/5] target/mips: Remove stale TODO file
  2022-04-26 12:46 [PULL 0/5] Trivial branch for 7.1 patches Laurent Vivier
  2022-04-26 12:46 ` [PULL 1/5] hw/pvrdma: Some cosmetic fixes Laurent Vivier
  2022-04-26 12:46 ` [PULL 2/5] vdpa: Add missing tracing to batch mapping functions Laurent Vivier
@ 2022-04-26 12:46 ` Laurent Vivier
  2022-04-26 12:46 ` [PULL 4/5] docs: Replace Qemu -> QEMU Laurent Vivier
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Laurent Vivier @ 2022-04-26 12:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Thomas Huth, Richard Henderson, Laurent Vivier

From: Thomas Huth <thuth@redhat.com>

The last change to this file has been done in 2012, so it
seems like this is not really used anymore, and the content
is likely very out of date now.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220412113824.297108-1-thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 target/mips/TODO | 51 ------------------------------------------------
 1 file changed, 51 deletions(-)
 delete mode 100644 target/mips/TODO

diff --git a/target/mips/TODO b/target/mips/TODO
deleted file mode 100644
index 1d782d8027e0..000000000000
--- a/target/mips/TODO
+++ /dev/null
@@ -1,51 +0,0 @@
-Unsolved issues/bugs in the mips/mipsel backend
------------------------------------------------
-
-General
--------
-- Unimplemented ASEs:
-  - MDMX
-  - SmartMIPS
-  - microMIPS DSP r1 & r2 encodings
-- MT ASE only partially implemented and not functional
-- Shadow register support only partially implemented,
-  lacks set switching on interrupt/exception.
-- 34K ITC not implemented.
-- A general lack of documentation, especially for technical internals.
-  Existing documentation is x86-centric.
-- Reverse endianness bit not implemented
-- The TLB emulation is very inefficient:
-  QEMU's softmmu implements a x86-style MMU, with separate entries
-  for read/write/execute, a TLB index which is just a modulo of the
-  virtual address, and a set of TLBs for each user/kernel/supervisor
-  MMU mode.
-  MIPS has a single entry for read/write/execute and only one MMU mode.
-  But it is fully associative with randomized entry indices, and uses
-  up to 256 ASID tags as additional matching criterion (which roughly
-  equates to 256 MMU modes). It also has a global flag which causes
-  entries to match regardless of ASID.
-  To cope with these differences, QEMU currently flushes the TLB at
-  each ASID change. Using the MMU modes to implement ASIDs hinges on
-  implementing the global bit efficiently.
-- save/restore of the CPU state is not implemented (see machine.c).
-
-MIPS64
-------
-- Userland emulation (both n32 and n64) not functional.
-
-"Generic" 4Kc system emulation
-------------------------------
-- Doesn't correspond to any real hardware. Should be removed some day,
-  U-Boot is the last remaining user.
-
-PICA 61 system emulation
-------------------------
-- No framebuffer support yet.
-
-MALTA system emulation
-----------------------
-- We fake firmware support instead of doing the real thing
-- Real firmware (YAMON) falls over when trying to init RAM, presumably
-  due to lacking system controller emulation.
-- Bonito system controller not implemented
-- MSC1 system controller not implemented
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PULL 4/5] docs: Replace Qemu -> QEMU
  2022-04-26 12:46 [PULL 0/5] Trivial branch for 7.1 patches Laurent Vivier
                   ` (2 preceding siblings ...)
  2022-04-26 12:46 ` [PULL 3/5] target/mips: Remove stale TODO file Laurent Vivier
@ 2022-04-26 12:46 ` Laurent Vivier
  2022-04-26 12:46 ` [PULL 5/5] docs: Replace HomeBrew -> Homebrew Laurent Vivier
  2022-04-26 16:33 ` [PULL 0/5] Trivial branch for 7.1 patches Richard Henderson
  5 siblings, 0 replies; 7+ messages in thread
From: Laurent Vivier @ 2022-04-26 12:46 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-trivial, Stefan Weil, Bin Meng, Knut Omang, Laurent Vivier

From: Stefan Weil <sw@weilnetz.de>

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Knut Omang <knuto@ifi.uio.no>
Message-Id: <20220422083007.1082667-1-sw@weilnetz.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 docs/pcie_sriov.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/pcie_sriov.txt b/docs/pcie_sriov.txt
index f5e891e1d451..11158dbf8890 100644
--- a/docs/pcie_sriov.txt
+++ b/docs/pcie_sriov.txt
@@ -8,8 +8,8 @@ of a PCI Express device. It allows a single physical function (PF) to appear as
 virtual functions (VFs) for the main purpose of eliminating software
 overhead in I/O from virtual machines.
 
-Qemu now implements the basic common functionality to enable an emulated device
-to support SR/IOV. Yet no fully implemented devices exists in Qemu, but a
+QEMU now implements the basic common functionality to enable an emulated device
+to support SR/IOV. Yet no fully implemented devices exists in QEMU, but a
 proof-of-concept hack of the Intel igb can be found here:
 
 git://github.com/knuto/qemu.git sriov_patches_v5
@@ -18,7 +18,7 @@ Implementation
 ==============
 Implementing emulation of an SR/IOV capable device typically consists of
 implementing support for two types of device classes; the "normal" physical device
-(PF) and the virtual device (VF). From Qemu's perspective, the VFs are just
+(PF) and the virtual device (VF). From QEMU's perspective, the VFs are just
 like other devices, except that some of their properties are derived from
 the PF.
 
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PULL 5/5] docs: Replace HomeBrew -> Homebrew
  2022-04-26 12:46 [PULL 0/5] Trivial branch for 7.1 patches Laurent Vivier
                   ` (3 preceding siblings ...)
  2022-04-26 12:46 ` [PULL 4/5] docs: Replace Qemu -> QEMU Laurent Vivier
@ 2022-04-26 12:46 ` Laurent Vivier
  2022-04-26 16:33 ` [PULL 0/5] Trivial branch for 7.1 patches Richard Henderson
  5 siblings, 0 replies; 7+ messages in thread
From: Laurent Vivier @ 2022-04-26 12:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Stefan Weil, Bin Meng, Laurent Vivier

From: Stefan Weil <sw@weilnetz.de>

The official spelling does not use camel case.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-Id: <20220422083403.1082924-1-sw@weilnetz.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 docs/about/build-platforms.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/about/build-platforms.rst b/docs/about/build-platforms.rst
index c29a4b8fe649..e9163ba5563f 100644
--- a/docs/about/build-platforms.rst
+++ b/docs/about/build-platforms.rst
@@ -80,7 +80,7 @@ Ubuntu LTS. Other distros will be assumed to ship similar software versions.
 For FreeBSD and OpenBSD, decisions will be made based on the contents of the
 respective ports repository, while NetBSD will use the pkgsrc repository.
 
-For macOS, `HomeBrew`_ will be used, although `MacPorts`_ is expected to carry
+For macOS, `Homebrew`_ will be used, although `MacPorts`_ is expected to carry
 similar versions.
 
 Windows
@@ -92,6 +92,6 @@ hosted on Linux (Debian/Fedora).
 The version of the Windows API that's currently targeted is Vista / Server
 2008.
 
-.. _HomeBrew: https://brew.sh/
+.. _Homebrew: https://brew.sh/
 .. _MacPorts: https://www.macports.org/
 .. _Repology: https://repology.org/
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PULL 0/5] Trivial branch for 7.1 patches
  2022-04-26 12:46 [PULL 0/5] Trivial branch for 7.1 patches Laurent Vivier
                   ` (4 preceding siblings ...)
  2022-04-26 12:46 ` [PULL 5/5] docs: Replace HomeBrew -> Homebrew Laurent Vivier
@ 2022-04-26 16:33 ` Richard Henderson
  5 siblings, 0 replies; 7+ messages in thread
From: Richard Henderson @ 2022-04-26 16:33 UTC (permalink / raw)
  To: Laurent Vivier, qemu-devel; +Cc: qemu-trivial

On 4/26/22 05:46, Laurent Vivier wrote:
> The following changes since commit a1755db71e34df016ffc10aa0727360aae2c6036:
> 
>    Merge tag 'pull-block-2022-04-25' of https://gitlab.com/hreitz/qemu into staging (2022-04-25 13:35:41 -0700)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/laurent_vivier/qemu.git tags/trivial-branch-for-7.1-pull-request
> 
> for you to fetch changes up to 4a89bf188a318592324769bd2bda95172c9a7091:
> 
>    docs: Replace HomeBrew -> Homebrew (2022-04-26 12:40:36 +0200)
> 
> ----------------------------------------------------------------
> Pull request trivial patches 20220426

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.


r~


> 
> ----------------------------------------------------------------
> 
> Eugenio Pérez (1):
>    vdpa: Add missing tracing to batch mapping functions
> 
> Stefan Weil (2):
>    docs: Replace Qemu -> QEMU
>    docs: Replace HomeBrew -> Homebrew
> 
> Thomas Huth (1):
>    target/mips: Remove stale TODO file
> 
> Yuval Shaia (1):
>    hw/pvrdma: Some cosmetic fixes
> 
>   docs/about/build-platforms.rst |  4 +--
>   docs/pcie_sriov.txt            |  6 ++--
>   hw/rdma/vmw/pvrdma_main.c      |  9 +++---
>   hw/virtio/trace-events         |  2 ++
>   hw/virtio/vhost-vdpa.c         |  2 ++
>   target/mips/TODO               | 51 ----------------------------------
>   6 files changed, 14 insertions(+), 60 deletions(-)
>   delete mode 100644 target/mips/TODO
> 



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-26 17:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 12:46 [PULL 0/5] Trivial branch for 7.1 patches Laurent Vivier
2022-04-26 12:46 ` [PULL 1/5] hw/pvrdma: Some cosmetic fixes Laurent Vivier
2022-04-26 12:46 ` [PULL 2/5] vdpa: Add missing tracing to batch mapping functions Laurent Vivier
2022-04-26 12:46 ` [PULL 3/5] target/mips: Remove stale TODO file Laurent Vivier
2022-04-26 12:46 ` [PULL 4/5] docs: Replace Qemu -> QEMU Laurent Vivier
2022-04-26 12:46 ` [PULL 5/5] docs: Replace HomeBrew -> Homebrew Laurent Vivier
2022-04-26 16:33 ` [PULL 0/5] Trivial branch for 7.1 patches Richard Henderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.