Displaying 10 results from an estimated 10 matches for "ifcvf_set_features".
Did you mean:
ifcvf_get_features
2023 May 08
1
[PATCH V2 2/5] vDPA/ifcvf: get_driver_features from virtio registers
This commit implements a new function ifcvf_get_driver_feature()
which read driver_features from virtio registers.
To be less ambiguous, ifcvf_set_features() is renamed to
ifcvf_set_driver_features(), and ifcvf_get_features()
is renamed to ifcvf_get_dev_features() which returns
the provisioned vDPA device features.
Signed-off-by: Zhu Lingshan <lingshan.zhu at intel.com>
---
drivers/vdpa/ifcvf/ifcvf_base.c | 38 +++++++++++++++++----------------...
2023 Mar 31
2
[PATCH 2/5] get_driver_features from virito registers
This commit implements a new function ifcvf_get_driver_feature()
which read driver_features from virtio registers.
To be less ambiguous, ifcvf_set_features() is renamed to
ifcvf_set_driver_features(), and ifcvf_get_features()
is renamed to ifcvf_get_dev_features() which returns
the provisioned vDPA device features.
Signed-off-by: Zhu Lingshan <lingshan.zhu at intel.com>
---
drivers/vdpa/ifcvf/ifcvf_base.c | 38 +++++++++++++++++----------------...
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
2019 Nov 08
0
[PATCH 1/2] IFC hardware operation layer
...st void *src, int length)
> +{
> + const u8 *p;
> + int i;
> +
> + p = src;
> + WARN_ON(offset + length > sizeof (struct ifcvf_net_config));
> +
> + for (i = 0; i < length; i++)
> + iowrite8(*p++, (u8 *)hw->net_cfg + offset + i);
> +}
> +
> +static void ifcvf_set_features(struct ifcvf_hw *hw, u64 features)
> +{
> + struct virtio_pci_common_cfg *cfg = hw->common_cfg;
> +
> + iowrite32(0, &cfg->guest_feature_select);
> + iowrite32(features & ((1ULL << 32) - 1), &cfg->guest_feature);
> +
> + iowrite32(1, &cfg->gues...
2019 Nov 05
1
[PATCH 1/2] IFC hardware operation layer
...st void *src, int length)
> +{
> + const u8 *p;
> + int i;
> +
> + p = src;
> + WARN_ON(offset + length > sizeof (struct ifcvf_net_config));
> +
> + for (i = 0; i < length; i++)
> + iowrite8(*p++, (u8 *)hw->net_cfg + offset + i);
> +}
> +
> +static void ifcvf_set_features(struct ifcvf_hw *hw, u64 features)
> +{
> + struct virtio_pci_common_cfg *cfg = hw->common_cfg;
> +
> + iowrite32(0, &cfg->guest_feature_select);
> + iowrite32(features & ((1ULL << 32) - 1), &cfg->guest_feature);
> +
> + iowrite32(1, &cfg->gues...
2019 Nov 05
0
[PATCH 1/2] IFC hardware operation layer
...st void *src, int length)
> +{
> + const u8 *p;
> + int i;
> +
> + p = src;
> + WARN_ON(offset + length > sizeof (struct ifcvf_net_config));
> +
> + for (i = 0; i < length; i++)
> + iowrite8(*p++, (u8 *)hw->net_cfg + offset + i);
> +}
> +
> +static void ifcvf_set_features(struct ifcvf_hw *hw, u64 features)
> +{
> + struct virtio_pci_common_cfg *cfg = hw->common_cfg;
> +
> + iowrite32(0, &cfg->guest_feature_select);
> + iowrite32(features & ((1ULL << 32) - 1), &cfg->guest_feature);
> +
> + iowrite32(1, &cfg->gues...
2019 Nov 06
0
[PATCH 1/2] IFC hardware operation layer
...st void *src, int length)
> +{
> + const u8 *p;
> + int i;
> +
> + p = src;
> + WARN_ON(offset + length > sizeof (struct ifcvf_net_config));
> +
> + for (i = 0; i < length; i++)
> + iowrite8(*p++, (u8 *)hw->net_cfg + offset + i);
> +}
> +
> +static void ifcvf_set_features(struct ifcvf_hw *hw, u64 features)
> +{
> + struct virtio_pci_common_cfg *cfg = hw->common_cfg;
> +
> + iowrite32(0, &cfg->guest_feature_select);
> + iowrite32(features & ((1ULL << 32) - 1), &cfg->guest_feature);
(u32)features ?
> +
> + iowrite32(1,...
2019 Oct 16
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...v_config(hw,
> + offsetof(struct ifcvf_net_config, status),
> + &status, sizeof(status));
> + if ((status & VIRTIO_NET_S_LINK_UP) == 0)
> + (*is_linkup) = 1;
> + else
> + (*is_linkup) = 0;
> + } else
> + (*is_linkup) = 0;
> +}
> +
> +static void ifcvf_set_features(struct ifcvf_hw *hw, u64 features)
> +{
> + struct virtio_pci_common_cfg *cfg = hw->common_cfg;
> +
> + iowrite32(0, &cfg->guest_feature_select);
> + iowrite32(features & ((1ULL << 32) - 1), &cfg->guest_feature);
> +
> + iowrite32(1, &cfg->gues...
2019 Oct 21
0
[RFC 1/2] vhost: IFC VF hardware operation layer
...gt;> +??????? if ((status & VIRTIO_NET_S_LINK_UP) == 0)
>>> +??????????? (*is_linkup) = 1;
>>> +??????? else
>>> +??????????? (*is_linkup) = 0;
>>> +??? } else
>>> +??????? (*is_linkup) = 0;
>>> +}
>>> +
>>> +static void ifcvf_set_features(struct ifcvf_hw *hw, u64 features)
>>> +{
>>> +??? struct virtio_pci_common_cfg *cfg = hw->common_cfg;
>>> +
>>> +??? iowrite32(0, &cfg->guest_feature_select);
>>> +??? iowrite32(features & ((1ULL << 32) - 1), &cfg->guest_featu...