Acceleration capacity adjustment method and apparatus for adjusting acceleration capacity of virtual machine
AssigneeHuawei Technologies Co., Ltd.
InventorJianbang Wu
Life of this patent
Estimating the term…
Abstract
An acceleration capacity adjustment method for adjusting an acceleration capacity of a virtual machine includes determining a to-be-adjusted virtual machine and an acceleration capacity requirement of the to-be-adjusted virtual machine; and reconfiguring, based on the to-be-adjusted virtual machine and the acceleration capacity requirement, an acceleration capacity of at least one virtual accelerator device that has been allocated to the to-be-adjusted virtual machine.
Claims20
An acceleration capacity adjustment method comprising:
- determining a to-be-adjusted virtual machine and an acceleration capacity requirement of the to-be-adjusted virtual machine based on an acceleration capacity allocation request;
- reconfiguring an acceleration capacity of a virtual accelerator device that has been allocated to the to-be-adjusted virtual machine based on the acceleration capacity requirement to adjust an acceleration capacity of the to-be-adjusted virtual machine, wherein the acceleration capacity requirement comprises a first acceleration type, a first algorithm type, and a first acceleration capacity value;
- reconfiguring a second acceleration capacity value in target configuration information when the target configuration information exists in configuration information of the virtual accelerator device;
- and
- adding new target configuration information to the virtual accelerator device when target configuration information does not exist in configuration information of the virtual accelerator device,
- wherein the new target configuration information comprises the first acceleration type, the first algorithm type, and the first acceleration capacity value of the acceleration capacity requirement.
An acceleration capacity adjustment method performed by an accelerator agent, comprising:
- receiving an acceleration capacity adjustment request carrying a virtual machine identifier and an acceleration capacity adjustment instruction;
- determining a virtual machine corresponding to the virtual machine identifier;
- and
- configuring a virtual accelerator device that has been allocated to the virtual machine according to the acceleration capacity adjustment instruction,
- wherein the acceleration capacity adjustment instruction carries an acceleration capacity allocation instruction, a first acceleration type, a first algorithm type, and a first acceleration capacity value, and
- wherein the acceleration capacity allocation instruction instructs the accelerator agent to allocate an acceleration capacity to the virtual accelerator device that has been allocated to the virtual machine.
A physical host, comprising:
- a memory comprising instructions;
- and
- a processor coupled to the memory and configured to execute the instructions, which cause the processor to be configured to:
- determine a to-be-adjusted virtual machine and an acceleration capacity requirement of the to-be-adjusted virtual machine based on an acceleration capacity allocation request;
- reconfigure an acceleration capacity of a virtual accelerator device that has been allocated to the to-be-adjusted virtual machine based on the to-be-adjusted virtual machine and the acceleration capacity requirement, wherein the acceleration capacity requirement comprises a first acceleration type, a first algorithm type, and a first acceleration capacity value;
- reconfigure a second acceleration capacity value in target configuration information when the target configuration information exists in configuration information of the virtual accelerator device;
- and
- add new target configuration information to the virtual accelerator device when no target configuration information exists in configuration information of the virtual accelerator device,
- wherein the new target configuration information comprises the first acceleration type, the first algorithm type, and the first acceleration capacity value of the acceleration capacity requirement.
A physical host, comprising:
- a memory comprising instructions;
- and
- a processor coupled to the memory and configured to execute the instructions, which cause the processor to be configured to:
- receive an acceleration capacity adjustment request carrying a virtual machine identifier and an acceleration capacity adjustment instruction;
- determine a virtual machine corresponding to the virtual machine identifier;
- and
- configure a virtual accelerator device that has been allocated to the virtual machine according to the acceleration capacity adjustment instruction,
- wherein the acceleration capacity adjustment instruction carries an acceleration capacity allocation instruction, a first acceleration type, a first algorithm type, and a first acceleration capacity value, and
- wherein the acceleration capacity allocation instruction instructs the physical host to allocate an acceleration capacity to the virtual accelerator device that has been allocated to the virtual machine.
Dependencies are inferred from the claim text.