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

Claim 0:
1. A data transmission method, wherein the data transmission method comprises:
adding, by a 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;
storing, by the virtual machine, the predefined data structure in one entry of a plurality of entries of a virtual input/output ring (Vring) of a target virtual accelerator, 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;
obtaining, by a daemon process on a host machine, the first information from the virtual input/output ring;
determining, by the daemon process, according to the first information, second information that can be recognized by a hardware accelerator;
sending, by the daemon process, the second information to the hardware accelerator;
obtaining, by the hardware accelerator, to-be-accelerated data according to the second information; and
performing, by the hardware accelerator, the acceleration operation on the to-be-accelerated data.