[v4,0/2] vdpasim: support doorbell mapping

Message ID 20230227091857.2406-1-longpeng2@huawei.com
Headers
Series vdpasim: support doorbell mapping |

Message

Longpeng(Mike) Feb. 27, 2023, 9:18 a.m. UTC
  From: Longpeng <longpeng2@huawei.com>

This patchset supports doorbell mapping for vdpasim devices.

v3: https://lore.kernel.org/lkml/20230213070446-mutt-send-email-mst@kernel.org/T/
v2: https://lore.kernel.org/lkml/CACGkMEtdT5fG=ffbpQadkGmzHf6Ax-+L50LsriYqJaW++natMg@mail.gmail.com/T/

Changes v3->v4:
    - use WRITE_ONCE  [Jason]
    - start/stop periodic work when create/destroy vdpasim device  [Jason]

Changes v2->v3:
    - add a new callback named get_vq_notification_pgprot to vdpa_config_ops [Jason]
    - remove the new added module parameter 'parameter' [Jason]
    - opencode the schedule/cancel_delayed() [Jason]

Changes v1->v2:
    - support both kick mode and passthrough mode. [Jason]
    - poll the notify register first. [Jason, Michael]

Longpeng (2):
  vdpa: support specify the pgprot of vq notification area
  vdpasim: support doorbell mapping

 drivers/vdpa/vdpa_sim/vdpa_sim.c | 67 ++++++++++++++++++++++++++++++++
 drivers/vdpa/vdpa_sim/vdpa_sim.h |  3 ++
 drivers/vhost/vdpa.c             |  4 +-
 include/linux/vdpa.h             |  9 +++++
 4 files changed, 82 insertions(+), 1 deletion(-)
  

Comments

Michael S. Tsirkin March 10, 2023, 8:59 a.m. UTC | #1
On Mon, Feb 27, 2023 at 05:18:55PM +0800, Longpeng(Mike) wrote:
> From: Longpeng <longpeng2@huawei.com>
> 
> This patchset supports doorbell mapping for vdpasim devices.
> 
> v3: https://lore.kernel.org/lkml/20230213070446-mutt-send-email-mst@kernel.org/T/
> v2: https://lore.kernel.org/lkml/CACGkMEtdT5fG=ffbpQadkGmzHf6Ax-+L50LsriYqJaW++natMg@mail.gmail.com/T/

Pls fix issues found by 0-day and repost.

> Changes v3->v4:
>     - use WRITE_ONCE  [Jason]
>     - start/stop periodic work when create/destroy vdpasim device  [Jason]
> 
> Changes v2->v3:
>     - add a new callback named get_vq_notification_pgprot to vdpa_config_ops [Jason]
>     - remove the new added module parameter 'parameter' [Jason]
>     - opencode the schedule/cancel_delayed() [Jason]
> 
> Changes v1->v2:
>     - support both kick mode and passthrough mode. [Jason]
>     - poll the notify register first. [Jason, Michael]
> 
> Longpeng (2):
>   vdpa: support specify the pgprot of vq notification area
>   vdpasim: support doorbell mapping
> 
>  drivers/vdpa/vdpa_sim/vdpa_sim.c | 67 ++++++++++++++++++++++++++++++++
>  drivers/vdpa/vdpa_sim/vdpa_sim.h |  3 ++
>  drivers/vhost/vdpa.c             |  4 +-
>  include/linux/vdpa.h             |  9 +++++
>  4 files changed, 82 insertions(+), 1 deletion(-)
> 
> -- 
> 2.23.0