Method and apparatus for processing data based on physical host

    公开(公告)号:US10564889B2

    公开(公告)日:2020-02-18

    申请号:US16133961

    申请日:2018-09-18

    Inventor: Xun Ni Rui Zhao

    Abstract: A method and apparatus for processing data based on a physical host are provided. A specific embodiment of the method includes: acquiring a read and write request sent by a virtual machine; sending the read and write request to a host machine for processing; starting masking a preset signal interrupting a current process, in response to the host machine completing processing the read and write request; and terminating masking the preset signal in response to completing following: updating a first array recording information of the processed read and write request, updating a second array recording information of completing the acquired read and write request, and informing the virtual machine of a processing result of the read and write request. The embodiment provides a signal masking mechanism, and guarantees data consistency, thereby improving the operating efficiency of a physical host.

    I/O request processing method in virtual machine, device and computer readable medium

    公开(公告)号:US10997099B2

    公开(公告)日:2021-05-04

    申请号:US16167197

    申请日:2018-10-22

    Abstract: An I/O request processing method in a virtual machine, a device and a computer readable medium are provided. When a backend device of a Guest kernel begins to process an I/O request chain submitted by a frontend device of the Guest kernel into a shared I/O processing memory, the method obtains a starting position of the I/O request chain in the I/O processing memory; according to the starting position of the I/O request chain, sets an element corresponding to the starting position of the I/O request chain in an I/O state array as a value different from initial values of all positions; and upon finishing processing the I/O request chain, sets an element corresponding to the starting position of the I/O request chain in an I/O request state array as a value identical with initial values.

    I/O REQUEST PROCESSING METHOD IN VIRTUAL MACHINE, DEVICE AND COMPUTER READABLE MEDIUM

    公开(公告)号:US20190129873A1

    公开(公告)日:2019-05-02

    申请号:US16167197

    申请日:2018-10-22

    Abstract: The present disclosure provides an I/O request processing method in a virtual machine, a device and a computer readable medium. The method comprises: when a backend device of a Guest kernel begins to process an I/O request chain submitted by a frontend device of the Guest kernel into a shared I/O processing memory, obtaining a starting position of the I/O request chain in the I/O processing memory; according to the starting position of the I/O request chain, setting an element corresponding to the starting position of the I/O request chain in an I/O state array as a value different from initial values of all positions; upon finishing processing the I/O request chain, setting an element corresponding to the starting position of the I/O request chain in an I/O request state array as a value identical with initial values. According to the technical solution of the present disclosure, it is possible to ensure synchronization of information of the frontend device of the Guest kernel and the backend device of the Guest kernel, and ensure continuation of the processing of the I/O request chain after recovery of the fault of interruption of the backend device of the Guest kernel, without causing the I/O processing to be hung.

Patent Agency Ranking