发明名称 Zero copy transmission in virtualization environment
摘要 A system for providing a zero copy transmission in virtualization environment includes a hypervisor that receives a guest operating system (OS) request pertaining to a data packet associated with a guest application, where the data packet resides in a buffer of the guest OS or a buffer of the guest application and has at least a partial header created during the networking stack processing. The hypervisor further sends, to a network device driver, a request to transfer the data packet over a network via a network device, where the request identifies the data packet residing in the buffer of the guest OS or the buffer of the guest application, and the hypervisor refrains from copying the data packet to a hypervisor buffer.
申请公布号 US9535732(B2) 申请公布日期 2017.01.03
申请号 US200912625452 申请日期 2009.11.24
申请人 Red Hat Israel, Ltd. 发明人 Tsirkin Michael S.
分类号 G06F9/455;G06F9/54 主分类号 G06F9/455
代理机构 Lowenstein Sandler LLP 代理人 Lowenstein Sandler LLP
主权项 1. A method comprising: receiving, by a hypervisor of a host computing system, a first request of a first guest operating system (OS) to send a first data packet associated with a first guest application to a first network device driver of a first network device for transmission over a network, the first data packet having gone through networking stack processing performed by the first guest OS, the first data packet residing in a buffer of the first guest OS or a buffer of the first guest application and having at least a partial header created during the networking stack processing; allocating a hypervisor buffer accessible by the hypervisor but not the first guest OS or a second guest OS; in response to the first request of the first guest OS, querying, by a processing device executing the hypervisor, the first network device driver on whether the first network device has a zero copy capability; responsive to receiving a response from the first network device driver that the first network device has the zero copy capability: refraining from copying the first data packet to the hypervisor buffer; andnotifying, by the hypervisor, the first network device driver about the first data packet residing in the buffer of the first guest OS or the buffer of the first guest application to cause the first data packet to be retrieved from the buffer of the first guest OS or the buffer of the first guest application by the first network device for transmission over the network; in response to a second request of the second guest OS to send a second data packet to a second network device driver of a second network device, querying, by the processing device, the second network device driver on whether the second network device has a zero copy capability; and responsive to receiving a response from the second network device driver that the second network device does not have the zero copy capability: copying the second data packet from a buffer of the second guest OS to the hypervisor buffer; andnotifying, by the hypervisor, the second network device driver about the second data packet residing in the hypervisor buffer to cause the second data packet to be retrieved from the hypervisor buffer by the second network device for transmission over the network.
地址 Raanana IL
您可能感兴趣的专利