search for: ifcvf_read_dev_config

Displaying 7 results from an estimated 7 matches for "ifcvf_read_dev_config".

2019 Oct 22
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...019 at 05:55:33PM +0800, Zhu, Lingshan wrote: >> On 10/16/2019 5:53 PM, Simon Horman wrote: >>> Hi Zhu, >>> >>> thanks for your patch. >>> >>> On Wed, Oct 16, 2019 at 09:10:40AM +0800, Zhu Lingshan wrote: > ... > >>>> +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset, >>>> + void *dst, int length) >>>> +{ >>>> + int i; >>>> + u8 *p; >>>> + u8 old_gen, new_gen; >>>> + >>>> + do { >>>> + old_gen = ioread8(&hw->common_cfg-...
2019 Oct 23
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...2019 5:53 PM, Simon Horman wrote: >>>>> Hi Zhu, >>>>> >>>>> thanks for your patch. >>>>> >>>>> On Wed, Oct 16, 2019 at 09:10:40AM +0800, Zhu Lingshan wrote: >>> ... >>> >>>>>> +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset, >>>>>> + void *dst, int length) >>>>>> +{ >>>>>> + int i; >>>>>> + u8 *p; >>>>>> + u8 old_gen, new_gen; >>>>>> + >>>>>> + do { >&...
2023 Mar 31
1
[PATCH 3/5] retire ifcvf_start_datapath and ifcvf_add_status
...++ b/drivers/vdpa/ifcvf/ifcvf_base.h @@ -110,7 +110,6 @@ struct ifcvf_vdpa_mgmt_dev { }; int ifcvf_init_hw(struct ifcvf_hw *hw, struct pci_dev *dev); -int ifcvf_start_hw(struct ifcvf_hw *hw); void ifcvf_stop_hw(struct ifcvf_hw *hw); void ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid); void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset, diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c index 4588484bd53d..968687159e44 100644 --- a/drivers/vdpa/ifcvf/ifcvf_main.c +++ b/drivers/vdpa/ifcvf/ifcvf_main.c @@ -346,22 +346,6 @@ static int ifcvf_request_irq(struct ifcvf_hw *vf)...
2019 Oct 16
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...tures_hi = ioread32(&cfg->device_feature); > + > + return ((u64)features_hi << 32) | features_lo; > +} > +static int ifcvf_with_feature(struct ifcvf_hw *hw, u64 bit) > +{ > + return (hw->req_features & (1ULL << bit)) != 0; > +} > + > +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset, > + void *dst, int length) > +{ > + int i; > + u8 *p; > + u8 old_gen, new_gen; > + > + do { > + old_gen = ioread8(&hw->common_cfg->config_generation); > + > + p = dst; > + for (i = 0; i < length; i++) > +...
2019 Oct 21
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...+??? return ((u64)features_hi << 32) | features_lo; >>> +} >>> +static int ifcvf_with_feature(struct ifcvf_hw *hw, u64 bit) >>> +{ >>> +??? return (hw->req_features & (1ULL << bit)) != 0; >>> +} >>> + >>> +static void ifcvf_read_dev_config(struct ifcvf_hw *hw, u64 offset, >>> +?????????????? void *dst, int length) >>> +{ >>> +??? int i; >>> +??? u8 *p; >>> +??? u8 old_gen, new_gen; >>> + >>> +??? do { >>> +??????? old_gen = ioread8(&hw->common_cfg->conf...
2023 Mar 31
7
[PATCH 0/5] vDPA/ifcvf: implement immediate initialization mechanism
Formerly, ifcvf driver has implemented a lazy-initialization mechanism for the virtqueues and other config space contents, it would store all configurations that passed down from the userspace, then load them to the device config space upon DRIVER_OK. This can not serve live migration, so this series implement an immediate initialization mechanism, which means rather than the former store-load
2023 May 08
6
[PATCH V2 0/5] vDPA/ifcvf: implement immediate initialization mechanism
Formerly, ifcvf driver has implemented a lazy-initialization mechanism for the virtqueues and other config space contents, it would store all configurations that passed down from the userspace, then load them to the device config space upon DRIVER_OK. This can not serve live migration, so this series implement an immediate initialization mechanism, which means rather than the former store-load