Information processing method, physical machine, and PCIE device
AssigneeHuawei Technologies Co., Ltd.
InventorsChangchun Ouyang, Shui Cao, Zihao Xiang
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to information processing methods, physical machines, and peripheral component interconnect express (PCIE) devices. In one example method, a PCIE device receives, in a live migration process of a to-be-migrated virtual machine (VM), a packet corresponding to the to-be-migrated VM, where the to-be-migrated VM is one of a plurality of VMs. The PCIE device determines a direct memory access (DMA) address based on the packet. The PCIE device sends the DMA address to a physical function (PF) driver.
Claims20
An information processing method, wherein the information processing method is used in a physical machine, and wherein the method comprises:
- receiving, by a peripheral component interconnect express (PCIE) device in a live migration process of a first virtual machine (VM) migrating from a first host to a second host, a packet sent to the first VM, wherein the packet includes a destination address indicating the first VM, wherein the PCIE device and the first host are disposed on the physical machine, wherein a physical function (PF) driver managing the PCIE device and a virtual machine manager (VMM) managing the first VM run in the first host, and wherein the second host is disposed on the physical machine or another physical machine;
- determining, by the PCIE device based on the packet, a direct memory access (DMA) address corresponding to the first VM;
- transferring, by the PCIE device, the DMA address to the PF driver;
- generating, by the PF driver, a dirty bit used to indicate the DMA address;
- and
- writing, by the PF driver, the dirty bit into a dirty bitmap, so that the VMM obtains the dirty bitmap, wherein the dirty bitmap is used to store an address of data that needs to be migrated in the live migration process of the first VM.
An information processing method, wherein the information processing method is used in a peripheral component interconnect express (PCIE) device, and wherein the method comprises:
- receiving, in a live migration process of a first virtual machine (VM) migrating from a host to a second host, a packet sent to the first VM, wherein the packet includes a destination address indicating the first VM, wherein the PCIE device and the host are disposed on a physical machine, wherein a physical function (PF) driver managing the PCIE device and a virtual machine manager (VMM) managing the first VM run in the host, and wherein the second host is disposed on the physical machine or another physical machine;
- determining, based on the packet, a direct memory access (DMA) address corresponding to the first VM;
- and
- transferring the DMA address to the PF driver for processing by the host.
A physical machine, wherein a peripheral component interconnect express (PCIE) device and a first host are disposed on the physical machine, and wherein:
- in a live migration process of a first virtual machine (VM) migrating from the first host to a second host, the PCIE device is configured to:
- receive a packet sent to the first VM, wherein the packet includes a destination address indicating the first VM, wherein a physical function (PF) driver managing the PCIE device and a virtual machine manager (VMM) managing the first VM run in the first host, and wherein the second host is disposed on the physical machine or another physical machine;
- determine, based on the packet, a direct memory access (DMA) address corresponding to the first VM;
- and
- transfer the DMA address to the PF driver;
- and
- the PF driver is configured to:
- generate a dirty bit used to indicate the DMA address;
- and
- write the dirty bit into a dirty bitmap, so that the VMM obtains the dirty bitmap, wherein the dirty bitmap is used to store an address of data that needs to be migrated in the live migration process of the first VM.
A peripheral component interconnect express (PCIE) device, wherein the PCIE device is configured to perform operations comprising:
- receiving, in a live migration process of a first virtual machine (VM) migrating from a host to a second host, a packet sent to the first VM, wherein the packet includes a destination address indicating the first VM, wherein the PCIE device and the host are disposed on a physical machine, wherein a physical function (PF) driver managing the PCIE device and a virtual machine manager (VMM) managing the first VM run in the host, and wherein the second host is disposed on the physical machine or another physical machine;
- determining, based on the packet, a direct memory access (DMA) address corresponding to the first VM;
- and
- transferring the DMA address to the PF driver for processing by the host.
Dependencies are inferred from the claim text.