]> git.proxmox.com Git - mirror_qemu.git/commit
pvrdma: wean code off pvrdma_ring.h kernel header
authorCornelia Huck <cohuck@redhat.com>
Fri, 22 Jan 2021 18:00:29 +0000 (19:00 +0100)
committerJason Wang <jasowang@redhat.com>
Mon, 15 Mar 2021 08:41:22 +0000 (16:41 +0800)
commit3aa1b7af0f5fbfdf1b4759658e1445bda680b40d
tree7908c80f6c63ffe97e1d92c2888579bfd0140d93
parent37cee01784ff0df13e5209517e1b3594a5e792d1
pvrdma: wean code off pvrdma_ring.h kernel header

The pvrdma code relies on the pvrdma_ring.h kernel header for some
basic ring buffer handling. The content of that header isn't very
exciting, but contains some (q)atomic_*() invocations that (a)
cause manual massaging when doing a headers update, and (b) are
an indication that we probably should not be importing that header
at all.

Let's reimplement the ring buffer handling directly in the pvrdma
code instead. This arguably also improves readability of the code.

Importing the header can now be dropped.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Tested-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/rdma/vmw/pvrdma.h
hw/rdma/vmw/pvrdma_cmd.c
hw/rdma/vmw/pvrdma_dev_ring.c
hw/rdma/vmw/pvrdma_dev_ring.h
hw/rdma/vmw/pvrdma_main.c
include/standard-headers/drivers/infiniband/hw/vmw_pvrdma/pvrdma_ring.h [deleted file]
scripts/update-linux-headers.sh