# US 2017/0371835 A1 · Remote direct memory access in a virtualized computing environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0371835 A1
- Document ID: US20170371835A1
- Status: Published application
- Kind: A1
- Application number: 15/192,168
- Filed: 2016-06-24
- Published: 2017-12-28
- Earliest claimed: 2016-06-24
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Adit RANADIVE; Aditya SARWADE; Andy KING; Jorgen HANSEN; Bhavesh DAVDA; George ZHANG; Xiaoyun GONG
- Web page: https://patentgrep.com/patent/US20170371835A1

## CPC

- G06F 15/17331: {Distributed shared memory [DSM], e.g. remote direct memory access [RDMA]}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of managing remote direct memory access (RDMA) to a virtual computing instance includes suspending locally initiated RDMA operations of the virtual computing instance executing on a first host prior to a migration of the virtual computing instance to a second host. The first host includes a first hypervisor and the second host includes a second hypervisor. The method further includes requesting a peer to suspend remotely initiated RDMA operations that target the virtual computing instance through a first channel, establishing after the migration, a second channel between the peer and the second hypervisor that supports execution of the virtual computing instance on the second host, configuring a virtual object of the second hypervisor on the second host to use the second channel for the locally initiated RDMA operations, and requesting the peer to resume the remotely initiated RDMA operations using the second channel.

## Claims

### Claim 1

A method of managing remote direct memory access (RDMA) to a virtual computing instance, comprising:
suspending locally initiated RDMA operations of the virtual computing instance executing on a first host prior to a migration of the virtual computing instance to a second host, the first host including a first hypervisor and the second host including a second hypervisor;
requesting a peer to suspend remotely initiated RDMA operations that target the virtual computing instance through a first channel;
establishing, after the migration, a second channel between the peer and the second hypervisor that supports execution of the virtual computing instance on the second host;
configuring a virtual object of the second hypervisor on the second host to use the second channel for the locally initiated RDMA operations; and
requesting the peer to resume the remotely initiated RDMA operations using the second channel.

### Claim 2 (depends on 1)

The method of claim 1, wherein the step of suspending the locally initiated RDMA operations comprises:
quiescing a first RDMA physical object on the first host, the first RDMA physical object being an endpoint of the first channel and being mapped to the virtual object prior to the migration.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
saving state of the first RDMA physical object prior to the migration;
wherein the second channel uses an RDMA transport;
wherein the step of establishing the second channel comprises:
creating a second RDMA physical object on the second host after the migration, the second RDMA physical object being an endpoint of the second channel; and
restoring the state to the second RDMA physical object; and
wherein the step of configuring the virtual object comprises:
mapping the virtual object to the second RDMA physical object.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
sending information indicative of a mapping between the virtual object and the second RDMA physical object to the peer.

### Claim 5 (depends on 4)

The method of claim 4, wherein the peer comprises a remote host having a remote hypervisor supporting execution of a remote virtual computing instance, and wherein the method further comprises:
receiving, at the second hypervisor in the second host, information indicative of a mapping between a remote virtual object used by the remote virtual computing instance and a remote RDMA physical object on the remote host.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
establishing, after the migration, a control channel between the second hypervisor in the second host and the remote hypervisor;
wherein the information indicative of the mappings between the virtual object and the second RDMA physical object, and between the remote virtual object and the remote RDMA physical object, are exchanged between the second hypervisor and the remote hypervisor over the control channel.

### Claim 7 (depends on 4)

The method of claim 4, wherein the second RDMA physical object comprises a queue pair, and wherein the information indicative of the mapping between the virtual object and the second RDMA physical object comprises a relation between a queue pair number (QPN) of the queue pair and a virtual QPN of the virtual object.

### Claim 8 (depends on 7)

The method of claim 7, wherein the second RDMA physical object further comprises a physical memory region key, and wherein the information indicative of the mapping between the virtual object and the second RDMA physical object comprises a relation between the physical memory region key and a virtual memory region key of the virtual object.

### Claim 9 (depends on 1)

The method of claim 1, wherein the second channel uses a transmission control protocol (TCP) transport.

### Claim 10 (depends on 1)

The method of claim 1, wherein the peer comprises another virtual computing instance executing on the second host and supported by the second hypervisor on the second host, and wherein the second channel is implemented using memory copy operations.

