Patent ID: 11922202
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 13:
14. A computer, comprising:
a hardware accelerator;
a virtual machine;
a host machine comprising a daemon process;
a memory configured to store instructions;
a target virtual accelerator comprising a virtual input/output ring (Vring), wherein the Vring comprises a vring_desc table comprising entries that comprise information for performing the acceleration operation, wherein the predefined data structure occupies only one entry of the vring_desc table, and wherein each row in the vring_desc table comprises an address field, a length field, a flags field, and a next field;
a processor coupled to the hardware accelerator, the virtual machine, the host machine, and the memory and configured to execute the instructions to cause the computer to:
add, by the virtual machine, first information for performing an acceleration operation to a predefined data structure, wherein the first information comprises multiple pieces of information respectively corresponding to multiple parameters;
store, by the virtual machine, the predefined data structure in one entry of a plurality of entries of the virtual input/output ring;
obtain, by the daemon process, the first information from the virtual input/output ring;
determine, by the daemon process, according to the first information, second information that can be recognized by the hardware accelerator;
send, by the daemon process, the second information to the hardware accelerator;
obtain, by the hardware accelerator, to-be-accelerated data according to the second information; and
perform, by the hardware accelerator, the acceleration operation on the to-be-accelerated data.