CN115460172B - Device address allocation method, device, computer device, medium and program product - Google Patents

Device address allocation method, device, computer device, medium and program product Download PDF

Info

Publication number
CN115460172B
CN115460172B CN202211007664.1A CN202211007664A CN115460172B CN 115460172 B CN115460172 B CN 115460172B CN 202211007664 A CN202211007664 A CN 202211007664A CN 115460172 B CN115460172 B CN 115460172B
Authority
CN
China
Prior art keywords
address
equipment
peripheral
virtual
allocated
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.)
Active
Application number
CN202211007664.1A
Other languages
Chinese (zh)
Other versions
CN115460172A (en
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.)
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry 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 Dawning Information Industry Co Ltd filed Critical Dawning Information Industry Co Ltd
Priority to CN202211007664.1A priority Critical patent/CN115460172B/en
Publication of CN115460172A publication Critical patent/CN115460172A/en
Application granted granted Critical
Publication of CN115460172B publication Critical patent/CN115460172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a device address allocation method, a device address allocation apparatus, a computer device, a medium and a program product. The method comprises the following steps: and acquiring an address to be allocated to the target device when the network virtualization function is not started for the peripheral device and an address to be allocated to the target device when the network virtualization function is started for the peripheral device, acquiring a candidate address except for the addresses of the peripheral device and the virtual device to be allocated if the two addresses are consistent, and allocating the device address to the target device according to the candidate address. By adopting the method, when the network virtualization function of the peripheral equipment is not required to be started, the equipment addresses of the peripheral equipment when the network virtualization function of the peripheral equipment is started can be allocated to other equipment except the peripheral equipment, so that the access quantity requirements of the virtual machine, the display setting type application program and/or the network setting type application program can be met, the target equipment can be accurately accessed, and the accuracy of the access result is improved.

Description