### Claim 11 (depends on 1)

The method of claim 1, wherein the peer comprises another virtual computing instance executing on the first host and supported by the first hypervisor on the first host, and wherein the first channel is implemented using memory copying operations.

### Claim 12

A non-transitory computer readable medium having instructions stored thereon that when executed by a processor cause the processor to perform a method of managing remote direct memory access (RDMA) to a virtual computing instance, comprising:
suspending locally initiated RDMA operations of the virtual computing instance executing on a first host prior to a migration of the virtual computing instance to a second host, the first host including a first hypervisor and the second host including a second hypervisor;
requesting a peer to suspend remotely initiated RDMA operations that target the virtual computing instance through a first channel;
establishing, after the migration, a second channel between the peer and the second hypervisor that supports execution of the virtual computing instance on the second host;
configuring a virtual object of the second hypervisor on the second host to use the second channel for the locally initiated RDMA operations; and
requesting the peer to resume the remotely initiated RDMA operations using the second channel.

### Claim 13 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the step of suspending the locally initiated RDMA operations comprises:
quiescing a first RDMA physical object on the first host, the first RDMA physical object being an endpoint of the first channel and being mapped to the virtual object prior to the migration.

### Claim 14 (depends on 13)

The non-transitory computer readable medium of claim 13, further comprising:
saving state of the first RDMA physical object prior to the migration;
wherein the second channel uses an RDMA transport;
wherein the step of establishing the second channel comprises:
creating a second RDMA physical object on the second host after the migration, the second RDMA physical object being an endpoint of the second channel; and
restoring the state to the second RDMA physical object; and
wherein the step of configuring the virtual object comprises:
mapping the virtual object to the second RDMA physical object.

### Claim 15 (depends on 14)

The non-transitory computer readable medium of claim 14, further comprising:
sending information indicative of a mapping between the virtual object and the second RDMA physical object to the peer.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the peer comprises a remote host having a remote hypervisor supporting execution of a remote virtual computing instance, and wherein the method further comprises:
receiving, at the second hypervisor in the second host, information indicative of a mapping between a remote virtual object used by the remote virtual computing instance and a remote RDMA physical object on the remote host.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, further comprising:
establishing, after the migration, a control channel between the second hypervisor in the second host and the remote hypervisor;
wherein the information indicative of the mappings between the virtual object and the second RDMA physical object, and between the remote virtual object and the remote RDMA physical object, are exchanged between the second hypervisor and the remote hypervisor over the control channel.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the second RDMA physical object comprises a queue pair, and wherein the information indicative of the mapping between the virtual object and the second RDMA physical object comprises a relation between a queue pair number (QPN) of the queue pair and a virtual QPN of the virtual object.

### Claim 19 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the second RDMA physical object further comprises a physical memory region key, and wherein the information indicative of the mapping between the virtual object and the second RDMA physical object comprises a relation between the physical memory region key and a virtual memory region key of the virtual object.

### Claim 20 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the second channel uses a transmission control protocol (TCP) transport.

### Claim 21 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the peer comprises another virtual computing instance executing on the second host and supported by the second hypervisor on the second host, and wherein the second channel is implemented using memory copy operations.

### Claim 22 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the peer comprises another virtual computing instance executing on the first host and supported by the first hypervisor on the first host, and wherein the first channel is implemented using memory copying operations.

### Claim 23

A computer system, comprising:
a first host computer having a first hardware platform and a first hypervisor executing on the first hardware platform; and
a second host computer having a second hardware platform and a second hypervisor executing on the second hardware platform;
wherein the first hypervisor supports execution of a virtual computing instance and is configured to:
suspend local remote direct memory access (RDMA) operations of the virtual computing instance prior to a migration of the virtual computing instance to the second host; and
request a peer to suspend remotely initiated RDMA operations that target the virtual computing instance through a first channel;
wherein the second hypervisor is configured to:
establish, after the migration, a second channel between the peer and the second hypervisor;
configure a virtual object of the second hypervisor to use the second channel for the locally initiated RDMA operations; and
request the peer to resume the remotely initiated RDMA operations using the second channel.

### Claim 24 (depends on 23)

The computer system of claim 23, wherein the second channel uses a transport different from the RDMA transport.
