CN114936072A - Hardware capability calling method and related equipment - Google Patents

Hardware capability calling method and related equipment Download PDF

Info

Publication number
CN114936072A
CN114936072A CN202210659407.XA CN202210659407A CN114936072A CN 114936072 A CN114936072 A CN 114936072A CN 202210659407 A CN202210659407 A CN 202210659407A CN 114936072 A CN114936072 A CN 114936072A
Authority
CN
China
Prior art keywords
target
dpu
capability
hardware
hardware capability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210659407.XA
Other languages
Chinese (zh)
Inventor
陈森法
孙路遥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xingyun Zhilian Technology Co ltd
Original Assignee
Shenzhen Xingyun Zhilian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xingyun Zhilian Technology Co ltd filed Critical Shenzhen Xingyun Zhilian Technology Co ltd
Priority to CN202210659407.XA priority Critical patent/CN114936072A/en
Publication of CN114936072A publication Critical patent/CN114936072A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the application discloses a hardware capability calling method and related equipment, which are applied to semi-virtualization equipment, wherein the method comprises the following steps: receiving hardware capability configuration information sent by a user management and control platform, wherein the hardware capability configuration information comprises target equipment characteristics; acquiring a first hardware capability set, wherein the first hardware capability set comprises hardware capabilities corresponding to at least one device feature; judging whether the data processor DPU has target forwarding capacity corresponding to the target equipment characteristics according to the first hardware capacity set; and when the DPU has the target forwarding capability corresponding to the target equipment characteristic, issuing the target forwarding capability to the DPU according to a preset mode. By adopting the embodiment of the application, the flexibility of hardware capability calling can be improved.

Description

