主权项 |
1. A method for data communication in a virtualized environment, comprising:
receiving, by a graphics driver, a driver function call request sent by a graphics processing interface, wherein the driver function call request is sent by the graphics processing interface after receiving a system function call request sent by a graphics processing program, wherein the system function call request is used to call a write function of the graphics processing interface, wherein the driver function call request is used to call a write function of the graphics driver, and wherein an entry address of the write function of the graphics processing interface is stored in a function stack; determining, by the graphics driver, the entry address of the write function of the graphics processing interface according to an entry address of the write function of the graphics driver and a quantity of layers of the function stack; reading, from the entry address of the write function of the graphics processing interface, an offset and a length that are of a vertex buffer of the graphics processing program; and sending, by the graphics driver to a rendering server, data in a data area corresponding to the offset and the length that are of the vertex buffer, wherein data in the data area is modified by the graphics processing program. |