Device address allocation method, device, computer device, medium and program product
Technical Field
The present application relates to the field of information technologies, and in particular, to a device address allocation method, apparatus, computer device, medium, and program product.
Background
The Single Root I/O Virtualization (SR-IOV) technology is a hardware-based Virtualization solution, and can improve the performance and scalability of a computer system. Typically, some physical high speed serial computer expansion bus (Peripheral Component Interconnect express, PCIe) devices within a computer system have SR-IOV functionality, and physical PCIe devices create virtual PCIe devices through the SR-IOV functionality to meet the needs of accessing PCIe devices through different ports.
However, although this can satisfy the requirement of accessing the PCIe device, there is a problem that the access result is inaccurate when accessing other devices other than the PCIe device.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a device address allocation method, apparatus, computer device, medium, and program product.
In a first aspect, an embodiment of the present application provides a device address allocation method, where the method includes:
acquiring a first equipment address and a second equipment address to be allocated to target equipment; the first device address is an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device;
If the first equipment address is consistent with the second equipment address, acquiring a candidate address except the equipment addresses to be allocated of the peripheral equipment and the virtual equipment;
and allocating a device address for the target device according to the candidate address.
The embodiment of the application can acquire the address to be allocated to the target device when the network virtualization function is not started for the peripheral device and the address to be allocated to the target device when the network virtualization function is started for the peripheral device, acquire the candidate address except the device addresses to be allocated to the peripheral device and the virtual device if the two addresses are consistent, and allocate the device address to the target device according to the candidate address; the method can also allocate the device address when the network virtualization function is started for the peripheral device to other devices except the peripheral device when the network virtualization function is started for the peripheral device is not required, so that the access requirements of the virtual machine, the display setting application program and/or the network setting application program can be met, the virtual machine, the display setting application program and/or the network setting application program can accurately access the target device, and the accuracy of the access results of the virtual machine, the display setting application program and/or the network setting application program is improved.
In one embodiment, obtaining a candidate address excluding device addresses to be allocated by the peripheral device and the virtual device includes:
acquiring the number of the virtual devices;
according to the number of the virtual devices, obtaining reserved device addresses corresponding to the virtual devices;
and determining addresses except the device address to be allocated by the peripheral device and the reserved device address as candidate addresses.
The embodiment of the application can acquire the candidate addresses except the addresses of the peripheral equipment and the equipment to be allocated of the virtual equipment, so that the virtual machine, the display setting application program and/or the network setting application program can correctly access the target equipment, and the address to be allocated for the target equipment when the peripheral equipment does not start the network virtualization function is kept consistent with the address to be allocated for the target equipment when the peripheral equipment assumes to start the network virtualization function.
In one embodiment, obtaining the number of devices of the virtual device includes:
and analyzing configuration information of the peripheral equipment to determine the equipment number of the virtual equipment which can be constructed when the peripheral equipment starts a network virtualization function.
According to the embodiment of the application, the number of the virtual devices which can be constructed when the peripheral device starts the network virtualization function can be obtained through the actual configuration information of the peripheral device, so that the number of the virtual devices which can be constructed can be determined before the network virtualization function of the peripheral device is started, and the reserved device address of the virtual device can be determined.
In one embodiment, according to the number of devices of the virtual device, obtaining a reserved device address corresponding to the virtual device includes:
determining the address number of reserved device addresses according to the device number of the virtual devices;
and determining the reserved device address corresponding to the virtual device based on the device address of the peripheral device and the address number of the reserved device addresses.
According to the embodiment of the application, the reserved device addresses corresponding to the virtual devices can be obtained according to the number of the devices of the virtual devices, and continuous device addresses are distributed to peripheral devices, the virtual devices and/or target devices, so that preparation can be made for reducing the complexity of device access.
In one embodiment, before acquiring the first device address and the second device address to be allocated to the target device, the method further includes:
detecting whether the peripheral equipment needs to start a network virtualization function;
if the peripheral equipment needs to start the network virtualization function, executing the operation of starting the network virtualization function of the peripheral equipment;
and if the peripheral equipment does not need to start the network virtualization function, executing the step of acquiring the first equipment address and the second equipment address to be allocated by the target equipment.
The embodiment of the application can detect whether the peripheral equipment needs to start the network virtualization function, if the peripheral equipment needs to start the network virtualization function, the operation of starting the network virtualization function of the peripheral equipment is executed, and if the peripheral equipment does not need to start the network virtualization function, the step of acquiring the first equipment address and the second equipment address to be allocated by the target equipment is executed; according to the method, whether the peripheral equipment needs to start the network virtualization function or not can be detected according to the access requirement, whether the peripheral equipment needs to start the network virtualization function or not is then determined according to the detection result, and the peripheral equipment does not need to start the network virtualization function when the peripheral equipment does not need to start the network virtualization function, so that the running memory of the peripheral equipment can be reduced, and the running speed of the peripheral equipment can be improved.
In one embodiment, the first device address is determined according to a device address to be allocated by the peripheral device and/or a reserved device address corresponding to the virtual device; the second device address is determined according to the device address to be allocated by the peripheral device and the reserved device address corresponding to the virtual device.
The embodiment of the application can obtain the address to be allocated to the target device when the peripheral device does not start the network virtualization function and the address to be allocated to the target device when the peripheral device starts the network virtualization function in advance when the peripheral device does not start the network virtualization function, so as to allocate the correct device address to the target device according to the access requirement.
In a second aspect, an embodiment of the present application provides an apparatus address allocation device, where the apparatus includes:
the address to be allocated acquisition module is used for acquiring a first equipment address and a second equipment address to be allocated to the target equipment; the first device address is an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device;
The candidate address acquisition module is used for acquiring candidate addresses except for the device addresses to be allocated of the peripheral device and the virtual device when the first device address is consistent with the second device address;
and the device address allocation module is used for allocating the device address to the target device according to the candidate address.
In a third aspect, an embodiment of the present application provides a processor, including a memory, where the memory stores a computer program, where the processor implements the steps of the method in any of the embodiments of the first aspect when the processor executes the computer program.
In a fourth aspect, an embodiment of the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any of the methods of the embodiments of the first aspect described above.
In a fifth aspect, the present application provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any of the embodiments of the first aspect described above.
Drawings
FIG. 1 is an internal block diagram of a computer device in one embodiment;
FIG. 2 is a flow chart of a method of device address assignment in one embodiment;
FIG. 3 is a flow chart of a method for obtaining candidate addresses except for device addresses to be assigned by a peripheral device and a virtual device in another embodiment;
FIG. 4 is a flowchart of a method for obtaining a reserved device address corresponding to a virtual device according to the number of devices of the virtual device in another embodiment;
FIG. 5 is a flowchart of another embodiment of a method for determining whether a peripheral device is turned on for network virtualization;
fig. 6 is a block diagram of the device address assignment apparatus in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The device address allocation method provided by the application can be applied to the processor in the computer device shown in fig. 1. The processor is arranged in the computer equipment, and can run a computer program stored in a memory in the computer equipment to realize the equipment address allocation method. Alternatively, the computer program may be a basic input output (Basic Input Output System, BIOS) program, system software, programming software, application software, or the like. In the embodiment of the application, the processor can run a BIOS program to realize the device address allocation method. Alternatively, the BIOS program may be a program that is cured onto a ROM chip on a motherboard within the computer. Alternatively, the processor may be implemented by a stand-alone server or a server cluster formed by a plurality of servers, and the specific form of the processor is not limited in this embodiment, and the execution body of the method embodiment is described below by taking the processor as an example.
In some scenarios, according to the access requirements of the virtual machine, the display setting class application program and/or the network setting class application program for accessing the PCIe devices, it is determined that the virtual machine, the display setting class application program and/or the network setting class application program need to access the PCIe devices, and the PCIe devices need to be reconstructed to meet the access requirements, however, the virtual machine, the display setting class application program and/or the network setting class application program may access devices other than the PCIe devices, based on this, in order to enable the virtual machine, the display setting class application program and/or the network setting class application program to correctly access the devices other than the PCIe devices, in addition to the device addresses need to be correctly allocated to the PCIe devices, a device address allocation method is provided by the embodiment of the present application, and the embodiment of the present application is described by taking the processor in fig. 1 as an example. Fig. 2 is a schematic flow chart of a device address allocation method, which may be implemented by the following steps:
s100, acquiring a first equipment address and a second equipment address to be allocated to target equipment; the first device address is an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device.
Specifically, the peripheral device may be a hard disk, a display card, a board card, a USB device, a memory card, and the like. In the embodiment of the present application, however, the peripheral device is a physical PCIe device. Alternatively, the physical PCIe device may be a board card, a graphics card, a memory card, or the like. Alternatively, the first device address and the second device address are different, but the first device address and the second device address may each be addresses combined by letters, numbers, or other characters.
Alternatively, the network virtualization function of the peripheral device may be understood as a function that the peripheral device can extend one or more virtual devices. Alternatively, the virtual device may be a virtual PCIe device. Alternatively, the virtual PCIe device may be a virtual board card, a display card, a memory card, or the like, and the virtual PCIe device has the same function as the physical PCIe device. Optionally, the target device may be a current physical PCIe device and a device other than a virtual PCIe device extended by the current physical PCIe device, where the device may be a memory, a processor, or the like in the computer device, and may also be a virtual PCIe device corresponding to another physical PCIe device and/or another physical PCIe device other than the current physical PCIe device and the virtual PCIe device extended by the current physical PCIe device.
It should be noted that, the processor may obtain an address to be allocated to the target device (the first device address) when the peripheral device does not start the network virtualization function, and an address to be allocated to the target device (the second device address) when the peripheral device starts the network virtualization function. The peripheral equipment is virtual equipment corresponding to the inextensible peripheral equipment under the condition that the network virtualization function is not started by the peripheral equipment; the peripheral device can expand the corresponding virtual device of the peripheral device under the condition of starting the network virtualization function.
Alternatively, the first device address to be allocated by the target device may be understood as a virtual device address allocated to the target device before the processor allocates a real device address to the target device when the peripheral device does not start the network virtualization function. However, when the peripheral device does not turn on the network virtualization function, the virtual device address allocated by the processor to the target device may coincide with the real device address eventually allocated by the processor to the target device.
In addition, the second device address to be allocated to the target device may be understood as a virtual device address allocated to the target device before the processor allocates a real device address to the target device when the peripheral device starts the network virtualization function. The second device address to be allocated to the target device when the peripheral device assumes that the network virtualization function is started may be identical to the actual device address that the processor finally allocates to the target device when the peripheral device actually starts the network virtualization function. Alternatively, the target device may be one or more.
Typically, the locations between the peripheral device, the virtual device, and the target device are ordered as peripheral device, virtual device, and target device. If there are a plurality of virtual devices and a plurality of target devices, the position ranks of the plurality of virtual devices are consecutive, and the position ranks of the plurality of target devices are also consecutive. It will be appreciated that the processor may assign different device addresses to the peripheral device, the virtual device, and/or the target device in accordance with a positional ordering among the peripheral device, the virtual device, and the target device.
For example, if the peripheral device, a virtual device corresponding to the peripheral device, and a device address to be allocated to a target device need to be acquired, the device addresses to be allocated to the peripheral device, the virtual device corresponding to the peripheral device, and the target device may be address 1, address 3, and address 7 in sequence; if the device addresses to be allocated to the peripheral device and the target device need to be acquired, the device addresses to be allocated to the peripheral device and the target device may be sequentially address 1 and address 2.
In an embodiment of the present application, the peripheral device may be one or more, and whether the peripheral device has a network virtualization function turned on may be determined according to the access requirements of the virtual machine, the display setup class application, and/or the network setup class application to access the PCIe device. Optionally, the access requirements may include information about memory, functions, lifecycles, etc. of the PCIe device to be accessed.
And S200, if the first equipment address is consistent with the second equipment address, acquiring a candidate address except the equipment addresses to be allocated of the peripheral equipment and the virtual equipment.
Specifically, the processor may determine whether an address to be allocated to the target device (a first device address) when the peripheral device does not start the network virtualization function is consistent with an address to be allocated to the target device (a second device address) when the peripheral device starts the network virtualization function, and if it is determined that the address to be allocated to the target device is consistent with the address, may acquire a candidate address excluding the device addresses to be allocated to the peripheral device and the virtual device based on the address to be allocated to the target device when the peripheral device starts the network virtualization function.
Alternatively, the first device address and the second device address may each be combined by numerals, letters, and other characters. When the first equipment address is consistent with the second equipment address, the character lengths in the first equipment address and the second equipment address are the same; when the first device address and the second device address are inconsistent, the character lengths in the first device address and the second device address are not identical. Alternatively, the device address to be allocated for the peripheral device and the device address to be allocated for the virtual device may be different arbitrary addresses, which is not limited in any way. Alternatively, the candidate address may be any other address than the device address to be allocated by the peripheral device and the virtual device.
It can be understood that the processor can sequentially compare the characters in the first equipment address and the second equipment address according to the preset sequence of the characters in the equipment addresses, and when the characters in the same position in the first equipment address and the second equipment address are different, it can be determined that the first equipment address and the second equipment address are inconsistent; when the character at the last position in the first device address and the second device address is compared to be the same, it may be determined that the first device address and the second device address are identical.
S300, distributing the device address to the target device according to the candidate address.
It should be noted that the number of candidate addresses may be one or more, and the total number of candidate addresses may be determined according to the total number of target devices. The format of the candidate address is the same as the format of the device address to be allocated by the peripheral device and the format of the device address to be allocated by the virtual device.
Continuing with the above example, when the peripheral device starts the network virtualization function and the first device address and the second device address are consistent, it may be determined that the first device address and the second device address are address 1, address 3, and address 7 in sequence, then the candidate address for obtaining the device address to be allocated to the peripheral device and the virtual device, from which the peripheral device and the virtual device are removed, may be address 7, and address 7 may be determined as the device address to which the target device has been allocated after the device address is allocated.
The first equipment address is determined according to the equipment address to be allocated by the peripheral equipment and/or a reserved equipment address corresponding to the virtual equipment; the second device address is determined according to the device address to be allocated by the peripheral device and the reserved device address corresponding to the virtual device.
In the embodiment of the present application, the first device address may be an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the processor may determine the first device address to be allocated to the target device according to the device address to be allocated to the peripheral device, the reserved device address corresponding to the virtual device, and the number of devices of the target device. In this case, the first device address may be the same as the candidate address described above.
Meanwhile, the first device address may be an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the processor may determine the first device address to be allocated to the target device according to the device address to be allocated to the peripheral device and the number of devices of the target device. In this case, the first device address may be understood as a device address to be allocated to the target device, which is not determined in combination with the reserved device address.
It may be understood that the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function, and therefore, the processor may determine the second device address to be allocated to the target device according to the device address to be allocated to the peripheral device, the reserved device address corresponding to the virtual device, and the number of devices of the target device.
The embodiment of the application can pre-determine the address to be allocated to the target device when the peripheral device does not start the network virtualization function and the address to be allocated to the target device when the peripheral device starts the network virtualization function, and further can accurately allocate the device address to the target device when the peripheral device does not start the network virtualization function based on the access requirement and the address to be allocated to the target device, which are sent to the peripheral device by the virtual machine, the display setting application program and/or the network setting application program.
The device address allocation method provided by the embodiment of the application can obtain the address to be allocated to the target device when the network virtualization function is not started for the peripheral device and the address to be allocated to the target device when the network virtualization function is started for the peripheral device, and if the two addresses are consistent, obtain the candidate address except the device addresses to be allocated to the peripheral device and the virtual device, and allocate the device address to the target device according to the candidate address; according to the method, when the network virtualization function of the peripheral equipment is not required to be started, the equipment addresses of the peripheral equipment when the network virtualization function of the peripheral equipment is started can be allocated to other equipment except the peripheral equipment, so that the number requirements of the virtual machine, the display setting application program and/or the network setting application program for accessing the peripheral equipment can be met, the target equipment can be accurately accessed, and the accuracy of an access result is improved.
The procedure of how to acquire the candidate address in particular will be described below. In an embodiment, as shown in fig. 3, the step of obtaining the candidate address except the device addresses to be allocated to the peripheral device and the virtual device in S200 may be implemented by the following steps:
s210, acquiring the number of the virtual devices.
In particular, the processor may determine the number of devices of the virtual device based on access requirements sent to the physical PCIe device by the virtual machine, the display setup class application, and/or the network setup class application. In an embodiment of the present application, the access requirement may be a number of devices to be accessed to the PCIe device and/or a total amount of data to be processed by the PCIe device to be accessed, etc. Optionally, the PCIe device to be accessed may be a physical PCIe device and a virtual PCIe device corresponding to the physical PCIe device.
It should be noted that the processor may determine the number of devices of the virtual device according to the number of devices to be accessed to the PCIe device minus the number of physical PCIe devices in the access requirement. Meanwhile, the processor can also divide the data volume which can be processed by the physical PCIe device in the access requirement by the total data volume which is to be processed by the PCIe device to be accessed in the access requirement to obtain the device number of the PCIe device to be accessed.
For example, if the determined number of devices to access the PCIe device is 3, the physical PCIe device needs to start a network virtualization function to extend 2 virtual PCIe devices (i.e., virtual devices); if the determined number of devices to access the PCIe device is 1, the physical PCIe device does not need to open a network virtualization function to extend the virtual PCIe device (i.e., the virtual device).
The peripheral device does not actually start the network virtualization function before the candidate address is obtained, so that the number of devices of the virtual device needs to be obtained in a virtual mode or a mode of obtaining a real result to be determined through analysis of actual information, so that the candidate addresses except for the addresses of the peripheral device and the devices to be allocated by the virtual device are further obtained. Based on this, in an embodiment, the step of obtaining the number of devices of the virtual device in S210 may include: and analyzing configuration information of the peripheral equipment to determine the equipment number of the virtual equipment which can be constructed when the peripheral equipment starts a network virtualization function.
In the embodiment of the application, the configuration information of the peripheral device can be factory information of the peripheral device when the peripheral device is in factory. The configuration information may include attribute information of the peripheral device, extension information supported when the peripheral device starts a network virtualization function, and the like. Optionally, the attribute information of the peripheral device may be a factory time, vendor, lifecycle, memory space size, and an achievable processing function of the peripheral device. Alternatively, the processing functions that the peripheral device may implement may be functions of data storage, data operation, data migration, data restoration, and the like. Optionally, the expression forms of the attribute information of the peripheral device and the extension information of the peripheral device in the configuration information may be different, the attribute information of the peripheral device in the configuration information and the extension information of the peripheral device may carry identifiers, and the identifiers carried by the attribute information and the extension information of the peripheral device may be different.
It is understood that the function information supported when the peripheral device starts the network virtualization function may be the number of devices, functions, memory space size, etc. of virtual devices that the peripheral device starts the network virtualization function and can extend. Generally, the functions of the virtual device are the same as those of the peripheral device, and the memory space size of the virtual device is the same as that of the peripheral device.
The processor may extract extension information supported by the peripheral device when the peripheral device starts the network virtualization function from configuration information of the peripheral device, and then analyze or parse the extracted extension information to obtain the number of devices of the virtual device that can be constructed when the peripheral device starts the network virtualization function. Optionally, the processor may extract the extension information from the configuration information according to an identifier carried by the attribute information of the peripheral device and an identifier carried by the extension information of the peripheral device, and may extract the extension information from the configuration information according to the attribute information of the peripheral device and the expression form of the extension information of the peripheral device, and of course, may also extract the extension information in other manners capable of distinguishing the attribute information of the peripheral device and the extension information of the peripheral device in the configuration information.
According to the embodiment of the application, the number of the virtual devices which can be constructed when the peripheral device starts the network virtualization function can be obtained through the actual configuration information of the peripheral device, so that the number of the virtual devices which can be constructed can be determined before the network virtualization function of the peripheral device is started, and the reserved device address of the virtual device can be determined.
S220, obtaining reserved device addresses corresponding to the virtual devices according to the number of the devices of the virtual devices.
Specifically, the processor may determine, according to a mapping relationship between the number of devices of the virtual device and the reserved device addresses, the reserved device address corresponding to the virtual device; the processor may further determine a reserved device address corresponding to the virtual device according to a conversion relationship between the number of devices of the virtual device and the reserved device address. Of course, the reserved device address corresponding to the virtual device may also be determined in other manners.
Alternatively, the number of devices of the virtual device may be equal to 1, or greater than 1. Alternatively, the reserved device address may be one or more.
In order to reduce the complexity of device access, a continuous device address may be allocated to a peripheral device, a virtual device, and/or a target device, in preparation for reducing the complexity of device access. Based on this, in an embodiment, as shown in fig. 4, the step of obtaining the reserved device address corresponding to the virtual device according to the number of devices of the virtual device in S220 may be implemented by the following steps:
S221, determining the address number of the reserved device addresses according to the device number of the virtual devices.
In the embodiment of the application, the processor can determine the device number of the virtual device as the address number of the reserved device address. That is, each virtual device has a corresponding reserved device address.
S222, determining the reserved device address corresponding to the virtual device based on the device address of the peripheral device and the address number of the reserved device address.
Specifically, the processor may preset the device address of the peripheral device, and acquire each reserved device address according to the preset device address of the peripheral device and the address number of the reserved device addresses. Alternatively, the preset device address may be a device address reserved for the virtual device.
For example, if the device address of the peripheral device is preset to be address 1 and the number of addresses of the reserved device addresses is 2, the 2 reserved device addresses may be address 3 and address 5, respectively, and in addition, the two reserved device addresses may be address 4 and address 7, respectively.
In the embodiment of the application, the processor can determine the reserved device address by adopting continuous addresses according to the device address of the peripheral device. Continuing with the previous example, where the device address of the peripheral device is preset to address 1 and the number of addresses of the reserved device addresses is 2, then these 2 reserved device addresses may be address 2 and address 3.
According to the embodiment of the application, the reserved device addresses corresponding to the virtual devices can be obtained according to the number of the devices of the virtual devices, and continuous device addresses are distributed to peripheral devices, the virtual devices and/or target devices, so that preparation can be made for reducing the complexity of device access.
And S230, determining addresses except the device address of the peripheral device and the reserved device address as candidate addresses.
Further, the processor may determine to remove consecutive addresses other than the device address of the peripheral device and the reserved device address based on the device address of the peripheral device, the reserved device address, and the number of devices of the target device. And determines the connection address as a candidate address. Alternatively, the total number of consecutive addresses may be equal to the number of devices of the target device. Alternatively, the total number of consecutive addresses may be equal to the total number of candidate addresses.
For example, if the device address of the peripheral device is address 1, the reserved device addresses are address 2 and address 3, and the target device is 3, then 3 consecutive addresses except the device address of the peripheral device and the reserved device address may be address 4, address 5, and address 6.
The device address allocation method provided by the embodiment of the application can acquire the candidate addresses except the device addresses to be allocated of the peripheral device and the virtual device, so that the virtual machine, the display setting application program and/or the network setting application program can correctly access the target device, and the address to be allocated for the target device when the peripheral device does not start the network virtualization function is kept consistent with the address to be allocated for the target device when the peripheral device assumes to start the network virtualization function.
Before the device address allocation method is executed in the embodiment of the present application, it is further required to determine, according to the access requirements sent by the virtual machine, the display setting application program and/or the network setting application program to the physical PCIe device, whether the physical PCIe device needs to start the network virtualization function. Based on this, in an embodiment, as shown in fig. 5, the above device address allocation method may be further implemented by the following steps before the step in S100 is performed:
s400, detecting whether the peripheral equipment needs to start a network virtualization function.
Specifically, the processor may detect whether the peripheral device needs to turn on the network virtualization function according to the access requirements sent to the physical PCIe device by the virtual machine, the display setup class application, and/or the network setup class application. The processor may analyze or parse the access requirements to determine a number of devices of the virtual machine, the display setup class application, and/or the network setup class application to access the PCIe device.
It should be noted that, in the embodiment of the present application, the access requirement is the number of devices to be accessed and/or the total data amount to be processed by the PCIe device to be accessed. Optionally, the processor may perform arithmetic operation on the number of devices to be accessed to the PCIe device in the access requirement and the number of physical PCIe devices to obtain an arithmetic operation result, determine whether the arithmetic operation result is equal to a preset threshold, and further determine whether the peripheral device needs to start a network virtualization function according to the determination result.
Alternatively, the arithmetic operations may be addition operations, subtraction operations, multiplication operations, division operations, exponent operations, and/or logarithmic operations, among others. Alternatively, the preset threshold may be any constant. However, in the embodiment of the present application, the arithmetic operation is a subtraction operation, and the above-mentioned predetermined threshold value is equal to 0.
S500, if the peripheral equipment needs to start the network virtualization function, executing the operation of starting the network virtualization function of the peripheral equipment.
Specifically, if the processor determines that the result of subtracting the number of physical PCIe devices from the number of devices to be accessed in the access requirement is equal to 0, it may determine that the peripheral device needs to start the network virtualization function, and further execute the operation of starting the network virtualization function of the peripheral device. The operation of executing the network virtualization function of the peripheral device can be realized through the following process that the processor generates an opening instruction of the corresponding virtualization function and sends the network opening instruction to the peripheral device, and the peripheral device starts the network virtualization function after receiving the opening instruction and responding to the opening instruction. Meanwhile, the processor can also generate a control signal corresponding to the network virtualization function, the control signal is sent to the peripheral equipment, and the peripheral equipment starts the network virtualization function according to the received control signal. Of course, the operation of turning on the network virtualization function of the peripheral device may also be performed in other manners.
Alternatively, the control signal may be a high level signal. If the control signal is a high level signal, the peripheral device may be instructed to turn on the network virtualization function.
And S600, if the peripheral equipment does not need to start the network virtualization function, executing the step of acquiring the first equipment address and the second equipment address to be allocated by the target equipment.
In the embodiment of the present application, if the processor does not generate the start instruction of the virtualized function or the control signal corresponding to the start of the network virtualized function, it may indicate that the peripheral device does not need to start the network virtualized function, and at this time, the processor may directly execute the step in S100.
The device address allocation method provided by the embodiment of the application can detect whether the peripheral device needs to start the network virtualization function, if the peripheral device needs to start the network virtualization function, the operation of starting the network virtualization function of the peripheral device is executed, and if the peripheral device does not need to start the network virtualization function, the step of acquiring the first device address and the second device address to be allocated by the target device is executed; according to the method, whether the peripheral equipment needs to start the network virtualization function or not can be detected according to the access requirement, whether the peripheral equipment needs to start the network virtualization function or not is then determined according to the detection result, and the peripheral equipment does not need to start the network virtualization function when the peripheral equipment does not need to start the network virtualization function, so that the running memory of the peripheral equipment can be reduced, and the running speed of the peripheral equipment can be improved.
For the convenience of understanding of those skilled in the art, the device address allocation method provided by the present application will be described by taking an execution body as an example of a processor, and specifically, the method includes:
(1) Detecting whether the peripheral device needs to start a network virtualization function.
(2) And if the peripheral equipment needs to start the network virtualization function, executing the operation of starting the network virtualization function of the peripheral equipment.
(3) If the peripheral equipment does not need to start the network virtualization function, executing the step of acquiring the first equipment address and the second equipment address to be allocated by the target equipment; the first device address is an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device.
(4) If the first device address is consistent with the second device address, analyzing configuration information of the peripheral device, and determining the number of virtual devices which can be constructed when the peripheral device starts a network virtualization function.
(5) And determining the address number of the reserved device addresses according to the device number of the virtual devices.
(6) And determining the reserved device address corresponding to the virtual device based on the device address of the peripheral device and the address number of the reserved device addresses.
(7) Addresses other than the device address of the peripheral device and the reserved device address are determined as candidate addresses.
(8) And allocating a device address for the target device according to the candidate address.
The first equipment address is determined according to the equipment address to be allocated by the peripheral equipment and/or a reserved equipment address corresponding to the virtual equipment; the second device address is determined according to the device address to be allocated by the peripheral device and the reserved device address corresponding to the virtual device.
The implementation process of the above (1) to (8) can be specifically referred to the description of the above embodiment, and its implementation principle and technical effects are similar, and will not be described herein again.
It should be understood that, although the steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 6, there is provided a device address allocation apparatus, the apparatus comprising: a to-be-allocated address acquisition module 11, a candidate address acquisition module 12, and a device address allocation module 13, wherein:
an address to be allocated obtaining module 11, configured to obtain a first device address and a second device address to be allocated to a target device; the first device address is an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device;
a candidate address obtaining module 12, configured to obtain, when the first device address and the second device address are consistent, a candidate address except for the device addresses to be allocated by the peripheral device and the virtual device;
a device address allocation module 13, configured to allocate a device address to the target device according to the candidate address.
The first equipment address is determined according to the equipment address to be allocated by the peripheral equipment and/or a reserved equipment address corresponding to the virtual equipment; the second device address is determined according to the device address to be allocated by the peripheral device and the reserved device address corresponding to the virtual device.
The device address allocation apparatus provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
In one embodiment, the candidate address retrieval module 12 includes: the device comprises a device number acquisition unit, a reserved address acquisition unit and a candidate address determination unit, wherein:
the device number acquisition unit is used for acquiring the number of devices of the virtual device;
the reserved address acquisition unit is used for acquiring reserved device addresses corresponding to the virtual devices according to the number of the devices of the virtual devices;
and the candidate address determining unit is used for determining addresses except the device address of the peripheral device and the reserved device address as candidate addresses.
The device address allocation apparatus provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
In one embodiment, the device number obtaining unit is specifically configured to analyze configuration information of the peripheral device, and determine the number of devices of the virtual device that can be constructed when the peripheral device starts the network virtualization function.
The device address allocation apparatus provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
In one embodiment, the reserved address acquisition unit includes: an address number determination subunit and a reserved address determination subunit, wherein:
an address number determining subunit, configured to determine, according to the device number of the virtual device, the address number of the reserved device address;
and the reserved address determining subunit is used for determining the reserved device address corresponding to the virtual device according to the device address of the peripheral device and the address quantity of the reserved device address.
The device address allocation apparatus provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
In one embodiment, the device address allocation apparatus further includes: the device comprises a virtualized function detection module, a function starting module and a device address acquisition module, wherein:
the virtualization function detection module is used for detecting whether the peripheral equipment needs to start a network virtualization function;
the function starting module is used for executing the operation of starting the network virtualization function of the peripheral equipment when the peripheral equipment needs to start the network virtualization function;
and the device address acquisition module is used for executing the step of acquiring the first device address and the second device address to be allocated by the target device when the peripheral device does not need to start the network virtualization function.
The device address allocation apparatus provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The specific definition of the device address allocation apparatus may be referred to above as the definition of the device address allocation method, and will not be described here. The respective modules in the above-described device address assignment means may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be seen in FIG. 1. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store configuration information for the peripheral device. The network interface of the computer device is for communicating with an external endpoint via a network connection. The computer program is executed by a processor to implement a device address allocation method.
It will be appreciated by those skilled in the art that the architecture shown in fig. 1 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements may be implemented, as a particular computer device may include more or less components than those shown, or may be combined with some components, or may have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring a first equipment address and a second equipment address to be allocated to target equipment; the first device address is an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device;
if the first equipment address is consistent with the second equipment address, acquiring a candidate address except the equipment addresses to be allocated of the peripheral equipment and the virtual equipment;
and allocating a device address for the target device according to the candidate address.
In one embodiment, a storage medium having a computer program stored thereon, the computer program when executed by a processor performing the steps of:
acquiring a first equipment address and a second equipment address to be allocated to target equipment; the first device address is an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device;
if the first equipment address is consistent with the second equipment address, acquiring a candidate address except the equipment addresses to be allocated of the peripheral equipment and the virtual equipment;
and allocating a device address for the target device according to the candidate address.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a first equipment address and a second equipment address to be allocated to target equipment; the first device address is an address to be allocated to the target device when the peripheral device does not start the network virtualization function, and the second device address is an address to be allocated to the target device when the peripheral device starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device;
If the first equipment address is consistent with the second equipment address, acquiring a candidate address except the equipment addresses to be allocated of the peripheral equipment and the virtual equipment;
and allocating a device address for the target device according to the candidate address.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method for assigning device addresses, the method comprising:
acquiring a first equipment address and a second equipment address to be allocated to target equipment; the first equipment address is an address to be allocated to the target equipment when the peripheral equipment does not start the network virtualization function, and the second equipment address is an address to be allocated to the target equipment when the peripheral equipment starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device;
If the first equipment address is consistent with the second equipment address, acquiring a candidate address except the equipment addresses to be allocated of the peripheral equipment and the virtual equipment;
and determining the candidate address as the target equipment allocation equipment address.
2. The method of claim 1, wherein the obtaining a candidate address other than the device addresses to be allocated by the peripheral device and the virtual device comprises:
acquiring the number of the virtual devices;
acquiring a reserved device address corresponding to the virtual device according to the number of the virtual devices;
and determining addresses except the device address to be allocated by the peripheral device and the reserved device address as the candidate addresses.
3. The method of claim 2, wherein the obtaining the number of devices of the virtual device comprises:
and analyzing the configuration information of the peripheral equipment to determine the equipment number of the virtual equipment which can be constructed when the peripheral equipment starts the network virtualization function.
4. The method of claim 3, wherein the obtaining, according to the number of devices of the virtual device, a reserved device address corresponding to the virtual device includes:
Determining the address number of the reserved device addresses according to the device number of the virtual devices;
and determining the reserved device address corresponding to the virtual device based on the device address of the peripheral device and the address number of the reserved device address.
5. The method of claim 3, wherein the obtaining, according to the number of devices of the virtual device, a reserved device address corresponding to the virtual device includes:
and determining the reserved device address corresponding to the virtual device according to the mapping relation between the number of the devices of the virtual device and the reserved device address.
6. The method according to claim 1 or 2, wherein prior to the obtaining the first device address and the second device address to be assigned by the target device, the method further comprises:
detecting whether the peripheral equipment needs to start the network virtualization function or not;
if the peripheral equipment needs to start the network virtualization function, executing the operation of starting the network virtualization function of the peripheral equipment;
and if the peripheral equipment does not need to start the network virtualization function, executing the step of acquiring the first equipment address and the second equipment address to be allocated by the target equipment.
7. The method according to claim 1 or 2, wherein the first device address is determined according to a device address to be allocated by the peripheral device and/or a reserved device address corresponding to the virtual device; and the second equipment address is determined according to the equipment address to be allocated by the peripheral equipment and the reserved equipment address corresponding to the virtual equipment.
8. A device address assignment apparatus, the apparatus comprising:
the address to be allocated acquisition module is used for acquiring a first equipment address and a second equipment address to be allocated to the target equipment; the first equipment address is an address to be allocated to the target equipment when the peripheral equipment does not start the network virtualization function, and the second equipment address is an address to be allocated to the target equipment when the peripheral equipment starts the network virtualization function; the target device is a device other than the virtual device of the peripheral device;
the candidate address acquisition module is used for acquiring candidate addresses except for the device addresses to be allocated by the peripheral device and the virtual device when the first device address is consistent with the second device address;
and the equipment address allocation module is used for allocating equipment addresses to the target equipment according to the candidate addresses.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the device address allocation method of any of claims 1-7 when the computer program is executed.
10. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the device address allocation method of any of claims 1-7.
CN202211007664.1A 2022-08-22 2022-08-22 Device address allocation method, device, computer device, medium and program product Active CN115460172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211007664.1A CN115460172B (en) 2022-08-22 2022-08-22 Device address allocation method, device, computer device, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211007664.1A CN115460172B (en) 2022-08-22 2022-08-22 Device address allocation method, device, computer device, medium and program product

Publications (2)

Publication Number Publication Date
CN115460172A CN115460172A (en) 2022-12-09
CN115460172B true CN115460172B (en) 2023-12-05

Family

ID=84298045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211007664.1A Active CN115460172B (en) 2022-08-22 2022-08-22 Device address allocation method, device, computer device, medium and program product

Country Status (1)

Country Link
CN (1) CN115460172B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013080386A (en) * 2011-10-04 2013-05-02 Toyota Motor Corp Information processing device and address management method
CN103593147A (en) * 2013-11-07 2014-02-19 华为技术有限公司 Data reading method and device
CN103685608A (en) * 2013-12-24 2014-03-26 北京启明星辰信息技术股份有限公司 Method and device for automatically configuring IP (Internet Protocol) address of security virtual machine
CN104685479A (en) * 2012-08-29 2015-06-03 超威半导体公司 Virtual input/output memory management unit wihtin a guest virtual machine
CN105684357A (en) * 2013-11-07 2016-06-15 国际商业机器公司 Management of addresses in virtual machines
CN107783913A (en) * 2016-08-31 2018-03-09 华为技术有限公司 A kind of resource access method and computer applied to computer
CN108777634A (en) * 2018-05-24 2018-11-09 许继电气股份有限公司 A kind of PCIe switch and its end-point addresses space allocation method
CN111212451A (en) * 2019-12-26 2020-05-29 曙光信息产业股份有限公司 Method and device for switching network transmission channel
CN111813584A (en) * 2020-08-05 2020-10-23 Oppo广东移动通信有限公司 Memory sharing method and device, electronic equipment and storage medium
DE102019117783A1 (en) * 2019-05-15 2020-11-19 Samsung Electronics Co., Ltd. Application processor and system-on-chip
CN112148421A (en) * 2019-06-29 2020-12-29 华为技术有限公司 Virtual machine migration method and device
CN113194017A (en) * 2021-04-08 2021-07-30 广州极飞科技股份有限公司 Device communication control method, device, system and storage medium
CN114237812A (en) * 2021-11-10 2022-03-25 上海浦东发展银行股份有限公司 Container network management system
CN114710560A (en) * 2022-03-14 2022-07-05 北京华耀科技有限公司 Data processing method and system, proxy equipment and terminal equipment
CN114756332A (en) * 2022-05-19 2022-07-15 阿里巴巴(中国)有限公司 Data access method, device and system based on virtual machine device direct connection

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7958298B2 (en) * 2008-03-26 2011-06-07 Lsi Corporation System and method for providing address decode and virtual function (VF) migration support in a peripheral component interconnect express (PCIE) multi-root input/output virtualization (IOV) environment
US8954721B2 (en) * 2011-12-08 2015-02-10 International Business Machines Corporation Multi-chip initialization using a parallel firmware boot process
US9720717B2 (en) * 2013-03-14 2017-08-01 Sandisk Technologies Llc Virtualization support for storage devices
US10318162B2 (en) * 2016-09-28 2019-06-11 Amazon Technologies, Inc. Peripheral device providing virtualized non-volatile storage
US10606762B2 (en) * 2017-06-16 2020-03-31 International Business Machines Corporation Sharing virtual and real translations in a virtual cache

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013080386A (en) * 2011-10-04 2013-05-02 Toyota Motor Corp Information processing device and address management method
CN104685479A (en) * 2012-08-29 2015-06-03 超威半导体公司 Virtual input/output memory management unit wihtin a guest virtual machine
CN103593147A (en) * 2013-11-07 2014-02-19 华为技术有限公司 Data reading method and device
CN105684357A (en) * 2013-11-07 2016-06-15 国际商业机器公司 Management of addresses in virtual machines
CN103685608A (en) * 2013-12-24 2014-03-26 北京启明星辰信息技术股份有限公司 Method and device for automatically configuring IP (Internet Protocol) address of security virtual machine
CN107783913A (en) * 2016-08-31 2018-03-09 华为技术有限公司 A kind of resource access method and computer applied to computer
CN108777634A (en) * 2018-05-24 2018-11-09 许继电气股份有限公司 A kind of PCIe switch and its end-point addresses space allocation method
DE102019117783A1 (en) * 2019-05-15 2020-11-19 Samsung Electronics Co., Ltd. Application processor and system-on-chip
CN112148421A (en) * 2019-06-29 2020-12-29 华为技术有限公司 Virtual machine migration method and device
CN111212451A (en) * 2019-12-26 2020-05-29 曙光信息产业股份有限公司 Method and device for switching network transmission channel
CN111813584A (en) * 2020-08-05 2020-10-23 Oppo广东移动通信有限公司 Memory sharing method and device, electronic equipment and storage medium
CN113194017A (en) * 2021-04-08 2021-07-30 广州极飞科技股份有限公司 Device communication control method, device, system and storage medium
CN114237812A (en) * 2021-11-10 2022-03-25 上海浦东发展银行股份有限公司 Container network management system
CN114710560A (en) * 2022-03-14 2022-07-05 北京华耀科技有限公司 Data processing method and system, proxy equipment and terminal equipment
CN114756332A (en) * 2022-05-19 2022-07-15 阿里巴巴(中国)有限公司 Data access method, device and system based on virtual machine device direct connection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于Micro2440视觉处理平台的构建;李红岩;邱联奎;;微型机与应用(第02期);87-89 *
实时系统的虚拟内存技术;徐荣;计算机工程与科学;120-122 *