Hardware capability calling method and related equipment
Technical Field
The present application relates to the field of communications technologies and internet technologies, and in particular, to a hardware capability calling method and a related device.
Background
At present, a Data Processing Unit (DPU) manufacturer configured with data as a center needs to additionally develop configuration management software of these hardware capabilities, and in addition, there is no unified standard, so that a management and control platform of a customer needs to adapt to the configuration management software of each DPU manufacturer, which is large in workload and poor in expandability, and thus, the hardware capability call is not flexible enough, and therefore, the problem of how to improve the flexibility of the hardware capability call needs to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a hardware capability calling method and related equipment, and the flexibility of hardware capability calling can be improved.
In a first aspect, an embodiment of the present application provides a hardware capability calling method, which is applied to a paravirtualization device, and the method includes:
receiving hardware capability configuration information sent by a user management and control platform, wherein the hardware capability configuration information comprises target equipment characteristics;
acquiring a first hardware capability set, wherein the first hardware capability set comprises hardware capabilities corresponding to at least one device feature;
judging whether the data processor DPU has target forwarding capability corresponding to the target equipment characteristics or not according to the first hardware capability set;
and when the DPU has the target forwarding capability corresponding to the target equipment characteristics, the target forwarding capability is issued to the DPU according to a preset mode.
In a second aspect, an embodiment of the present application provides a hardware capability calling apparatus, which is applied to a paravirtualization device, and the apparatus includes: a receiving unit, an obtaining unit, a judging unit and a sending unit, wherein,
the receiving unit is used for receiving hardware capability configuration information sent by a user management and control platform, wherein the hardware capability configuration information comprises target equipment characteristics;
the acquiring unit is configured to acquire a first hardware capability set, where the first hardware capability set includes a hardware capability corresponding to at least one device feature;
the judging unit is used for judging whether the data processor DPU has the target forwarding capability corresponding to the target equipment feature according to the first hardware capability set;
and the issuing unit is used for issuing the target forwarding capability to the DPU according to a preset mode when the DPU has the target forwarding capability corresponding to the target equipment characteristic.
In a third aspect, an embodiment of the present application provides a para-virtualization device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the hardware capability calling method and the related device described in the embodiment of the present application are applied to a para-virtualization device, receive hardware capability configuration information sent by a user management and control platform, where the hardware capability configuration information includes a target device feature, obtain a first hardware capability set, where the first hardware capability set includes a hardware capability corresponding to at least one device feature, determine, according to the first hardware capability set, whether a data processor DPU has a target forwarding capability corresponding to the target device feature, and when the DPU has the target forwarding capability corresponding to the target device feature, issue the target forwarding capability to the DPU according to a preset manner, so that flexibility in hardware capability calling can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a hardware capability calling method according to an embodiment of the present application;
fig. 2 is a schematic front-end and back-end structure diagram of a hardware capability calling system according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another hardware capability calling method according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating another hardware capability calling method according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a paravirtualization apparatus according to an embodiment of the present disclosure;
fig. 6 is a block diagram illustrating functional units of a hardware capability calling apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the embodiment of the present application, the Data Processor (DPU) may be a dedicated processor with a data-centric structure, and may support infrastructure layer resource virtualization by using a software-defined technology route, so as to support infrastructure layer services such as storage, security, and quality of service management.
In the embodiment of the application, the virtio is an abstraction layer located above a device in a semi-virtualized hypervisor, and the virtio-net driver refers to a network device virtualization mode. The virtio-PCI refers to a Peripheral Component Interconnect (PCI) standard interface of the paravirtualized device, and the virtio-net driver is a paravirtualized network driver.
The following describes embodiments of the present application in detail.
In the related art, since the virtio-pci and virtio-net drivers are integrated in a Linux kernel, the application of the virtio-net device does not need to additionally install a private driver of a hardware manufacturer. In recent years, virtio-net equipment is more and more widely used in barrel-metal, cloud-native and virtual machine virtualization scenes. Therefore, most DPU vendors support the provision of virtio-net devices that conform to the virtio protocol standard.
The initial purpose of virtio application is that in virtualization, based on the collaborative design of a backend simulation device which drives a front end of a virtual machine to qemu, the software virtiovring is used for realizing front-end and back-end communication, and the capability of the device by means of special equipment is lack of consideration. Whereas DPU hardware provides a large amount of hardware capabilities that are not well utilized in hardware virtio-net devices, these hardware capabilities may include mac _ spoof-check, mtu modification, QOS scheduling, etc.
In the related art, the virtio-net protocol does not realize mac _ zoof-check, mtu modification and quality of service (QOS) scheduling. Thus, there is no mechanism for the front-end virito-net driver to notify the back-end virtio-net device.
In order to utilize the hardware capabilities, most manufacturers separately develop a set of configuration management software, and the management software receives user configuration and then notifies the DPU through RPC, so that the DPU issues device capability resources.
Further, as shown in fig. 1, a method of hardware capability of a virtio-net device is mainly configured by a user through RPC and the like, and then a user management and control platform notifies the DPU through user management software through RPC and the like of a DPU manufacturer, an ECPU of the DPU runs resource management software, and a socket server (socket server) runs to monitor user configuration.
The user management and control platform may be a HOST front end, and the DPU may include a field-programmable gate array (field-programmable array)/Application Specific Integrated Circuit (ASIC) and an embedded CPU (embedded CPU, ECPU) back end, as shown in fig. 2, and each module may be in communication connection with each other.
Because the DPU manufacturers need to additionally develop the configuration management software with these hardware capabilities, and there is no unified standard, the management and control platform of the customer needs to adapt to the configuration management software of each DPU manufacturer, which results in large workload and poor expandability.
Based on the defects of the related art, please refer to fig. 3, where fig. 3 is a schematic flowchart of another hardware capability calling method provided in an embodiment of the present application, and is applied to a paravirtualization device, as shown in the figure, the hardware capability calling method includes:
301. and receiving hardware capability configuration information sent by a user management and control platform, wherein the hardware capability configuration information comprises target equipment characteristics.
In a specific implementation, the user management and control platform may be a HOST (HOST), the paravirtualized device (virtual device) may include a paravirtualized network device (virtual-net device), the paravirtualized device may include a paravirtualized network driver (virtual-net driver), and the paravirtualized network driver may also be referred to as a virtual driver or a virtual-net driver for short.
Specifically, the user may configure the hardware capability configuration information in a remote procedure call protocol (RPC) manner. The hardware capability configuration information may include at least one of: device characteristics, hardware capability type, hardware capability usage time, hardware capability usage geographical location, hardware capability usage hardware environment information, hardware capability usage software environment information, and the like, without limitation. Wherein the hardware capability usage hardware environment information may include at least one of: the main frequency, the number of cores, the temperature of the hardware, the current level of the hardware, the voltage level of the hardware, the power level of the hardware, and the like, which are not limited herein. The hardware capability usage software environment information may include at least one of: foreground application environment, system environment, plug-in type, network rate, network bandwidth, etc., without limitation.
In specific implementation, a user can configure hardware capability configuration information in an RPC mode, the hardware capability configuration information comprises target equipment characteristics, and configuration is achieved through the hardware capability configuration information.
302. A first hardware capability set is obtained, and the first hardware capability set comprises hardware capabilities corresponding to at least one device feature.
The first hardware capability set may be obtained through a negotiation manner, and the first hardware capability set may include a hardware capability corresponding to at least one device feature.
303. And judging whether the data processor DPU has the target forwarding capability corresponding to the target equipment feature according to the first hardware capability set.
In a specific implementation, the first hardware capability set may include a hardware capability corresponding to at least one device feature, and further, may search whether the first hardware capability set includes a related capability corresponding to a target device feature, and determine the target forwarding capability based on the related capability.
Optionally, the step of determining whether the DPU has the target forwarding capability corresponding to the target device feature according to the first hardware capability set includes:
31. comparing the at least one device characteristic to the target device characteristic;
32. if the device feature which is successfully compared with the target device feature exists in the at least one device feature, determining that the DPU has a target forwarding capability corresponding to the target device feature;
33. and determining that the DPU does not have the target forwarding capability corresponding to the target equipment feature.
In a specific implementation, at least one device feature may be compared with a target device feature, a device feature successfully compared with the target device feature exists in the at least one device feature, and it is determined that the DPU has a target forwarding capability corresponding to the target device feature, otherwise, a device feature successfully compared with the target device feature does not exist in the at least one device feature, and it is determined that the DPU does not have the target forwarding capability corresponding to the target device feature.
Optionally, the method may further include the following steps:
a1, registering a preset interface of the paravirtualization device;
a2, determining the first hardware capability set through a communication negotiation mode with the DPU through the preset interface.
The preset interface can be preset or default, the preset interface can be an operation interface ops, the preset interface can be one or more, and different hardware capabilities can correspond to different interfaces.
In specific implementation, after a preset interface of the paravirtualization device is registered, a first hardware capability set may be determined through the preset interface and the DPU in a communication negotiation manner, so as to complete a hardware capability pre-configuration process.
304. And when the DPU has the target forwarding capability corresponding to the target equipment characteristics, the target forwarding capability is issued to the DPU according to a preset mode.
In a specific implementation, the preset mode may be preset or default, for example, the preset mode may be a bar register of a virtual-netcontrol-queue or a virtual-pci device-cfg capability set. When the DPU has the target forwarding capability corresponding to the target device feature, the target forwarding capability may be issued to the DPU according to a preset manner.
Optionally, the method may further include the following steps:
and when the DPU does not have the target forwarding capability corresponding to the target equipment characteristics, reporting an error.
In specific implementation, when the DPU does not have the target forwarding capability corresponding to the target device feature, an error may be reported to remind the user to reconfigure.
Optionally, in step 304, the target forwarding capability is issued to the DPU according to a preset manner, which may be implemented as follows:
sending the target forwarding capability to the DPU through a paravirtualized network control queue;
and/or the presence of a gas in the gas,
and issuing the target forwarding capability to the DPU in a writing mode through a specified register in the configuration capability set of the paravirtualized device.
In the embodiment of the application, the paravirtualized network control queue is a virtual-net control-queue.
The designated register may be preset or system default, e.g., the designated register is a bar register. The configuration capability set of the paravirtualized device may specifically be a virtio-pci device-cfg capability set.
In the embodiment of the application, a virtio feature is added to enable a front-end virtio-net driver to obtain DPU (distributed processing Unit) capability through feature negotiation, and then a bar register of a virtio-net control-queue or a virtio-pci device-cfg capability set is used for notifying the DPU, so that hardware can complete mac _ speech-check, mtu modification and QOS scheduling resource issuing. Thereby making full use of the hardware capabilities of the DPU.
In specific implementation, the target forwarding capability can be issued to the DPU through a paravirtualized network control queue; or, the target forwarding capability can be issued to the DPU in a write manner through a designated register in the configuration capability set of the paravirtualized device; or, the target forwarding capability may also be issued to the DPU through the paravirtualized network control queue and issued to the DPU in a write manner through a designated register in the paravirtualized device configuration capability set.
The method of the control-queue is as follows, and the message format of the control-queue can be set as follows:
struct virtio_net_ctrl{
u8 class;
u8 command;
u8 command-specific-data[];
u8 ack;
}
wherein u8 class is a command class and is set by virtio-net drive; u8 command is a command subclass, set by virtio-net driver; u8 command-specific-data [ ] is command specific data, set by virtio-net driver; u8 ack is the command return status, set by the DPU hardware, identifying whether the command was processed successfully.
Further, each hardware capability is added with a class definition and a command capability, which is shown as follows, and the specification issued by virtio is subject to:
#define VIRTIO_NET_MAC_SPOOF_CHECK 5
#define VIRTIO_NET_MAC_SPOOF_CHCK_SEC 0
#define VIRTIO_NET_TC 6
#define VIRTIO_NET_QDISC_ADD 0
#define VIRTIO_NET_QDISC_DEL 1
......
#define VIRTIO_NET_MTU_MODIFY 7
#define VIRTIO_NET_MTU_SET 0
……
wherein, # define VIRTIO _ NET _ MAC _ SPOOF _ CHECK corresponds to the class field in the struct virtual _ NET _ ctrl structure, and the downstream MAC prevents the fraud CHECK; the # define VIRTIO _ NET _ MAC _ SPOOF _ CHCK _ SEC corresponds to a command field in the struct virtual _ NET _ ctrl structure; the # define VIRTIO _ NET _ TC corresponds to a class field in a structvirtio _ NET _ ctrl structure body, and flow control is carried out; the # definition VIRTIO _ NET _ QDISC _ ADD corresponds to a command field in the struct virtual _ NET _ ctrl structure; the # definition VIRTIO _ NET _ QDISC _ DEL corresponds to a command field in the struct VIRTIO _ NET _ ctrl structure; the # define VIRTIO _ NET _ MTU _ MODIFY corresponds to a class field in the structure of struct virtual _ NET _ ctrl, and the maximum transmission unit is modified; and # defineVIRTIO _ NET _ MTU _ SET corresponds to the command field in the struct virtual _ NET _ ctrl structure.
In addition, the method of the bar register passing through the virtual-net device-cfg is as follows:
adding a new hardware capability definition to struct virtual _ net _ config, which is shown as follows, and specifically subject to the specification issued by virtual:
struct virtio_net_config{
u8 mac[6];
le16 status;
le16 max_virtqueue_pairs;
le16 mtu;
u8 mac_spoof_check;
u8 resv[3];
struct tc_mqprio_qopt;}
in the embodiment of the application, a user management and control platform can be enabled to only use a general interface to configure the hardware capability of the virito-net, and the using method is as shown in fig. 4, in the specific implementation, the paravirtualized device may include a virtio driver, and the virtio driver initializes the device feature according to the virtio-pci common-cfg capability set; the virtio-net initializes and registers an ops interface of netdev; then, the user management and control platform configures the hardware capability of the virtio-net equipment through a universal command line of the netdev, namely, the user management software informs a virtio driver (virtio-net driver) through ops of the DP standard netdev; after receiving the configuration, the virtio driver judges whether the hardware has the forwarding capability according to the acquired device feature, if so, the hardware is issued to the DPU in a bar register writing mode of a virtio-netcontrol-queue or virtio-pci device-cfg capability set, namely, the DPU can be judged to have the forwarding capability according to the equipment features negotiated before (in an initialization stage) and then issued, and if not, an error is reported.
In a specific implementation, a virtio driver acquires a device feature of a virtio-net device, a virtio specification increases a device feature (device feature) corresponding to a hardware capability of the virtio-net, and an increased device feature byte (feature bit) can be represented as follows:
VIRTIO_NET_F_MAC_SPOOF_CHECK(24)
VIRTIO_NET_F_QOS(25)
VIRTIO_NET_MTU_MODIFY(26)
the VIRTIO _ NET _ F _ MAC _ SPOOF _ CHECK (24) is used for indicating that the downstream MAC anti-fraud CHECK capability is provided; VIRTIO _ NET _ F _ QOS (25) represents the capability of flow control; VIRTIO _ NET _ MTU _ MODIFY (26) indicates the capability of modifying the maximum transmission unit of the data packet.
Further, the initialization of the virtio driver can be according to the device feature of the virtio-pci common-cfg capability set, and the DPU manufacturer returns the device feature according to the real capability of the DPU manufacturer.
Then, the virtio-netdriver initializes and registers an ops interface of netdev; the ops interface of the mac _ spoofcheck is ndo _ set _ vf _ spoofchk, and the ops interface of the QOS scheduling is ndo _ setup _ tc; mtu the ops interface modified is ndo _ change _ mtu.
And then, the user management and control platform configures hardware capacity through a universal interface registered by the netdev, after receiving the message, the virtual-net driver judges whether the hardware capacity exists according to the negotiated device feature (device feature), and if the hardware capacity exists, the user management and control platform informs the DPU through a bar register write of a virtual-network control-queue or a virtual-personal-cfg capacity set of the virtual-network.
In the embodiment of the application, the virtio-net specification can be expanded and modified, so that the virtio-net driver can fully use the DPU forwarding capability; the device _ feature is standardized and added, and DPU manufacturers return the feature supported by the DPU manufacturers through initialization negotiation, so that the expandability is good; the virtio-net driver uses the conventional universal netdev interface of the kernel to configure the hardware capability, and has good expandability; the user management and control platform does not need to adapt a hardware forwarding capability configuration interface for the virtio-net equipment, so that the operation flexibility of the user is improved, and the operation difficulty is reduced.
It can be seen that the hardware capability calling method described in this embodiment of the application is applied to a para-virtualization device, receives hardware capability configuration information sent by a user management and control platform, where the hardware capability configuration information includes a target device feature, obtains a first hardware capability set, where the first hardware capability set includes a hardware capability corresponding to at least one device feature, and determines whether a data processor DPU has a target forwarding capability corresponding to the target device feature according to the first hardware capability set, and when the DPU has the target forwarding capability corresponding to the target device feature, issues the target forwarding capability to the DPU according to a preset mode, so that flexibility in hardware capability calling can be improved.
In keeping with the above embodiments, please refer to fig. 5, fig. 5 is a schematic structural diagram of a paravirtualization apparatus provided in an embodiment of the present application, as shown, the paravirtualization apparatus includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, and in an embodiment of the present application, the programs include instructions for performing the following steps:
receiving hardware capability configuration information sent by a user management and control platform, wherein the hardware capability configuration information comprises target equipment characteristics;
acquiring a first hardware capability set, wherein the first hardware capability set comprises hardware capabilities corresponding to at least one device feature;
judging whether the data processor DPU has target forwarding capacity corresponding to the target equipment characteristics according to the first hardware capacity set;
and when the DPU has the target forwarding capability corresponding to the target equipment characteristics, the target forwarding capability is issued to the DPU according to a preset mode.
Optionally, in the aspect that the target forwarding capability is issued to the DPU according to the preset manner, the program includes instructions for executing the following steps:
sending the target forwarding capability to the DPU through a paravirtualized network control queue;
and/or the presence of a gas in the gas,
and issuing the target forwarding capability to the DPU in a writing mode through a designated register in a configuration capability set of the paravirtualized device.
Optionally, in the aspect of determining whether the data processor DPU has the target forwarding capability corresponding to the target device feature according to the first hardware capability set, the program includes instructions for executing the following steps:
comparing the at least one device feature with the target device feature;
the device feature which is successfully compared with the target device feature exists in the at least one device feature, and the DPU is determined to have the target forwarding capability corresponding to the target device feature;
and determining that the DPU does not have the target forwarding capability corresponding to the target equipment feature if the equipment feature which is successfully compared with the target equipment feature does not exist in the at least one equipment feature.
Optionally, the program further includes instructions for performing the following steps:
registering a preset interface of the paravirtualization device;
and determining the first hardware capability set through a communication negotiation mode between the preset interface and the DPU.
Optionally, the program further includes instructions for performing the following steps:
and when the DPU does not have the target forwarding capability corresponding to the target equipment characteristics, reporting an error.
It can be seen that, in the paravirtualization device described in the embodiment of the present application, hardware capability configuration information sent by a user management and control platform is received, where the hardware capability configuration information includes a target device feature, a first hardware capability set is obtained, the first hardware capability set includes a hardware capability corresponding to at least one device feature, whether a data processor DPU has a target forwarding capability corresponding to the target device feature is determined according to the first hardware capability set, and when the DPU has the target forwarding capability corresponding to the target device feature, the target forwarding capability is issued to the DPU according to a preset manner, which may improve flexibility of hardware capability invocation.
Fig. 6 is a block diagram of functional units of a hardware capability calling apparatus 600 according to an embodiment of the present application. The hardware capability calling device 600 is applied to a paravirtualized apparatus, and the hardware capability calling device 600 includes: a receiving unit 601, an obtaining unit 602, a judging unit 603 and a sending unit 604, wherein,
the receiving unit 601 is configured to receive hardware capability configuration information sent by a user management and control platform, where the hardware capability configuration information includes target device characteristics;
the obtaining unit 602 is configured to obtain a first hardware capability set, where the first hardware capability set includes a hardware capability corresponding to at least one device feature;
the determining unit 603 is configured to determine, according to the first hardware capability set, whether the DPU has a target forwarding capability corresponding to the target device feature;
the issuing unit 604 is configured to issue the target forwarding capability to the DPU according to a preset manner when the DPU has the target forwarding capability corresponding to the target device feature.
Optionally, in the aspect that the target forwarding capability is issued to the DPU according to the preset manner, the issuing unit 604 is specifically configured to:
sending the target forwarding capability to the DPU through a paravirtualized network control queue;
and/or the presence of a gas in the gas,
and issuing the target forwarding capability to the DPU in a writing mode through a designated register in a configuration capability set of the paravirtualized device.
Optionally, in the aspect of determining whether the data processor DPU has the target forwarding capability corresponding to the target device feature according to the first hardware capability set, the determining unit 603 is specifically configured to:
comparing the at least one device feature with the target device feature;
the device feature which is successfully compared with the target device feature exists in the at least one device feature, and the DPU is determined to have the target forwarding capability corresponding to the target device feature;
and determining that the DPU does not have the target forwarding capability corresponding to the target equipment feature.
Optionally, the apparatus 600 is further specifically configured to:
registering a preset interface of the paravirtualization equipment;
and determining the first hardware capability set through a communication negotiation mode between the preset interface and the DPU.
Optionally, the apparatus 600 is further specifically configured to:
and when the DPU does not have the target forwarding capability corresponding to the target equipment characteristics, reporting an error.
It can be seen that the hardware capability calling apparatus described in the embodiment of the present application is applied to a para-virtualization device, and is configured to receive hardware capability configuration information sent by a user management and control platform, where the hardware capability configuration information includes a target device feature, acquire a first hardware capability set, where the first hardware capability set includes a hardware capability corresponding to at least one device feature, determine, according to the first hardware capability set, whether a data processor DPU has a target forwarding capability corresponding to the target device feature, and when the DPU has the target forwarding capability corresponding to the target device feature, issue, according to a preset manner, the target forwarding capability to the DPU, so that flexibility in hardware capability calling can be improved.
It can be understood that the functions of each program module of the hardware capability calling apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods as described in the above method embodiments, and the computer includes a paravirtualization device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a paravirtualized apparatus.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing embodiments have been described in detail, and specific examples are used herein to explain the principles and implementations of the present application, where the above description of the embodiments is only intended to help understand the method and its core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A hardware capability calling method is applied to a paravirtualized device, and comprises the following steps:
receiving hardware capability configuration information sent by a user management and control platform, wherein the hardware capability configuration information comprises target equipment characteristics;
acquiring a first hardware capability set, wherein the first hardware capability set comprises hardware capabilities corresponding to at least one device feature;
judging whether the data processor DPU has target forwarding capacity corresponding to the target equipment characteristics according to the first hardware capacity set;
and when the DPU has the target forwarding capability corresponding to the target equipment characteristics, the target forwarding capability is issued to the DPU according to a preset mode.
2. The method of claim 1, wherein the issuing the target forwarding capability to the DPU according to the preset manner comprises:
sending the target forwarding capability to the DPU through a paravirtualized network control queue;
and/or the presence of a gas in the atmosphere,
and issuing the target forwarding capability to the DPU in a writing mode through a designated register in a configuration capability set of the paravirtualized device.
3. The method according to claim 1 or 2, wherein said determining, according to the first hardware capability set, whether the data processor DPU has a target forwarding capability corresponding to the target device feature includes:
comparing the at least one device feature with the target device feature;
the device feature which is successfully compared with the target device feature exists in the at least one device feature, and the DPU is determined to have the target forwarding capability corresponding to the target device feature;
and determining that the DPU does not have the target forwarding capability corresponding to the target equipment feature if the equipment feature which is successfully compared with the target equipment feature does not exist in the at least one equipment feature.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
registering a preset interface of the paravirtualization equipment;
and determining the first hardware capability set through a communication negotiation mode between the preset interface and the DPU.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
and when the DPU does not have the target forwarding capability corresponding to the target equipment characteristics, reporting an error.
6. A hardware capability calling apparatus applied to a paravirtualized device, the apparatus comprising: a receiving unit, an obtaining unit, a judging unit and a sending unit, wherein,
the receiving unit is used for receiving hardware capability configuration information sent by a user management and control platform, wherein the hardware capability configuration information comprises target equipment characteristics;
the acquiring unit is configured to acquire a first hardware capability set, where the first hardware capability set includes a hardware capability corresponding to at least one device feature;
the judging unit is used for judging whether the data processor DPU has the target forwarding capability corresponding to the target equipment feature according to the first hardware capability set;
and the issuing unit is used for issuing the target forwarding capability to the DPU according to a preset mode when the DPU has the target forwarding capability corresponding to the target equipment characteristic.
7. The apparatus of claim 6, wherein, in the aspect of issuing the target forwarding capability to the DPU according to the preset manner, the issuing unit is specifically configured to:
sending the target forwarding capability to the DPU through a paravirtualized network control queue;
and/or the presence of a gas in the gas,
and issuing the target forwarding capacity to the DPU in a writing mode through a designated register in a configuration capacity set of the paravirtualized equipment.
8. The apparatus according to claim 6 or 7, wherein, in said determining, according to the first hardware capability set, whether the data processor DPU has a target forwarding capability corresponding to the target device feature, the determining unit is specifically configured to:
comparing the at least one device feature with the target device feature;
the device feature which is successfully compared with the target device feature exists in the at least one device feature, and the DPU is determined to have the target forwarding capability corresponding to the target device feature;
and determining that the DPU does not have the target forwarding capability corresponding to the target equipment feature.
9. A para-virtualization device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN202210659407.XA 2022-06-13 2022-06-13 Hardware capability calling method and related equipment Pending CN114936072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210659407.XA CN114936072A (en) 2022-06-13 2022-06-13 Hardware capability calling method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210659407.XA CN114936072A (en) 2022-06-13 2022-06-13 Hardware capability calling method and related equipment

