Non-volatile memory device assisted real-time migration of virtual machine data
By configuring non-volatile memory devices and using data structures to track and provide changed parts of VM data, efficient real-time migration of virtual machine data is achieved, solving the problems of migration complexity and high performance impact in the existing technology.
Patent Information
- Application Number
- CN202280089415.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-08
- Filing Date
- 2022-11-15
- Publication Date
- 2024-08-30
AI Technical Summary
Existing technology is difficult to implement real-time migration of virtual machine (VM) data assisted by non-volatile memory devices, especially when a virtual hard disk (VHD) is not used, resulting in a complicated migration process and a large impact on performance.
By configuring non-volatile memory devices, the real-time migration function of VM data is realized, using data structures such as mapped page bitmaps and dirty page bitmaps to track changes to the namespace by the VM, and providing these data structures to the host computing device. Perform migrations to reduce the impact on device performance.
It achieves efficient real-time migration of VM data, reduces the impact on the performance of non-volatile memory devices, simplifies the migration process, and improves migration efficiency.
Smart Images

Figure CN118575159A
Abstract
Description
Background Art
[0001] A data center is a facility that houses computer systems and various networking, storage, and other related components. For example, a data center can provide computing services to businesses and individuals as a remote computing service or provide "software as a service" (e.g., cloud computing).
[0002] To facilitate efficient use of data center resources, virtualization technology allows a physical computing device to host one or more virtual machines ("VMs") that appear to operate as physical computing devices. Data centers can typically create, maintain, and delete VMs in a dynamic manner.
[0003] Live migration is a mechanism used to move the state (e.g., memory, storage, and networking) of a running VM from one host computing device to another in a manner that minimizes the downtime of the VM. Live migration is used in many scenarios, including disruptive firmware updates, cluster defragmentation, host or network hardware updates, load balancing, and other scenarios to minimize VM downtime.
[0004] VMs typically utilize virtual hard disks ("VHDs") for mass data storage. A VHD can contain content typically found on a physical mass storage device, such as disk partitions and a file system, which in turn can contain files and folders. Because a VHD is a file, it can be easily moved between physical hosts during a live migration.
[0005] However, when VHD is not utilized, live migration of VM data may be much more difficult. For example, some non-volatile memory devices may be configured in a manner that enables a VM to directly access a physical portion of the available non-volatile storage space provided by the device. While such a configuration may provide many advantages, such as high performance access to storage, previous solutions for live migration of VHD will not operate in these configurations.
[0006] It is with respect to these and other technical challenges that the disclosures made herein are addressed. Summary of the invention
[0007] Disclosed herein is a technique for live migration of VM data assisted by a non-volatile memory device. Through implementation of the disclosed technique, a non-volatile memory device may be configured with functionality for implementing a live migration process of data written directly by a VM to a non-volatile memory on the device. This functionality may be implemented in a manner that minimizes the performance impact on the device. Other technical advantages not specifically mentioned herein may also be achieved through implementation of the disclosed subject matter.
[0008] As briefly discussed above and discussed in more detail below, the disclosed technology includes functionality for live migration of VM data assisted by a non-volatile memory device. In one embodiment, the non-volatile memory device is a single physical function non-volatile memory device ("SFND"). In other embodiments, the non-volatile memory device is a multiple physical function non-volatile memory device ("MFND"). In this regard, it should be understood that although the embodiments described below are primarily presented in the context of MFNDs, the disclosed embodiments may also be used with SFNDs and potentially with other types of non-volatile memory devices.
[0009] To provide such functionality, the non-volatile memory device is configured to implement commands for implementing live migration of data written directly to the non-volatile memory on the non-volatile memory device by the VM. As an example, the non-volatile memory device may be configured to implement commands for tracking changes made by the associated VM to a namespace on the non-volatile memory of the non-volatile memory device. In response to receiving a request to execute such a command, the non-volatile memory device may begin tracking changes made by the VM to the namespace in one or more data structures.
[0010] In various embodiments, one or more data structures may be implemented as a bitmap of mapped pages. The bitmap of mapped pages is a bitmap that identifies mapped pages from a namespace assigned to a VM. Mapped pages are pages that have been allocated due to a write command or a write zero command, such as those defined by the Non-Volatile Memory Express ("NVMe") specification.
[0011] The one or more data structures may also include a dirty page bitmap, which is a bitmap that identifies dirty pages in the namespace assigned to the VM. Dirty pages are pages that have been modified due to a write command or a write zero command, such as those defined by the NVMe specification. The size of the page mapping to a single bit in the bitmap of mapped pages and the bitmap of dirty pages may be reported to the host computing device by the MFND.
[0012] The non-volatile memory device may also be configured to implement a command for providing one or more data structures identifying changes made by the VM to the namespace to the host computing device. In response to receiving a request to perform such a command, the non-volatile memory device returns one or more data structures, such as but not limited to the bitmap of mapped pages and the bitmap of dirty pages described above. The host computing device may utilize the one or more data structures to identify the data changed by the VM in the namespace and to retrieve the data from the non-volatile memory device. The host computing device may then migrate the retrieved data to the namespace on a second non-volatile memory device, which may be referred to herein as a "target" non-volatile memory device.
[0013] The non-volatile memory device may also be configured to implement commands for enabling a host computing device to retrieve a device internal state of a sub-physical function on a non-volatile memory device assigned to a VM. In response to a request to execute such a command, the non-volatile memory device may retrieve the device internal state from the sub-physical function and provide the device internal state to the host computing device. The non-volatile memory device may also be configured to implement commands for restoring the device internal state to the sub-physical function, such as on a target non-volatile memory device.
[0014] In some embodiments, the request to execute the above command is received from the host computing device at a parent physical function of the non-volatile memory device. In other embodiments, such as embodiments where one or more non-volatile memory devices are shared between several or more host computing devices, the request to execute the above command is received at a child physical function of the non-volatile memory device that has been designated as a migration controller.
[0015] To perform live migration of VM data in a namespace stored on a non-volatile memory device (which may be referred to herein as a "source" non-volatile memory device), the host computing device first requests the source non-volatile memory device to track changes made to the namespace by the associated VM using the above-mentioned command. In response, the source non-volatile memory device tracks changes made to the namespace by the VM and stores one or more data structures, such as those described above that identify changed portions of the namespace.
[0016] In turn, the host computing device requests one or more data structures from the source non-volatile memory device. The host computing device then utilizes the one or more data structures to identify the modified portions of the namespace and requests the contents of those changed portions from the source MFND. In turn, the source non-volatile memory device provides the changed data to the host computing device. The host computing device then causes the data changed by the VM in the namespace to be written to the namespace on the target non-volatile memory device. This process can be repeated until all changed data has been migrated from the namespace on the source non-volatile memory device to the namespace on the target non-volatile memory device.
[0017] The host computing device may also utilize the above-mentioned command for retrieving the device internal state of the sub-physical function on the source non-volatile memory device assigned to the VM to be migrated. In response to this, the host computing device receives the device internal state from the source non-volatile memory device and restores the device internal state to the sub-physical function on the target non-volatile memory device. When the namespace and the device internal state have been migrated to the target non-volatile memory device, the VM can be restored on the host computing device of the target non-volatile memory device.
[0018] It should be understood that the above subject matter can be implemented as a computer-controlled apparatus, a computer-implemented method, a computing device or an article of manufacture, such as a computer-readable medium. These and various other features will be apparent by reading the following detailed description and examining the associated drawings.
[0019] This Summary is provided to introduce in simplified form a brief description of some aspects of the disclosed technology, which will also be described in the Detailed Description below. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is this Summary intended to be used to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to implementations that solve any or all of the disadvantages noted in any part of this disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a computing architecture diagram showing aspects of the configuration and operation of a MFND that may implement the embodiments disclosed herein, according to one embodiment;
[0021] Figure 2A is a computing architecture diagram showing aspects of a mechanism disclosed herein for tracking changes made to a namespace by a source VM, according to one embodiment;
[0022] Figure 2Bis a computing architecture diagram showing aspects of a mechanism disclosed herein for retrieving a bitmap of a mapping page from a MFND according to one embodiment;
[0023] Figure 2C is a computing architecture diagram showing aspects of a mechanism disclosed herein for reading a mapping page from a source namespace and writing the mapping page to a namespace provided by a target sub-physical function of a MFND, according to one embodiment;
[0024] Figure 2D is a computing architecture diagram showing aspects of a mechanism disclosed herein for retrieving a bitmap of dirty pages from a MFND according to one embodiment;
[0025] Figure 2E is a computing architecture diagram showing aspects of a mechanism disclosed herein for reading dirty pages from a source namespace and writing dirty pages to a namespace provided by a target sub-physical function of a MFND, according to one embodiment;
[0026] Figure 2F is a computational architecture diagram showing aspects of a mechanism disclosed herein for reading device internal state for a source sub-physical function and writing the device internal state to a target sub-physical function of an MFND according to one embodiment;
[0027] Figure 2G is a computing architecture diagram showing aspects of a mechanism disclosed herein for recovering a target VM on a target host computing device according to one embodiment;
[0028] Figure 3A is a timing diagram showing a routine illustrating aspects of a method for live migration of VM data assisted by a non-volatile memory device according to one embodiment disclosed herein;
[0029] Figure 3B FIG. 1 is a diagram showing live migration of VM data assisted by a non-volatile memory device according to an embodiment disclosed herein. Figure 3A A timing diagram of additional aspects of the routine shown in ;
[0030] Figure 3C FIG. 1 is a diagram showing live migration of VM data assisted by a non-volatile memory device according to an embodiment disclosed herein. Figure 3A and Figure 3B A timing diagram of additional aspects of the routine shown in ;
[0031] Figure 4is a computing architecture diagram showing aspects of an alternative topology of embodiments disclosed herein in which live migration of VM data assisted by non-volatile memory devices may be implemented according to one embodiment;
[0032] Figure 5 is a computer architecture diagram showing an illustrative computer hardware and software architecture for a computing device that can host a non-volatile memory device for implementing aspects of the techniques presented herein; and
[0033] Figure 6 is a computing network architecture diagram showing an illustrative configuration for a computing environment in which a computing device hosting a MFND implementing the disclosed techniques may be utilized. DETAILED DESCRIPTION
[0034] The following specific embodiments relate to techniques directed to live migration of VM data assisted by non-volatile memory devices. As briefly discussed above, a non-volatile memory device implementing the disclosed techniques may be configured with functionality for implementing aspects of a live migration process for data written directly to the non-volatile memory by a VM. Such functionality may be implemented in a manner that minimizes the performance impact on the non-volatile memory device. The functionality provided by the non-volatile memory device disclosed herein may also be used to implement workflows other than live migration. Other technical advantages not specifically mentioned herein may also be achieved through implementation of the disclosed subject matter.
[0035] Although the subject matter described herein is presented in the general context of NVMe single and multiple physical function non-volatile memory devices, those skilled in the art will recognize that the techniques disclosed herein can be used with other types of single and multiple physical function devices, including other types of single and multiple physical function non-volatile memory devices. In this regard, it is also understood that although the embodiments described below are primarily presented in the context of MFNDs, the disclosed embodiments can also be used with SFNDs and potentially with other types of non-volatile memory devices.
[0036] Those skilled in the art will also appreciate that the subject matter described herein can be practiced using a variety of computer system configurations, including mainframe computers in distributed computing environments, handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, computing or processing systems embedded in devices (such as wearable computing devices, automobiles, home automation, etc.), minicomputers, mainframe computers, and the like.
[0037] In the following detailed description, reference is made to the accompanying drawings which form a part thereof and which are shown by way of illustration of specific configurations or examples. Referring now to the drawings, in which like numerals represent like elements throughout the several views, aspects of various techniques for live migration of VM data assisted by non-volatile memory devices will be described.
[0038] Figure 1 1 is a computing architecture diagram showing aspects of the configuration and operation of a non-volatile memory device (MFND 102 in the illustrated embodiment) that may implement the embodiments disclosed herein, according to one embodiment. As briefly discussed above, in some embodiments, MFND 102 is a non-volatile memory device that complies with the NVMe specification. MFND 102 may be hosted by a host computing device 100 (which may be referred to herein as simply a "host"), such as a server computer running in a distributed computing network, as described below with reference to Figure 6 As described.
[0039] As also briefly discussed above, NVMe is an open logical device interface specification for accessing non-volatile storage media. In some embodiments, NVMe devices are accessible via a PCIe bus. In other embodiments, NVMe devices are accessible via a network or other packet-based interface.
[0040] The NVMe specification defines a register interface, command set, and feature set for PCIe-based solid-state storage devices ("SSDs"), with the goal of achieving high performance and interoperability across a broad range of non-volatile memory subsystems. The NVMe specification does not dictate the end-use model, such as solid-state storage, main memory, cache, or backing storage.
[0041] NVMe provides an alternative to the Small Computer System Interface ("SCSI") standard and the Advanced Technology Attachment ("ATA") standard for connecting and transferring data between a host computing device 100 and a peripheral target storage device. The ATA command set for Serial ATA ("SATA") SSDs and the SCSI command set for Serial Attached SCSI ("SAS") SSDs were developed at a time when hard disk drives ("HDDs") and tapes were the primary storage media. NVMe is designed to be used with faster media. The main advantages of NVMe-based PCIe SSDs are reduced latency in the host software stack, higher IOPS, and potentially lower power consumption compared to SAS-based SSDs and SATA-based SSDs, depending on the form factor and the number of PCIe lanes used.
[0042] NVMe can support SSDs that use different types of non-volatile memory, including NAND flash and 3D XPOINT technology developed by Intel and Micron Technology. Supported form factors include add-on PCIe cards, M.2 SSDs, and U.2 2.5-inch SSDs. NVMe reference drivers are available for various operating systems, including WINDOWS operating systems and LINUX operating systems. Therefore, it is to be understood that the MFND 102 described herein is not limited to a specific type of non-volatile memory, form factor, or operating system.
[0043] The MFND 102 described herein includes the capability to expose multiple physical functions (which may be referred to herein as "PFs") 112A to 112N to the host computing device 100. As discussed above, it is to be understood that in other embodiments, the functionality disclosed herein provided by the MFND 102 may also be provided by the SFND. The SFN exposes only a single physical function to the host computing device 100.
[0044] In one embodiment, each of the PFs 112A to 112N exposed by the MFND 102 is an independent NVMe controller. In other embodiments, the PFs 112A to 112N are other types of controllers. In other embodiments, at least a plurality of the PFs 112A to 112N are independent NVMe controllers, and at least one different PF 112A to 112N is a non-NVMe controller.
[0045] One PF 112A in the MFND 102 (which may be referred to herein as the "parent PF 112A" or "parent controller 112A") acts as a parent controller. In one embodiment, for example, the parent PF 112A is a privileged PCIe function zero of the MFND 102. In this regard, it is to be understood that in other embodiments, the parent controller may be configured as another PCIe function number. In some embodiments, the parent PF 112A and child PFs described below may also be device types other than NVMe devices.
[0046] The parent PF 112A may act as a parent controller to receive and execute management commands 110 generated by the root partition 108. Specifically, the parent PF 112A may manage the child PFs 112B to 112N, such as, for example, by creating, deleting, modifying, and querying the child PFs 112B to 112N. The child PFs 112B to 112N may be interchangeably referred to herein as “child PFs 112B to 112N” or “child physical functions 112B to 112N”.
[0047] The sub-PFs 112B to 112N are normal PCIe physical functions of the MFND device 102. The sub-PFs 112B to 112N may behave like normal and independent NVMe controllers. The sub-PFs 112B to 112N may also support management and I / O commands defined by the NVMe specification.
[0048] By using multiple PFs 112A to 112N exposed by the MFND 102, I / O resources provided by the MFND 102 can be efficiently shared between VMs 104A to 104N. For example, through various direct hardware access technologies, such as HYPER-V NVMeDirect or DDA, the sub-PFs 112B to 112N can be directly assigned to different VMs 104A to 104N, respectively. In this way, the sub-PFs 112B to 112N exposed by a single MFND 102 can be presented to separate VMs 104A to 104N as multiple separate physical devices, respectively. This allows separate VMs 104A to 104N to directly utilize corresponding portions of the available storage space provided by the non-volatile memory device 103 on the MFND 102, while reducing CPU and hypervisor 106 overhead.
[0049] In some configurations, the host computing device 100 operates in a distributed computing network, such as the following Figure 6 Additionally, in some embodiments, the host computing device 100 executes a host agent 116 and a management application programming interface ("API") 118 to enable access to aspects of the functionality disclosed herein.
[0050] The host agent 116 may receive commands from other components, such as in a distributed computing network (such as described below with respect to Figure 6 The host agent 116 may be configured to communicate with other components in the distributed computing network described herein and call the management API 118 to implement the command. Specifically, the management API 118 may issue management commands to the parent PF 112A to perform the various functions described herein. The following describes details of various methods exposed by the management API 118 to the host agent 116 for implementing the functions disclosed herein.
[0051] In some embodiments, the MFND 102 has two operation modes: normal user mode and super administrator mode. In normal user mode, only read-only functions can be executed. The non-read-only management functions described herein (such as setting the QoS level for the PF, etc.) must be executed in super administrator mode. If you try to execute these functions in normal user mode, an error will be returned (which may be referred to as an "ERROR_ACCESS_DENIED" error herein). In some embodiments, the API 118 exposes a method for obtaining a device operation mode (which may be referred to as a "GetDeviceOperationMode" method herein) and a method for switching a device operation mode (which may be referred to as a "SwitchDeviceOperationMode" method herein).
[0052] As briefly discussed above, previous solutions for live migration of virtualized storage (such as VHD) will not work when utilizing MFND 102 in the manner described above. The technology proposed herein addresses these technical considerations and potentially other technical considerations by implementing MFND-assisted live migration of VM data. Additional details on these aspects will be provided below.
[0053] Figures 2A to 2G is a computing architecture diagram showing aspects of a mechanism disclosed herein for live migration of VM data assisted by non-volatile memory devices. Figure 2A As shown in and briefly described above, in one embodiment, a host computing device 100A (which may be referred to herein as “host 100A,” “source device 100A,” or “source host computing device 100A”) acts as a host for a MFND 102A (which may be referred to herein as “source MFND 102A”). A VM 104A (which may be referred to herein as “source VM 104A”) executes on the source computing device 100A by way of a hypervisor 106.
[0054] As described above, the sub-physical function 112B on the source MFND 102A may be associated with the VM 104A in the manner described above, so that the VM 104A may directly utilize a portion of the non-volatile memory device 103A of the source MFND 102A. The portion of the non-volatile memory device 103A associated with the VM 104A may be referred to herein as a "namespace 202A" or a "source namespace 202A."
[0055] As briefly described above, MFND 102A provides functionality for facilitating live migration of VM data, such as data stored by VM 104A in namespace 202A. Figure 2CAs shown in , the contents of namespace 202A may be migrated to namespace 202B (may be referred to herein as “target namespace 202B”) on MFND 102B (may be referred to herein as “target MFND 102B”) on a host computing device 100B (may be referred to herein as “target host 100B”, “target device 100B” or “target host computing device 100B”).
[0056] To provide this functionality, MFND 102A and MFND 102B are configured to implement commands for implementing live migration of data written directly to the non-volatile memory device by the VM. As an example, MFND 102A may be configured to implement commands 110A for tracking changes to namespace 202A on non-volatile memory device 103A of MFND 102A by associated VM 104A. MFND 102A may also implement commands to stop tracking changes to namespace 202A.
[0057] As in Figure 2A As shown in FIG. 1 , command 110A may be initiated by live migration agent 208A executing on root partition 108A. Live migration agent 208A provides the following functionality for assisting in the live migration process of VM 104A and its associated data. In some embodiments, in response to a call to management API 118 from live migration agent 208A, management API 118 issues command 110A to parent physical function 112A of MFND 102A. In other embodiments, such as the following regarding Figure 4 The described embodiment issues command 110A to the child PF on MFND 102A which has been designated as the migration controller.
[0058] In response to receiving the request to execute command 110A, MFND 102A may track changes made to namespace 202A by VM 104A in one or more data structures. Tracking changes made to namespace 202A by VM 104A on MFND 102A enables identification of those changes made by VM 104A that have been directly assigned to namespace 104A on MFND 102A, which is technically impossible in previous solutions.
[0059] In various embodiments, one or more data structures may be implemented as a bitmap of mapped pages ("BMP") 204. BMP 204 is a bitmap that identifies mapped pages from namespace 202A assigned to VM 104A. Mapped pages are pages that have been allocated due to a write command or a write zero command, such as those defined by the NVMe specification.
[0060] The one or more data structures may also include a bitmap of dirty pages ("BDP") 206, which is a bitmap that identifies dirty pages in the namespace assigned to VM 104A. Dirty pages are pages that have been modified due to a write command or a write zero command, such as those defined by the NVMe specification. The size of the page mapping to a single bit in the BMP 204 and BDP 206 may be reported by the MFND 102A to the source host computing device 100A. For example, and not limitation, each individual bit in the BMP 204 and BDP 206 may map to a corresponding 4 kilobytes ("kB"), 8kB, 16kB, 32kB, or 64kB of the namespace 202A.
[0061] It is to be understood that in other embodiments, other types and configurations of data structures may be utilized to track changes to namespace 202A, such as, but not limited to, an ordered list of mapped page ranges and an ordered list of dirty page ranges.
[0062] As in Figure 2B As shown in , MFND 102A may also be configured to implement a command for providing one or more data structures identifying changes made to namespace 202A by VM 104A to source host computing device 100A. In response to receiving a request to execute such a command, MFND 102A returns one or more data structures, such as, but not limited to, BMP 110B and BDP 206 described above.
[0063] exist Figure 2B In the example shown in FIG. 1 , for example, the live migration agent 208A has initiated a command 110B from the management API 118 to the parent physical function 112A, which requested the BMP 204 from the source MFND 102A. In response to the request for the BMP 204, the parent physical function 112A retrieved the BMP 204 and returned the BMP 204 to the management API 118. In turn, the management API 118 returns the BMP 204 to the live migration agent 208A.
[0064] Live migration agent 208A executing on source host computing device 100A may utilize BMP 204 to identify data changed by VM 104A in namespace 202A and retrieve the data from MFND 102A. Figure 2C As shown in , live migration agent 208A executing on source host computing device 100A may utilize BMP 204 to identify mapped logical block addressing ("LBA") pages 210 in namespace 202A.
[0065] In turn, the live migration agent 208A may cause the management API 118 to issue one or more commands 110C to read the mapped LBA pages 210 from the namespace 202A. The parent physical function 112A receives the commands 110C and, in response thereto, reads the mapped LBA pages 210 from the namespace 202A and, in response to the commands 110C, returns the mapped LBA pages 210.
[0066] Also as in Figure 2C As shown in , the host computing device 100A can then migrate the retrieved mapped LBA page 210 to the target namespace 202B on the target MFND 102B. Specifically, the live migration agent 208A can provide the mapped LBA page 210 to the live migration agent 208B executing on the root partition 108B of the target host computing device 100B.
[0067] The live migration agent 208A on the target host computing device 100B may then call the management API 118 to write the mapped LBA page 210 to the target namespace 202B. The parent physical function 112D writes the mapped LBA page 210 to the target namespace 202B on the non-volatile memory device 103B on the target MFND 102B. Figure 2C As shown in FIG. 1 , the target namespace 202B is associated with the sub-physical function 112E on the target MFND 102B.
[0068] As in Figure 2D As shown in , MFND 102A may also be configured to implement command 110D by which source host computing device 100A may retrieve BDP 206. As described above, BDP 206 is a bitmap identifying dirty pages in namespace 202A assigned to VM 104A. Dirty pages are pages that have been modified due to a write command or a write zero command, such as those defined by the NVMe specification.
[0069] exist Figure 2D In the example shown in FIG. 1 , the live migration agent 208A has initiated a command 110D from the management API 118 to the parent physical function 112A, which requested the BMP 206 from the source MFND 102A. In response to the request for the BDP 206, the parent physical function 112A retrieved the BDP 206 and returned the BDP 206 to the management API 118. In turn, the management API 118 returns the BDP 206 to the live migration agent 208A.
[0070] Live migration agent 208A executing on source host computing device 100A may utilize BDP 206 to identify data changed by VM 104A in namespace 202A and retrieve the data from MFND 102A. Figure 2E As shown in , live migration agent 208A executing on source host computing device 100A may utilize BDP 206 to identify dirty LBA pages 212 in namespace 202A. In turn, live migration agent 208A may cause management API 118 to issue one or more commands 110E to read dirty LBA pages 212 from namespace 202A. Parent physical function 112A receives command 110E and, in response thereto, reads dirty LBA pages 212 from namespace 202A and, in response to command 110E, returns dirty LBA pages 212.
[0071] Also as in Figure 2E As shown in , the host computing device 100A can then migrate the retrieved dirty LBA page 212 to the target namespace 202B on the target MFND 102B. Specifically, the live migration agent 208A can provide the dirty LBA page 212 to the live migration agent 208B executing on the root partition 108B of the target host computing device 100B.
[0072] The live migration agent 208B on the target host computing device 100B may then call the management API 118 to write the dirty LBA page 212 to the target namespace 202B. The parent physical function 112D writes the dirty LBA page 212 to the target namespace 202B on the non-volatile memory device 103B on the target MFND 102B. As will be discussed in more detail below, this process may be repeated multiple times to migrate all dirty LBA pages 212 from the namespace 202A on the source MFND 102A to the namespace 202B on the target MFND 102B.
[0073] As in Figure 2F As shown in , MFND 102A can also be configured to implement a command for enabling the host computing device 100A to retrieve the device internal state 214 of the sub-physical function 112B on the MFND 102B assigned to the VM 104A. The device internal state 214 of the sub-physical function 112B defines the current hardware state of the sub-physical function 112B. For example, but not limitation, the device internal state 214 may include various data structures that contain the contents of the management queue, the contents of one or more I / O submission queue pairs, the contents of one or more I / O completion queue pairs, and any asynchronous event request commands parked on the sub-physical function 112B. In other configurations, the device internal state 214 may include different or additional state information.
[0074] In response to the request to execute command 110F, the parent function 112A of the source MFND 102A may retrieve the device internal state 214 from the child physical function 112B and provide the device internal state 214 to the live migration agent 208A executing on the source host computing device 100A. In turn, the live migration agent 208A executing on the source host computing device 100A may provide the device internal state 214 to the live migration agent 208B executing on the target host computing device 100B.
[0075] The live migration agent 208B executing on the target host computing device 100B may then issue a command to the target MFND 102B to restore the device internal state 214 to the target sub-physical function 112E. In response to such a command, the parent physical function 112D causes the device internal state 214 to be stored in the sub-physical function 112E. In this manner, the current hardware state of the sub-physical function 112B on the source MFND 102A may be migrated to the sub-physical function 112E on the target MFND 102B. This reduces the computational overhead of the migration, at least because it avoids the need to regenerate the internal state, and at least because the incomplete (e.g., queued or pending on the device) commands do not need to be terminated at the sub-physical function 112B (increase the error count and need to be processed on the erroneous host), but only need to be resubmitted to the sub-physical function 112E on the target MFND 102B.
[0076] As in Figure 2F As shown in , when the VM data stored in namespace 202A has been migrated to and stored in the target host computing device 100B, and the device internal state 214 of the sub-physical function 112B has been migrated to the sub-physical function 112E, the VM 104A can be restored on the target host computing device 100B. The restored VM 104A on the target host computing device may be referred to as "VM 104B" or "target VM 104B". In this regard, it is to be understood that the contents of the VM 104 and any associated memory are migrated separately from the VM data stored in the namespace 202A. FIG. 3A to FIG. 3C and Figure 4 Additional details are provided regarding the functionality provided by MFND 102A and MFND 102B to facilitate live migration of VM data.
[0077] FIG. 3A to FIG. 3C is a timing diagram showing a routine according to one embodiment disclosed herein, which illustrates aspects of a method for live migration of VM data assisted by a non-volatile memory device. FIG. 3A to FIG. 3CThe logical operations described in the and other figures may be implemented as (1) a sequence of computer-implemented actions or program modules running on a computing device and / or (2) interconnected machine logic circuits or circuit modules within a computing device.
[0078] The specific implementation of the technology disclosed herein is a matter of choice depending on the performance and other requirements of the computing device. Therefore, the logical operations described herein are referred to differently as states, operations, structural devices, actions or modules. These states, operations, structural devices, actions and modules can be implemented with hardware, software, firmware, special digital logic and any combination thereof. It should be understood that more or less operations can be performed compared to the operations shown in the figures and described herein. These operations can also be performed in a sequence different from that described herein.
[0079] exist FIG. 3A to FIG. 3C The routine shown in begins at operation 302, where a compatible target host computing device 100B is selected as a target for migrating a source VM 104A from the source host computing device 100B. In one embodiment, the compatible target host computing device 100B is a host computing device provided with a MFND 102B manufactured by the same manufacturer as the MFND 102A in the source host computing device 100A. In other embodiments, the MFND 102B may be provided by a different manufacturer than the MFND 102A in the source host computing device 100A. In other embodiments, the MFND 102A or the MFND 102B is a SFND. Other parameters may be measured and utilized to determine whether the target host computing device 100B is suitable for migrating the source VM 104A.
[0080] When a compatible target host computing device 100B is selected, a live migration agent 208B is initiated on the selected target host computing device 100B. FIG. 3A to FIG. 3C The routine shown in continues from operation 302 to operation 304, where a child PF 112E is created and provided on the MFND 102B of the selected target host computing device 100B. As briefly discussed above and discussed in more detail below, the child PF 112E provides direct access to the namespace 202B on the MFND 102B to the migrated VM 104B.
[0081] Beginning with operation 304, the illustrated routine continues from operation 304 to operation 306. At operation 306, the source host computing device 100A requests the source MFND 102A to begin tracking changes to the namespace 202A by the associated VM 104A using the command 110A described above with respect to FIG 2. In response, the source MFND 102A tracks changes made to the namespace 202A by the source VM 104A and stores one or more data structures, such as the BMP 204 described above, that identify the changed portions of the namespace 202A.
[0082] The routine then continues from operation 306 to operation 308, where the source host computing device 100A uses the above information regarding Figure 2B 102A. When the source host computing device 100A has retrieved the BMP 204, the source host computing device 100A utilizes the BMP 204 to identify the mapped LBA page 210 in the namespace 202A. In turn, at operation 310, the source host computing device 100A uses the BMP 204 to identify the mapped LBA page 210 in the namespace 202A. Figure 2C The described approach reads mapped LBA pages 210 from namespace 202A block by block.
[0083] The routine then continues to operation 312, where the source host computing device 100A transfers the mapped LBA pages 210 to the live migration agent 208B executing on the target host computing device 100B. The live migration agent 208B executing on the target host computing device 100B then causes the contents of the mapped LBA pages 210 to be written to the namespace 202B on the MFND 102B. Operations 310 and 312 may be repeated as needed to migrate all mapped LBA pages 210 from the MFND 102A to the MFND 102B. This process may be referred to herein as the "first phase 300A" of the migration.
[0084] When the first phase 300A is completed, the illustrated routine continues to operation 314, where the "second phase 300B" of the migration begins. Specifically, at operation 314, the source host computing device 100A uses the above-described Figure 2D 102A. When the source host computing device 100A has retrieved the BDP 206, the source host computing device 100A utilizes the BDP 206 to identify the dirty LBA pages 212 in the namespace 202A. In turn, at operation 316, the source host computing device 100A uses the BDP 206 to identify the dirty LBA pages 212 in the namespace 202A. Figure 2E The described approach reads dirty LBA pages 212 from namespace 202A block by block.
[0085] The routine then continues to operation 318, where the source host computing device 100A transfers the dirty LBA page 212 to the live migration agent 208B executing on the target host computing device 100B. The live migration agent 208B executing on the target host computing device 100B then causes the dirty LBA page 212 to be written to the namespace 202B on the MFND 102B. Operations 314 and 316 may be repeated as needed to migrate all dirty LBA pages 212 from the MFND 102A to the MFND 102B.
[0086] When the second stage 300B is complete (e.g., when the number of dirty LBA pages 212 drops below a threshold), the illustrated routine continues from operation 318 to operation 320, as in Figure 3B , where a "shutdown phase 300C" begins. The shutdown phase 300C begins at operation 320, where the execution of the source VM 104A is suspended. The routine then continues to operation 322, where the source host computing device 100A again proceeds with the above-described shutdown phase 300C. Figure 2D The BDP 206 is requested from the MFND 102A in the manner described, and the BDP 206 is utilized to identify any remaining dirty LBA pages 212 in the namespace 202A. The source host computing device 100A then performs the above-described operations at operation 322. Figure 2E The described approach reads the remaining dirty LBA pages 212 from namespace 202A block by block.
[0087] The routine then continues to operation 324, where the source host computing device 100A transfers any remaining dirty LBA pages 212 to the live migration agent 208B executing on the target host computing device 100B. The live migration agent 208B executing on the target host computing device 100B then causes the remaining dirty LBA pages 212 to be written to the namespace 202B on the MFND 102B.
[0088] From operation 324, the illustrated routine continues to operation 326, where the sub-physical function 112B on the source MFND 102A is paused. While the sub-physical function 112B is paused, the sub-physical function 112B will complete processing of all ongoing commands. An ongoing command is a command that the sub-physical function 112B has dequeued from the submission queue and is actively processing but has not yet completed and is reported as completed in the completion queue. By pausing the source sub-physical function 112B in this manner, no further changes will be made to the device internal state 214 of the sub-physical function 112B.
[0089] When the sub-physical function 112B has been suspended in the manner described above, the routine continues to operation 328, where the source host computing device 100A may utilize the above with respect to Figure 2FCommand 110F is depicted to retrieve device internal state 214 from child physical function 112B on source MFND 102A assigned to VM 104A.
[0090] When the source host computing device 100A has retrieved the device internal state 214, the source host computing device 100A transmits the device internal state 214 to the live migration agent 208B executing on the target host computing device 100B. Figure 2G As discussed, and as will be discussed in greater detail below, at operation 304, live migration agent 208B causes device internal state 214 retrieved from sub-physical function 112B to be restored to sub-physical function 112E provided on MFND 102B of target host computing device 100B.
[0091] From operation 332, the illustrated routine continues to operation 334, as in Figure 3C . At operation 334, sub-physical function 112E may be configured in the same manner as sub-physical function 112B. For example, and in the absence of configuration, the I / O queue pair configuration may be retrieved from sub-physical function 112B, and sub-physical function 112B may be configured in the same manner. Other configuration parameters may be migrated in a similar manner.
[0092] When the child physical function 112E is configured, the routine continues to operation 336, where the live migration agent 208B executing on the target host computing device 100B causes the device internal state 214 to be configured as described above. Figure 2G The described manner is restored to the child physical function 112E. When the mapped LBA pages 210 and dirty LBA pages 212 are migrated from the namespace 202A, the device internal state 214 is migrated and the child physical function 112E is configured, at operation 338, the VM 104B is restored on the target host computing device 100B.
[0093] It should be understood that in some embodiments, a quality of service (“QoS”) level may be set for the source VM 104A and the parent physical function 112A before the live migration process described above begins to regulate the storage I / O performance allowed by the VM 104A and the parent physical function 112A during the live migration process on the source host computing device 100A. To provide this functionality, the MFND 102A may support multiple storage service level agreements (“SLAs”).
[0094] Each SLA supported by the MFND 102A may define a different QoS level to be provided by the PFs 112A through 112N. The QoS levels that may be supported by the sub-PF 112 on the MFND 102A include, but are not limited to, a "reserved mode," in which the sub-PF 112 is allocated at least a specified minimum amount of bandwidth and input / output operations per second ("IOPS"), a "restricted mode," in which the sub-PF 112 is allocated at most a specified maximum amount of bandwidth and IOPS, and a "hybrid mode," in which the sub-PF 112 is allocated at least a specified minimum amount of bandwidth and IOPS, but at most a specified maximum amount of bandwidth and IOPS. In other embodiments, other QoS levels may be implemented. The MFND 102A may support methods for querying and setting QoS for physical functions on a device.
[0095] Figure 4 1 is a computing architecture diagram showing aspects of an alternative topology in which embodiments disclosed herein for non-volatile memory device-assisted live migration of VM data may be implemented, according to one embodiment. In the above embodiments, each host computing device 100A and 100B is provided with its own MFND 102A and 102B, respectively. However, in Figure 4 In the embodiment shown in FIG. 4 , MFNDs 102A and 102B, and potentially other MFNDs 102C and 102D, are provided in a MFND pool 402 that is shared among multiple host computing devices, such as host computing devices 100A and 100B.
[0096] Host computing devices 100A and 100B may be connected to MFNDs 102A through 102D in MFND pool 402 using various connections 404A and 404B, respectively. For example, and not limitation, various PCIe interconnects, switches, and other components may be used to interconnect host computing devices 100A and 100B with devices in MFND pool 402. In the above-described embodiment, management APIs 118 on host computing devices 100A and 100B issue commands to respective parent physical functions 112B and 112D to provide the above-described functionality for live migration of VM data. However, in Figure 4 In the embodiment shown in , host computing devices 100A and 100B are unable to have access to parent physical functions 112A and 112D of MFNDs 102A and 102B, respectively. Such restriction may be implemented for security purposes and potentially other reasons.
[0097] More precisely, in Figure 4In the embodiment shown in , available sub-physical functions on MFND 102A and 102B are designated as "migration controllers." For example, in the embodiment shown, the sub-physical function on MFND 102A has been designated as migration controller 112F, and the sub-physical function on MFND 102A has been designated as migration controller 112G. Fabric manager 404 has selected sub-physical functions to be designated as migration controllers 112F and 112G, and provides instructions to parent physical functions 112A and 112D, respectively, to so configure the selected sub-physical functions.
[0098] Although migration controllers 112F and 112G are sub-physical functions, Figures 2A to 3C In the described embodiment, migration controllers 112F and 112G are configured to provide the functionality provided by parent physical functions 112A and 112D. To implement such functionality, migration controllers 112F and 112G are configured to implement a subset of the functionality provided by parent physical functions 112A and 112D. For example, and not limitation, migration controllers 112F and 112G may be configured to implement the functionality provided by parent physical functions 112A and 112D described above. Figures 2A to 3C The functionality provided by the parent physical functions 112A and 112D is described. Using this functionality, live migration can be performed in the manner described above using the migration controllers 112F and 112G instead of the parent physical functions 112A and 112D.
[0099] Figure 5 is a computer architecture diagram showing an illustrative computer hardware and software architecture for a data processing system 500 that may serve as a host 100 for a MFND 102 or SFND for implementing aspects of the techniques presented herein. Figure 5 The architecture shown in may be used to implement a server computer, a mobile phone, an e-reader, a smartphone, a desktop computer, an AR / VR device, a tablet computer, a laptop computer, or another type of computing device that acts as a host 100 for a MFND 102 or a SFND.
[0100] exist Figure 5The data processing system 500 shown in FIG. 5 includes a central processing unit 502 (“CPU”), a system memory 504 (including random access memory 506 (“RAM”) and read-only memory (“ROM”) 508), and a system bus 510 that couples memory 504 to CPU 502. A basic input / output system (“BIOS” or “firmware”) containing basic routines that help transfer information between elements within data processing system 500 (such as during startup) may be stored in ROM 508. Data processing system 500 also includes a mass storage device 512 for storing an operating system 522, application programs, and other types of programs. For example, mass storage device 512 may store host agent 116 and management API 118. Mass storage device 512 may also be configured to store other types of programs and data.
[0101] Mass storage device 512 is connected to CPU 502 through a mass storage controller (not shown) connected to bus 510. Mass storage device 512 and its associated computer-readable media provide non-volatile storage for data processing system 500. Although the description of computer-readable media contained herein refers to a mass storage device, such as a hard disk, a CD-ROM drive, a DVD-ROM drive, or a USB memory key, it will be understood by those skilled in the art that computer-readable media can be any available computer storage media or communication media that can be accessed by data processing system 500.
[0102] Communication media includes computer readable instructions, data structures, program modules, or other data in a modulated data signal (such as a carrier wave or other transmission mechanism), and includes any delivery medium. The term "modulated data signal" means a signal having one or more of its characteristics that are altered or set in some way to encode the information in the signal. By way of example and not limitation, communication media include wired media (such as a wired network or a direct wired connection) and wireless media (such as acoustic, radio frequency, infrared and other wireless media). Combinations of any of the above should also be included within the scope of computer readable media.
[0103] By way of example and not limitation, computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules or other data. For example, computer storage media include, but are not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other solid-state memory technology, CD-ROM, digital versatile disk ("DVD"), HD-DVD, BLU-RAY or other optical storage, cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by the data processing system 500. For the purposes of the claims, the phrase "computer storage media" and variations thereof do not include waves or signals themselves or communications media.
[0104] According to various configurations, data processing system 500 may operate in a network environment using logical connections to remote computers via a network, such as network 520. Data processing system 500 may be connected to network 520 via a network interface unit 516 connected to bus 510. It should be appreciated that network interface unit 516 may also be used to connect to other types of networks and remote computer systems. Data processing system 500 may also include an input / output controller 518 for receiving and processing inputs from a number of other devices, including a keyboard, a mouse, a touch input, an electronic pen (in the Figure 5 Similarly, the input / output controller 518 may provide output to a display screen or other type of output device (not shown in FIG. Figure 5 (not shown in the figure).
[0105] It should be understood that the software components described herein, when loaded into CPU 502 and executed, can convert CPU 502 and the entire data processing system 500 from a general-purpose computing device to a special-purpose computing device that is customized to facilitate the functions proposed herein. CPU 502 can be constructed from any number of transistors or other discrete circuit elements, which can assume any number of states individually or collectively. More specifically, CPU 502 can operate as a finite state machine in response to the executable instructions contained in the software modules disclosed herein. These computer executable instructions can convert CPU 502 by specifying how CPU 502 transitions between states, thereby converting the transistors or other discrete hardware elements that constitute CPU 502.
[0106] Encoding the software modules proposed herein can also convert the physical structure of the computer-readable medium proposed herein. In different implementations of this specification, the specific conversion of the physical structure depends on various factors. Examples of these factors include, but are not limited to, the technology used to implement the computer-readable medium, whether the computer-readable medium is characterized as primary storage or auxiliary storage, etc. For example, if the computer-readable medium is implemented as a semiconductor-based memory, the software disclosed herein can encode the computer-readable medium by converting the physical state of the semiconductor memory. For example, the software can convert the state of transistors, capacitors, or other discrete circuit elements that constitute the semiconductor memory. The software can also convert the physical state of such components so that data can be stored thereon.
[0107] As another example, the computer readable medium disclosed herein can be implemented using magnetic or optical technology. In such an implementation, the software proposed herein can be converted to its physical state when encoded in a magnetic or optical medium. These conversions can include changing the magnetic properties of a specific location in a given magnetic medium. These conversions can also include changing the physical characteristics or properties of a specific location in a given optical medium to change the optical properties of these locations. Without departing from the scope and spirit of this specification, other conversions of physical media are possible, wherein the aforementioned examples are provided only to facilitate this discussion.
[0108] In view of the above, it should be understood that many types of physical transformations occur in data processing system 500 in order to store and execute the software components presented herein. It should also be understood that in Figure 5 The architecture for data processing system 500 shown in or similar architectures may be used to implement other types of computing devices, including handheld computers, video game devices, embedded computer systems, mobile devices (such as smartphones, tablet computers, and AR / VR devices), and other types of computing devices known to those skilled in the art. It is also contemplated that data processing system 500 may not include the Figure 5 All components shown in the Figure 5 Other components not explicitly shown may be utilized in conjunction with Figure 5 A completely different architecture as shown in .
[0109] Figure 66 is a computing network architecture diagram showing an illustrative configuration for a distributed computing environment 600 in which a computing device hosting a MFND 102 implementing the disclosed technology may be utilized. According to various implementations, the distributed computing environment 600 includes a computing environment 602 that operates in communication with a network 686. One or more client devices 606A to 606N (hereinafter collectively and / or generally referred to as "clients 606") may communicate with each other via the network 686 and / or other connections (in Figure 6 ) communicates with the computing environment 602.
[0110] In one illustrated configuration, client 606 includes a computing device 606A (such as a laptop, desktop computer, or other computing device), a tablet computing device ("tablet computing device") 606B, a mobile computing device 606C (such as a smartphone, an onboard computer, or other mobile computing device), or a server computer 606D. It should be understood that any number of devices 606 can communicate with computing environment 602. Example computing architectures for devices 606 are described above with reference to Figure 5 Illustration and Description. It should be understood that the illustrated device 606 and the computing architecture illustrated and described herein are merely illustrative and should not be considered limiting in any way.
[0111] In the illustrated configuration, the computing environment 602 includes an application server 608, a data store 610, and one or more network interfaces 612. According to various implementations, the functionality of the application server 608 may be provided by one or more server computers that execute as part of or in communication with the network 604. The application server 608 may host various services, VMs 104, portals, and / or other resources. The application server 608 may also be implemented using a host computing device 100 that includes a MFND 102 configured in the manner described herein.
[0112] In the illustrated configuration, the application server 608 hosts one or more VMs 104, which are used to host applications, network services, or to provide other functions. It should be understood that this configuration is merely illustrative and should not be considered to be limited in any way. The application server 608 can also host or provide access to one or more portals, link pages, websites, network services, and / or other information sites (such as web portal 616).
[0113] According to various implementations, the application server 608 also includes one or more mailbox services 618 and one or more messaging services 620. The mailbox service 618 may include an electronic mail ("email") service. The mailbox service 618 may also include various personal information management ("PIM") services, including but not limited to calendar services, contact management services, collaboration services, and / or other services. The messaging service 620 may include but is not limited to an instant messaging service, a chat service, a forum service, and / or other communication services.
[0114] The application server 608 may also include one or more social networking services 622. The social networking services 622 may include a variety of social networking services, including, but not limited to, services for sharing or posting status updates, instant messages, links, photos, videos, and / or other information, services for commenting on or showing interest in articles, products, blogs, or other resources, and / or other services. Other services are possible and contemplated.
[0115] Social networking services 622 may also include commenting, blogging, and / or microblogging services. Other services are possible and contemplated. Figure 6 As shown in FIG. 6 , application server 608 may also host other network services, applications, portals, and / or other resources (“other resources”) 624. Other resources 624 may include, but are not limited to, document sharing, presentation, or any other functionality.
[0116] As described above, computing environment 602 may include data store 610. According to various implementations, the functionality of data store 610 is provided by one or more databases running on or in communication with network 604. The functionality of data store 610 may also be provided by one or more server computers configured to host data for computing environment 602. Data store 610 may include, host, or provide one or more real or virtual data stores 626A-626N (hereinafter collectively and / or generally referred to as "data store 626").
[0117] Data store 626 is configured to host data used or created by application server 608 and / or other data. Figure 6 6, but data store 626 may also host or store web documents, word processing documents, presentation documents, data structures, and / or other data utilized by any application or another module. Aspects of data store 626 may be associated with a service for storing files.
[0118] The computing environment 602 may communicate with or be accessed by a network interface 612. The network interface 612 may include various types of network hardware and software for supporting communications between two or more computing devices, including but not limited to the client 606 and the application server 608. It should be appreciated that the network interface 612 may also be used to connect to other types of networks and / or computer systems.
[0119] It should be understood that the distributed computing environment 600 described herein may implement aspects of at least some of the software elements described herein using any number of virtual computing resources and / or other distributed computing functions, which may be configured to perform any aspects of the software components disclosed herein.
[0120] It should also be understood that the present disclosure set forth herein also includes the subject matter set forth in the following clauses:
[0121] Clause 1. A computer-implemented method comprising: receiving a first request at a non-volatile memory device, the first request comprising a request to track changes made by a virtual machine (VM) to a namespace; in response to the first request, causing the non-volatile memory device to track changes made by the VM to the namespace in one or more data structures; receiving one or more second requests at the non-volatile memory device, the one or more second requests comprising a request for one or more data structures corresponding to at least a portion of the tracked changes made to the namespace; and providing the one or more data structures from the non-volatile memory device to a host computing device in response to the one or more second requests.
[0122] Clause 2. The computer-implemented method of Clause 1, wherein the first request and the one or more second requests are received at a parent physical function of the non-volatile memory device.
[0123] Clause 3. A computer-implemented method according to any one of clauses 1 or 2, wherein the non-volatile memory device comprises a multiple physical function non-volatile memory device (MFND), and wherein the first request and one or more second requests are received at a sub-physical function of the MFND that has been designated as a migration controller.
[0124] Clause 4. A computer-implemented method according to any one of clauses 1 to 3, wherein the one or more data structures include one or more data structures selected from the group consisting of a bitmap of mapped pages, a bitmap of dirty pages, an ordered list of mapped page ranges, and an ordered list of dirty page ranges.
[0125] Clause 5. A computer-implemented method according to any one of Clauses 1 to 4, further comprising: receiving a third request at a non-volatile memory device, the third request comprising a request for a device internal state of a sub-physical function assigned to the VM; and providing the device internal state of the sub-physical function assigned to the VM to a host computing device in response to the third request.
[0126] Clause 6. A computer-implemented method according to any one of Clauses 1 to 5, wherein the device internal state includes one or more data structures selected from the group consisting of a management queue, one or more input / output (I / O) submission queue pairs, one or more I / O completion queue pairs, and any asynchronous event request commands parked in a sub-physical function assigned to the VM.
[0127] Clause 7. A computer-implemented method according to any one of Clauses 1 to 6, further comprising: receiving a fourth request at a non-volatile memory device, the fourth request comprising a request to restore a device internal state of a sub-physical function provided by the non-volatile memory device; and restoring the device internal state of the sub-physical function in response to the third request.
[0128] Clause 8. A non-volatile memory device comprising a non-volatile memory storing a namespace associated with a virtual machine, the non-volatile memory device being configured to: receive a first request, the first request comprising a request to track changes made by the VM to the namespace in one or more data structures; track changes made by the VM to the namespace in the one or more data structures in response to the first request; receive one or more second requests, the one or more second requests comprising requests for the one or more data structures; and provide the one or more data structures from the non-volatile memory device to a host computing device in response to the one or more second requests.
[0129] Clause 9. The nonvolatile memory device of clause 8, wherein the nonvolatile memory device comprises a multiple physical function nonvolatile memory device (MFND), the MFND comprising a parent physical function, and wherein the first request and the second request are received at the parent physical function of the MFND.
[0130] Clause 10. A non-volatile memory device according to any one of clauses 8 or 9, wherein the non-volatile memory device comprises a multi-physical function non-volatile memory device (MFND), the MFND comprising a sub-physical function that has been designated as a migration controller, and wherein the first request and the second request are received at the sub-physical function of the MFND.
[0131] Clause 11. The non-volatile memory device of any of clauses 8 to 10, wherein the non-volatile memory device comprises a single physical function non-volatile memory device (SFND).
[0132] Clause 12. A non-volatile memory device according to any one of clauses 8 to 11, wherein the one or more data structures include one or more data structures selected from the group consisting of a bitmap of mapped pages, a bitmap of dirty pages, an ordered list of mapped page ranges, and an ordered list of dirty page ranges.
[0133] Clause 13. A non-volatile memory device according to any one of clauses 8 to 12, further configured to: receive a third request comprising a request for a device internal state of a sub-physical function assigned to a VM; and provide the device internal state of the sub-physical function assigned to the VM in response to the third request.
[0134] Clause 14. A non-volatile memory device according to any one of Clauses 8 to 13, further configured to: receive a fourth request, the fourth request comprising a request to restore the device internal state of a sub-physical function provided by the non-volatile memory device; and restore the device internal state of the sub-physical function in response to the fourth request.
[0135] Clause 15. A computer-implemented method comprising: providing a first request to a first non-volatile memory device, the first request comprising a request to track changes made by a virtual machine (VM) to a namespace in one or more data structures; providing one or more second requests to the first non-volatile memory device, the one or more second requests comprising a request for one or more data structures identifying changes made by the VM to the namespace; receiving one or more data structures from the first non-volatile memory device in response to the second request; based on the one or more data structures, identifying data changed in the namespace by the VM; providing one or more third requests to the first non-volatile memory device, the one or more third requests comprising a request for data changed in the namespace by the VM; and causing the data changed in the namespace by the VM to be written to a second namespace on a second non-volatile memory device.
[0136] Clause 16. The computer-implemented method according to Clause 15 further includes: providing a fourth request to the first non-volatile memory device, the fourth request including a request for a device internal state of a sub-physical function assigned to the VM; receiving the device internal state from the first non-volatile memory device in response to the fourth request; and causing the device internal state to be restored to the sub-physical function on the second non-volatile memory device.
[0137] Clause 17. A computer-implemented method according to any of Clauses 15 or 16, wherein the first non-volatile memory device includes a parent physical function, and wherein the first request, one or more second requests, and one or more third requests are received at the parent physical function of the first non-volatile memory device.
[0138] Clause 18. A computer-implemented method according to any one of clauses 15 to 17, wherein the first non-volatile memory device includes a sub-physical function that has been designated as a migration controller, and wherein the first request, one or more second requests, and one or more third requests are received at the sub-physical function of the non-volatile memory device.
[0139] Clause 19. The computer-implemented method of any of Clauses 15 to 18, wherein the non-volatile memory device comprises a single physical function non-volatile memory device (SFND).
[0140] Clause 20. A computer-implemented method according to any one of clauses 15 to 19, wherein the one or more data structures include one or more data structures selected from the group consisting of a bitmap of mapped pages, a bitmap of dirty pages, an ordered list of mapped page ranges, and an ordered list of dirty page ranges.
[0141] Although the techniques presented herein have been described in language specific to structural features and / or methodological actions, it is to be understood that the appended claims are not necessarily limited to the described features or actions. Rather, the features and actions are described as example implementations of such techniques. Furthermore, the above subject matter may be implemented as a computer-controlled device, a computer process, a computing system, or an article of manufacture, such as a computer-readable storage medium.
[0142] The operations of the example methods presented herein are shown in separate blocks and are summarized with reference to these blocks. The methods are illustrated as a logical flow of blocks, each of which may represent one or more operations that may be implemented in hardware, software, or a combination thereof. In the context of software, operations represent computer-executable instructions stored on one or more computer-readable media that, when executed by one or more processors, enable the one or more processors to perform the operations.
[0143] In general, computer executable instructions include routines, programs, objects, modules, components, data structures, etc., which perform specific functions or implement specific abstract data types. The order in which the operations are described is not intended to be construed as limiting, and any number of the operations may be performed in any order, combined in any order, subdivided into multiple sub-operations, and / or performed in parallel to implement the process. The described processes may be performed by resources associated with one or more (multiple) devices (such as one or more internal or external CPUs or GPUs) and / or one or more hardware logic instances (such as FPGAs, DSPs or other types of accelerators).
[0144] All of the above methods and processes can be embodied in software code modules executed by one or more general-purpose computers or processors and fully automated via these software code modules. The code modules can be stored in any type of computer-readable storage medium or other computer storage device. Some or all of the methods can be alternatively embodied in specialized computer hardware.
[0145] Unless otherwise specifically stated, conditional language, such as "may," "could," "might," or "might," etc., is understood in context to suggest that certain examples include certain features, elements, and / or steps, while other embodiments do not include the certain features, elements, and / or steps. Therefore, such conditional language is generally not intended to imply that certain features, elements, and / or steps are in any way required of one or more examples or that one or more examples must include logic for determining whether certain features, elements, and / or steps are included in any particular example, or are to be performed in any particular example, whether or not with user input or prompting. Unless otherwise specifically stated, linking language, such as the phrase "at least one of X, Y, or Z," is to be understood to suggest that an item, term, etc. can be X, Y, or Z, or a combination thereof.
[0146] Any routine description, element or box in the flowcharts described herein and / or depicted in the accompanying drawings should be understood to potentially represent a module, segment or portion of code, which includes one or more executable instructions for implementing a specific logical function or element in the routine. Alternative implementations are included within the scope of the examples described herein, in which elements or functions may be deleted or executed out of order from the elements or functions shown or discussed, including substantially synchronously or in reverse order, depending on the functions involved as will be understood by those skilled in the art.
[0147] It should be emphasized that many variations and modifications may be made to the above examples, and the elements therein are to be understood as being among other acceptable examples. All such modifications and variations are intended to be included within the scope of the present disclosure and protected by the following claims.
Claims
1. A computer-implemented method comprising: receiving, at a non-volatile memory device, a first request comprising a request to track changes made to a namespace by a virtual machine (VM); In response to the first request, causing the non-volatile memory device to track changes made to the namespace by the VM in one or more data structures; receiving, at the non-volatile memory device, one or more second requests, the one or more second requests comprising a request for the one or more data structures corresponding to at least a portion of the tracked changes made to the namespace; as well as The one or more data structures are provided from the non-volatile memory device to a host computing device in response to the one or more second requests. 2 . The computer-implemented method of claim 1 , wherein the first request and the one or more second requests are received at a parent physical function of the non-volatile memory device.
3. The computer-implemented method of claim 1 , wherein the nonvolatile memory device comprises a multiple physical function nonvolatile memory device (MFND), and wherein the first request and the one or more second requests are received at a sub-physical function of the MFND that has been designated as a migration controller.
4. The computer-implemented method of claim 1 , wherein the one or more data structures comprise one or more data structures selected from the group consisting of a bitmap of mapped pages, a bitmap of dirty pages, an ordered list of mapped page ranges, and an ordered list of dirty page ranges.
5. The computer-implemented method of claim 1 , further comprising: receiving, at the non-volatile memory device, a third request, the third request comprising a request for a device internal state of a sub-physical function assigned to the VM; as well as In response to the third request, the device internal state of the sub-physical function assigned to the VM is provided to the host computing device.
6. A non-volatile memory device comprising a non-volatile memory storing a namespace associated with a virtual machine (VM), the non-volatile memory device being configured to: receiving a first request, the first request comprising a request to track changes made by the VM to the namespace in one or more data structures; In response to the first request, tracking changes made by the VM to the namespace in the one or more data structures; receiving one or more second requests, the one or more second requests comprising a request for the one or more data structures; as well as The one or more data structures are provided from the non-volatile memory device to a host computing device in response to the one or more second requests.
7. The nonvolatile memory device of claim 6, wherein the nonvolatile memory device comprises a multiple physical function nonvolatile memory device (MFND), the MFND comprising a parent physical function, and wherein the first request and the second request are received at the parent physical function of the MFND.
8. The nonvolatile memory device of claim 6 , wherein the nonvolatile memory device comprises a multiple physical function nonvolatile memory device (MFND), the MFND comprising a sub-physical function that has been designated as a migration controller, and wherein the first request and the second request are received at the sub-physical function of the MFND.
9. The non-volatile memory device of claim 6, wherein the non-volatile memory device comprises a single physical function non-volatile memory device (SFND).
10. The non-volatile memory device of claim 6, wherein the one or more data structures comprise one or more data structures selected from the group consisting of a bitmap of mapped pages, a bitmap of dirty pages, an ordered list of mapped page ranges, and an ordered list of dirty page ranges.
11. A computer-implemented method comprising: providing a first request to a first non-volatile memory device, the first request comprising a request to track changes made to a namespace by a virtual machine (VM) in one or more data structures; providing one or more second requests to the first non-volatile memory device, the one or more second requests comprising a request for the one or more data structures identifying the changes made to the namespace by the VM; receiving the one or more data structures from the first non-volatile memory device in response to the second request; identifying, in the namespace, data modified by the VM based on the one or more data structures; providing one or more third requests to the first non-volatile memory device, the one or more third requests comprising a request for the data modified by the VM in the namespace; as well as The data modified by the VM in the namespace is caused to be written to a second namespace on a second non-volatile memory device.
12. The computer-implemented method of claim 11 , further comprising: providing a fourth request to the first non-volatile memory device, the fourth request comprising a request for a device internal state of a sub-physical function assigned to the VM; receiving, in response to the fourth request, the device internal state from the first non-volatile memory device; as well as The internal state of the device is restored to the sub-physical function on the second non-volatile memory device.
13. The computer-implemented method of claim 11, wherein the first non-volatile memory device comprises a parent physical function, and wherein the first request, the one or more second requests, and the one or more third requests are received at the parent physical function of the first non-volatile memory device.
14. The computer-implemented method of claim 11, wherein the first non-volatile memory device includes a sub-physical function that has been designated as a migration controller, and wherein the first request, the one or more second requests, and the one or more third requests are received at the sub-physical function of the non-volatile memory device.
15. The computer implemented method of claim 11, wherein the non-volatile memory device comprises a single physical function non-volatile memory device (SFND).
