US 11,755,513 B2
Data processing and writing method based on virtual machine memory identification field and devise
Shengwen Lu, Hangzhou (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on May 18, 2021, as Appl. No. 17/323,279.
Claims priority of application No. 202010427381.7 (CN), filed on May 19, 2020; and application No. 202010880767.3 (CN), filed on Aug. 27, 2020.
Prior Publication US 2021/0365394 A1, Nov. 25, 2021
Int. Cl. G06F 13/28 (2006.01); G06F 13/16 (2006.01); G06F 21/44 (2013.01); G06F 9/455 (2018.01)
CPC G06F 13/28 (2013.01) [G06F 9/45558 (2013.01); G06F 13/1668 (2013.01); G06F 21/44 (2013.01); G06F 2009/45583 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A data processing method, comprising:
sending, by a network interface card of a first device, a request packet to a second device, wherein the request packet is used to request to read data stored in a destination storage area of the second device;
receiving, by the network interface card, a response packet that is sent by the second device in response to the request packet, wherein the response packet comprises the data; and
initiating, by the network interface card based on the response packet, direct memory access to a storage address to write the data into a memory area to which the storage address points,
wherein
the memory area to which the storage address points belongs to a memory area of a host of the first device,
the response packet comprises a virtual machine memory identification that points to a corresponding memory area configured by the host for the virtual machine included in the memory area to which the storage address points,
the request packet comprises the virtual machine memory identification,
the request packet and the response packet each comprise a virtual machine memory identification field, and the virtual machine memory identification is set in the virtual machine memory identification field,
the virtual machine memory identification field in the request packet is obtained by occupying at least a portion of a local permission L_key field of the request packet, at least a portion of a length field of the request packet, or at least a portion of an address field of the request packet, and
the virtual machine memory identification field in the response packet is obtained by occupying at least a portion of a remote permission R_key field of the response packet, at least a portion of a length field of the response packet, or at least a portion of an address field of the response packet.