Publications (1)

Publication Number Publication Date
CN114936072A true CN114936072A (en) 2022-08-23

Family

ID=82867520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210659407.XA Pending CN114936072A (en) 2022-06-13 2022-06-13 Hardware capability calling method and related equipment

Country Status (1)

Country Link
CN (1) CN114936072A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115099978A (en) * 2022-08-25 2022-09-23 深圳星云智联科技有限公司 Data processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115099978A (en) * 2022-08-25 2022-09-23 深圳星云智联科技有限公司 Data processing method and device
CN115099978B (en) * 2022-08-25 2022-11-18 深圳星云智联科技有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
KR101530472B1 (en) Method and apparatus for remote delivery of managed usb services via a mobile computing device
EP3595244A1 (en) Network slice management method, unit and system
CN107222324B (en) Service configuration method and device of network service
US10936371B2 (en) Method for resource allocation and related products
WO2019042294A1 (en) Resource allocation method and related product
US20190281503A1 (en) Management Method, Management Unit, and System
EP3166254B1 (en) Virtual-operation administration and maintenance deployment method, device and virtual network system
WO2014101531A1 (en) Creating method and device for virtual base station
WO2018089634A1 (en) Network slice management
US20130227565A1 (en) Apparatus and method for managing application for guest operating system
US11743117B2 (en) Streamlined onboarding of offloading devices for provider network-managed servers
CN112583615B (en) VNF instantiation method, NFVO, VIM, VNFM and system
US9621633B2 (en) Flow director-based low latency networking
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
WO2019047708A1 (en) Resource configuration method and related product
CN114936072A (en) Hardware capability calling method and related equipment
CN114780049A (en) Screen projection display method and device, electronic equipment and storage medium
EP2939131A1 (en) Reservation and execution image writing of native computing devices
CA2790782C (en) Method and apparatus for implementing network device function of wireless communication terminal
CN107967178B (en) Resource allocation method, resource allocation device, mobile terminal and medium
WO2022220880A1 (en) Managing a software application
CN110365839B (en) Shutdown method, shutdown device, shutdown medium and electronic equipment
US9668082B2 (en) Virtual machine based on a mobile device
CN110401554B (en) VNF (virtual network function) nanotube management method, device, system, electronic equipment and storage medium
US20170109177A1 (en) System and Method for Reducing Boot Time of a Workload Configuration on a Target Server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination