This invention discloses a
virtual machine memory processing method, apparatus, product,
virtualization server, and medium, relating to the field of
server virtualization. In this method, a virtual input / output backend module set on the
virtual machine monitor in the host and a virtual input / output frontend module on the
virtual machine ensure that the virtual input / output backend module can obtain information about
direct memory access memory allocation events. Secondly, after obtaining the information about
direct memory access memory allocation events, the virtual input / output backend module locks the addresses involved in the memory allocation events, meaning the locked addresses satisfy the
direct memory access requirements. This dynamic locking of virtual
machine memory improves memory utilization and reduces resource waste. Furthermore, since only a portion of the virtual
machine memory is locked, when the host is replaced, only the locked memory portion needs to be migrated, reducing the amount of data to be migrated after a host replacement.