search for: ifcvf_mdev_get_vq_st

Displaying 5 results from an estimated 5 matches for "ifcvf_mdev_get_vq_st".

2019 Oct 21
0
[RFC 2/2] vhost: IFC VF vdpa layer
...t;> +??? struct ifcvf_adapter *adapter = mdev_get_drvdata(mdev); >>> +??? struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); >>> + >>> +??? vf->req_features = features; >>> + >>> +??? return 0; >>> +} >>> + >>> +static u64 ifcvf_mdev_get_vq_state(struct mdev_device *mdev, u16 qid) >>> +{ >>> +??? struct ifcvf_adapter *adapter = mdev_get_drvdata(mdev); >>> +??? struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); >>> + >>> +??? return vf->vring[qid].last_avail_idx; >> >> >> Do...
2019 Oct 22
0
[RFC 2/2] vhost: IFC VF vdpa layer
...v); >>>>> +??? struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); >>>>> + >>>>> +??? vf->req_features = features; >>>>> + >>>>> +??? return 0; >>>>> +} >>>>> + >>>>> +static u64 ifcvf_mdev_get_vq_state(struct mdev_device *mdev, u16 >>>>> qid) >>>>> +{ >>>>> +??? struct ifcvf_adapter *adapter = mdev_get_drvdata(mdev); >>>>> +??? struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); >>>>> + >>>>> +??? return v...
2019 Oct 23
0
[RFC 2/2] vhost: IFC VF vdpa layer
...PRIVATE_TO_VF(adapter); >>>>>>> + >>>>>>> +??? vf->req_features = features; >>>>>>> + >>>>>>> +??? return 0; >>>>>>> +} >>>>>>> + >>>>>>> +static u64 ifcvf_mdev_get_vq_state(struct mdev_device *mdev, >>>>>>> u16 qid) >>>>>>> +{ >>>>>>> +??? struct ifcvf_adapter *adapter = mdev_get_drvdata(mdev); >>>>>>> +??? struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); >>>>>>&...
2019 Oct 16
0
[RFC 2/2] vhost: IFC VF vdpa layer
...c int ifcvf_mdev_set_features(struct mdev_device *mdev, u64 features) > +{ > + struct ifcvf_adapter *adapter = mdev_get_drvdata(mdev); > + struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); > + > + vf->req_features = features; > + > + return 0; > +} > + > +static u64 ifcvf_mdev_get_vq_state(struct mdev_device *mdev, u16 qid) > +{ > + struct ifcvf_adapter *adapter = mdev_get_drvdata(mdev); > + struct ifcvf_hw *vf = IFC_PRIVATE_TO_VF(adapter); > + > + return vf->vring[qid].last_avail_idx; Does this really work? I'd expect it should be fetched from hw since it...
2019 Nov 06
0
[PATCH 2/2] IFC VDPA layer
...; > + > + return ifcvf_get_features(vf); > +} > + > +static int ifcvf_mdev_set_features(struct mdev_device *mdev, u64 features) > +{ > + struct ifcvf_hw *vf = mdev_to_vf(mdev); > + > + vf->req_features = features; > + > + return 0; > +} > + > +static u64 ifcvf_mdev_get_vq_state(struct mdev_device *mdev, u16 qid) > +{ > + struct ifcvf_hw *vf = mdev_to_vf(mdev); > + u16 last_avail_idx; > + > + last_avail_idx = *(u16 *)(vf->lm_cfg + IFCVF_LM_RING_STATE_OFFSET + > + (qid / 2) * IFCVF_LM_CFG_SIZE + (qid % 2) * 4); > + Similar to the comment of pr...