search for: get_vq_notification_pgprot

Displaying 3 results from an estimated 3 matches for "get_vq_notification_pgprot".

2023 Jan 29
0
[PATCH v3 1/2] vdpa: support specify the pgprot of vq notification area
On Sun, Jan 29, 2023 at 10:51 AM Longpeng(Mike) <longpeng2 at huawei.com> wrote: > > From: Longpeng <longpeng2 at huawei.com> > > Adds get_vq_notification_pgprot operation to vdpa_config_ops to support > specify the pgprot of vq norification area. It's an optional operation, > the vdpa framework will treat the pgprot of vq notification area as > noncached as default as usual. Missing sob. Other than this. Acked-by: Jason Wang <jasowang at...
2023 Jan 29
1
[PATCH v3 2/2] vdpasim: support doorbell mapping
...Thanks > spin_lock(&vdpasim->lock); > vdpasim->status = 0; > vdpasim_do_reset(vdpasim); > @@ -672,11 +708,34 @@ static int vdpasim_dma_unmap(struct vdpa_device *vdpa, unsigned int asid, > return 0; > } > > +static pgprot_t vdpasim_get_vq_notification_pgprot(struct vdpa_device *vdpa, > + u16 qid, pgprot_t prot) > +{ > + /* > + * We use normal RAM pages to emulate the vq notification area, so > + * just keep the pgprot as it mmaped. > + */ > + return p...
2023 Mar 10
0
[PATCH v4 0/2] vdpasim: support doorbell mapping
...GmzHf6Ax-+L50LsriYqJaW++natMg at 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....