Also Published As

Publication number Publication date
CN115460172A (en) 2022-12-09

Similar Documents

Publication Publication Date Title
CN112035397B (en) Electronic system including FPGA and method of operating the same
CN107861790B (en) Virtual machine disk space expansion method and device, host machine and readable storage medium
CN110908865A (en) Memory leakage monitoring method and device and electronic equipment
US20210357258A1 (en) Method, device and medium for allocating resource based on type of pci device
CN115482876A (en) Storage device testing method and device, electronic device and storage medium
US20150339145A1 (en) Virtual machine service system and virtual machine service providing method thereof
US11808806B2 (en) Allocation of test resources to perform a test of memory components
US10203893B2 (en) Memory channel storage device detection
CN115460172B (en) Device address allocation method, device, computer device, medium and program product
CN111444117B (en) Method and device for realizing fragmentation of storage space, storage medium and electronic equipment
CN110990207B (en) BPS memory test method, system, terminal and storage medium based on Whitley platform
CN112133357A (en) eMMC testing method and device
US10445009B2 (en) Systems and methods of controlling memory footprint
CN114691496A (en) Unit testing method, unit testing device, computing equipment and medium
CN110858184B (en) PCI bus device enumeration method and device
CN108874468B (en) Application program loading method and device, computer equipment and storage medium
CN112148486A (en) Memory page management method, device and equipment and readable storage medium
CN116541334B (en) PCIE equipment operation time file processing method, device and equipment
US11847052B2 (en) Memory allocation apparatus and method
CN109684031B (en) Method and device for accessing virtual machine control block and CPU core
US8799616B2 (en) Method and system for preferred CPU binding on virtual partitions
CN108763105B (en) Method and device for improving writing performance of solid-state storage equipment and computer equipment
CN115629845B (en) IO data generation method and device, computer equipment and storage medium
CN111782136B (en) Multi-application-program-oriented self-adaptive flash memory solid-state disk channel allocation method and device
CN110795378B (en) Equipment number distribution method of serial equipment, intelligent terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant