rdma: migration support
v5 cover rdma: migration support
From: "Michael R. Hines" <[email protected]>
Juan, Please pull.
Changes since v4:
- Re-ran checkpatch.pl
- Added new QEMUFileOps function: qemu_get_max_size()
- Renamed capability to x-pin-all, disabled by default
- Added numbers for x-pin-all to performance section in docs/rdma.txt
- Included performance numbers in this cover letter
- Converted throughput patch to a MigrationStats statistic in QMP
- Better QMP error message delivery
- Updated documentation
- Moved docs/rdma.txt up to top of patch series
- Fixed all v4 changes requested
- Finished additional cleanup requests
- Updated copyright for migration-rdma.c
Wiki: http://wiki.qemu.org/Features/RDMALiveMigration
Github: [email protected]:hinesmr/qemu.git
Here is a brief summary of total migration time and downtime using RDMA:
Using a 40gbps infiniband link performing a worst-case stress test, using an 8GB RAM virtual machine:
Using the following command:
$ apt-get install stress $ stress --vm-bytes 7500M --vm 1 --vm-keep
RESULTS:
1. Migration throughput: 26 gigabits/second.
2. Downtime (stop time) varies between 15 and 100 milliseconds.
EFFECTS of memory registration on bulk phase round:
For example, in the same 8GB RAM example with all 8GB of memory in active use and the VM itself is completely idle using the same 40 gbps infiniband link:
1. x-rdma-pin-all disabled total time: approximately 7.5 seconds @ 9.5 Gbps
2. x-rdma-pin-all enabled total time: approximately 4 seconds @ 26 Gbps
These numbers would of course scale up to whatever size virtual machine you have to migrate using RDMA.
Enabling this feature does *not* have any measurable affect on migration *downtime*. This is because, without this feature, all of the memory will have already been registered already in advance during the bulk round and does not need to be re-registered during the successive iteration rounds.
Michael R. Hines (12):
rdma: add documentation
rdma: export yield_until_fd_readable()
rdma: export throughput w/ MigrationStats QMP
rdma: introduce qemu_get_max_size()
rdma: introduce qemu_file_mode_is_not_valid()
rdma: export qemu_fflush()
rdma: introduce ram_handle_compressed()
rdma: introduce qemu_ram_foreach_block()
rdma: new QEMUFileOps hooks
rdma: introduce capability x-rdma-pin-all
rdma: core logic
rdma: send pc.ram
Makefile.objs | 1 + arch_init.c | 59 +- configure | 29 + docs/rdma.txt | 404 ++++++ exec.c | 9 + hmp.c | 2 + include/block/coroutine.h | 6 + include/exec/cpu-common.h | 5 + include/migration/migration.h | 24 + include/migration/qemu-file.h | 44 + migration-rdma.c | 2727 +++++++++++++++++++++++++++++++++++++++++ migration.c | 22 +- qapi-schema.json | 12 +- qemu-coroutine-io.c | 23 + savevm.c | 133 +- 15 files changed, 3451 insertions(+), 49 deletions(-) create mode 100644 docs/rdma.txt create mode 100644 migration-rdma.c
Signature · 1 line
1.7.10.4
PATCH v5 1/12 rdma: add documentation
From: "Michael R. Hines" <[email protected]>
docs/rdma.txt contains full documentation,
wiki links, github url and contact information.
--- docs/rdma.txt | 404 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 404 insertions(+) create mode 100644 docs/rdma.txt
docs/rdma.txt new file +404 -0
@@ -0,0 +1,404 @@ +(RDMA: Remote Direct Memory Access) +RDMA Live Migration Specification, Version # 1 +============================================== +Wiki: http://wiki.qemu.org/Features/RDMALiveMigration +Github: [email protected]:hinesmr/qemu.git, 'rdma' branch + +Copyright (C) 2013 Michael R. Hines <[email protected]> + +An *exhaustive* paper (2010) shows additional performance details +linked on the QEMU wiki above. + +Contents: +========= +* Introduction +* Before running +* Running +* Performance +* RDMA Migration Protocol Description +* Versioning and Capabilities +* QEMUFileRDMA Interface +* Migration of pc.ram +* Error handling +* TODO + +Introduction: +============= + +RDMA helps make your migration more deterministic under heavy load because +of the significantly lower latency and higher throughput over TCP/IP. This is +because the RDMA I/O architecture reduces the number of interrupts and +data copies by bypassing the host networking stack. In particular, a TCP-based +migration, under certain types of memory-bound workloads, may take a more +unpredicatable amount of time to complete the migration if the amount of +memory tracked during each live migration iteration round cannot keep pace +with the rate of dirty memory produced by the workload. + +RDMA currently comes in two flavors: both Ethernet based (RoCE, or RDMA +over Convered Ethernet) as well as Infiniband-based. This implementation of +migration using RDMA is capable of using both technologies because of +the use of the OpenFabrics OFED software stack that abstracts out the +programming model irrespective of the underlying hardware. + +Refer to openfabrics.org or your respective RDMA hardware vendor for +an understanding on how to verify that you have the OFED software stack +installed in your environment. You should be able to successfully link +against the "librdmacm" and "libibverbs" libraries and development headers +for a working build of QEMU to run successfully using RDMA Migration. + +BEFORE RUNNING: +=============== + +Use of RDMA during migration requires pinning and registering memory +with the hardware. This means that memory must be physically resident +before the hardware can transmit that memory to another machine. +If this is not acceptable for your application or product, then the use +of RDMA migration may in fact be harmful to co-located VMs or other +software on the machine if there is not sufficient memory available to +relocate the entire footprint of the virtual machine. If so, then the +use of RDMA is discouraged and it is recommended to use standard TCP migration. + +Experimental: Next, decide if you want dynamic page registration. +For example, if you have an 8GB RAM virtual machine, but only 1GB +is in active use, then enabling this feature will cause all 8GB to +be pinned and resident in memory. This feature mostly affects the +bulk-phase round of the migration and can be enabled for extremely +high-performance RDMA hardware using the following command: + +QEMU Monitor Command: +$ migrate_set_capability x-rdma-pin-all on # disabled by default + +Performing this action will cause all 8GB to be pinned, so if that's +not what you want, then please ignore this step altogether. + +On the other hand, this will also significantly speed up the bulk round +of the migration, which can greatly reduce the "total" time of your migration. +Example performance of this using an idle VM in the previous example +can be found in the "Performance" section. + +RUNNING: +======== + +First, set the migration speed to match your hardware's capabilities: + +QEMU Monitor Command: +$ migrate_set_speed 40g # or whatever is the MAX of your RDMA device + +Next, on the destination machine, add the following to the QEMU command line: + +qemu ..... -incoming x-rdma:host:port + +Finally, perform the actual migration on the source machine: + +QEMU Monitor Command: +$ migrate -d x-rdma:host:port + +PERFORMANCE +=========== + +Here is a brief summary of total migration time and downtime using RDMA: +Using a 40gbps infiniband link performing a worst-case stress test, +using an 8GB RAM virtual machine: + +Using the following command: +$ apt-get install stress +$ stress --vm-bytes 7500M --vm 1 --vm-keep + +1. Migration throughput: 26 gigabits/second. +2. Downtime (stop time) varies between 15 and 100 milliseconds. + +EFFECTS of memory registration on bulk phase round: + +For example, in the same 8GB RAM example with all 8GB of memory in +active use and the VM itself is completely idle using the same 40 gbps +infiniband link: + +1. x-rdma-pin-all disabled total time: approximately 7.5 seconds @ 9.5 Gbps +2. x-rdma-pin-all enabled total time: approximately 4 seconds @ 26 Gbps + +These numbers would of course scale up to whatever size virtual machine +you have to migrate using RDMA. + +Enabling this feature does *not* have any measurable affect on +migration *downtime*. This is because, without this feature, all of the +memory will have already been registered already in advance during +the bulk round and does not need to be re-registered during the successive +iteration rounds. + +RDMA Protocol Description: +========================== + +Migration with RDMA is separated into two parts: + +1. The transmission of the pages using RDMA +2. Everything else (a control channel is introduced) + +"Everything else" is transmitted using a formal +protocol now, consisting of infiniband SEND messages. + +An infiniband SEND message is the standard ibverbs +message used by applications of infiniband hardware. +The only difference between a SEND message and an RDMA +message is that SEND messages cause notifications +to be posted to the completion queue (CQ) on the +infiniband receiver side, whereas RDMA messages (used +for pc.ram) do not (to behave like an actual DMA). + +Messages in infiniband require two things: + +1. registration of the memory that will be transmitted +2. (SEND only) work requests to be posted on both + sides of the network before the actual transmission + can occur. + +RDMA messages are much easier to deal with. Once the memory +on the receiver side is registered and pinned, we're +basically done. All that is required is for the sender +side to start dumping bytes onto the link. + +(Memory is not released from pinning until the migration +completes, given that RDMA migrations are very fast.) + +SEND messages require more coordination because the +receiver must have reserved space (using a receive +work request) on the receive queue (RQ) before QEMUFileRDMA +can start using them to carry all the bytes as +a control transport for migration of device state. + +To begin the migration, the initial connection setup is +as follows (migration-rdma.c): + +1. Receiver and Sender are started (command line or libvirt): +2. Both sides post two RQ work requests +3. Receiver does listen() +4. Sender does connect() +5. Receiver accept() +6. Check versioning and capabilities (described later) + +At this point, we define a control channel on top of SEND messages +which is described by a formal protocol. Each SEND message has a +header portion and a data portion (but together are transmitted +as a single SEND message). + +Header: + * Length (of the data portion, uint32, network byte order) + * Type (what command to perform, uint32, network byte order) + * Repeat (Number of commands in data portion, same type only) + +The 'Repeat' field is here to support future multiple page registrations +in a single message without any need to change the protocol itself +so that the protocol is compatible against multiple versions of QEMU. +Version #1 requires that all server implementations of the protocol must +check this field and register all requests found in the array of commands located +in the data portion and return an equal number of results in the response. +The maximum number of repeats is hard-coded to 4096. This is a conservative +limit based on the maximum size of a SEND message along with emperical +observations on the maximum future benefit of simultaneous page registrations. + +The 'type' field has 9 different command values: + 1. Unused + 2. Error (sent to the source during bad things) + 3. Ready (control-channel is available) + 4. QEMU File (for sending non-live device state) + 5. RAM Blocks (used right after connection setup) + 6. Compress page (zap zero page and skip registration) + 7. Register request (dynamic chunk registration) + 8. Register result ('rkey' to be used by sender) + 9. Register finished (registration for current iteration finished) + +A single control message, as hinted above, can contain within the data +portion an array of many commands of the same type. If there is more than +one command, then the 'repeat' field will be greater than 1. + +After connection setup is completed, we have two protocol-level +functions, responsible for communicating control-channel commands +using the above list of values: + +Logically: + +qemu_rdma_exchange_recv(header, expected command type) + +1. We transmit a READY command to let the sender know that + we are *ready* to receive some data bytes on the control channel. +2. Before attempting to receive the expected command, we post another + RQ work request to replace the one we just used up. +3. Block on a CQ event channel and wait for the SEND to arrive. +4. When the send arrives, librdmacm will unblock us. +5. Verify that the command-type and version received matches the one we expected. + +qemu_rdma_exchange_send(header, data, optional response header & data): + +1. Block on the CQ event channel waiting for a READY command + from the receiver to tell us that the receiver + is *ready* for us to transmit some new bytes. +2. Optionally: if we are expecting a response from the command + (that we have no yet transmitted), let's post an RQ + work request to receive that data a few moments later. +3. When the READY arrives, librdmacm will + unblock us and we immediately post a RQ work request + to replace the one we just used up. +4. Now, we can actually post the work request to SEND + the requested command type of the header we were asked for. +5. Optionally, if we are expecting a response (as before), + we block again and wait for that response using the additional + work request we previously posted. (This is used to carry + 'Register result' commands #6 back to the sender which + hold the rkey need to perform RDMA. Note that the virtual address + corresponding to this rkey was already exchanged at the beginning + of the connection (described below). + +All of the remaining command types (not including 'ready') +described above all use the aformentioned two functions to do the hard work: + +1. After connection setup, RAMBlock information is exchanged using + this protocol before the actual migration begins. This information includes + a description of each RAMBlock on the server side as well as the virtual addresses + and lengths of each RAMBlock. This is used by the client to determine the + start and stop locations of chunks and how to register them dynamically + before performing the RDMA operations. +2. During runtime, once a 'chunk' becomes full of pages ready to + be sent with RDMA, the registration commands are used to ask the + other side to register the memory for this chunk and respond + with the result (rkey) of the registration. +3. Also, the QEMUFile interfaces also call these functions (described below) + when transmitting non-live state, such as devices or to send + its own protocol information during the migration process. +4. Finally, zero pages are only checked if a page has not yet been registered + using chunk registration (or not checked at all and unconditionally + written if chunk registration is disabled. This is accomplished using + the "Compress" command listed above. If the page *has* been registered + then we check the entire chunk for zero. Only if the entire chunk is + zero, then we send a compress command to zap the page on the other side. + +Versioning and Capabilities +=========================== +Current version of the protocol is version #1. + +The same version applies to both for protocol traffic and capabilities +negotiation. (i.e. There is only one version number that is referred to +by all communication). + +librdmacm provides the user with a 'private data' area to be exchanged +at connection-setup time before any infiniband traffic is generated. + +Header: + * Version (protocol version validated before send/recv occurs), uint32, network byte order + * Flags (bitwise OR of each capability), uint32, network byte order + +There is no data portion of this header right now, so there is +no length field. The maximum size of the 'private data' section +is only 192 bytes per the Infiniband specification, so it's not +very useful for data anyway. This structure needs to remain small. + +This private data area is a convenient place to check for protocol +versioning because the user does not need to register memory to +transmit a few bytes of version information. + +This is also a convenient place to negotiate capabilities +(like dynamic page registration). + +If the version is invalid, we throw an error. + +If the version is new, we only negotiate the capabilities that the +requested version is able to perform and ignore the rest. + +Currently there is only *one* capability in Version #1: dynamic page registration + +Finally: Negotiation happens with the Flags field: If the primary-VM +sets a flag, but the destination does not support this capability, it +will return a zero-bit for that flag and the primary-VM will understand +that as not being an available capability and will thus disable that +capability on the primary-VM side. + +QEMUFileRDMA Interface: +======================= + +QEMUFileRDMA introduces a couple of new functions: + +1. qemu_rdma_get_buffer() (QEMUFileOps rdma_read_ops) +2. qemu_rdma_put_buffer() (QEMUFileOps rdma_write_ops) + +These two functions are very short and simply use the protocol +describe above to deliver bytes without changing the upper-level +users of QEMUFile that depend on a bytestream abstraction. + +Finally, how do we handoff the actual bytes to get_buffer()? + +Again, because we're trying to "fake" a bytestream abstraction +using an analogy not unlike individual UDP frames, we have +to hold on to the bytes received from control-channel's SEND +messages in memory. + +Each time we receive a complete "QEMU File" control-channel +message, the bytes from SEND are copied into a small local holding area. + +Then, we return the number of bytes requested by get_buffer() +and leave the remaining bytes in the holding area until get_buffer() +comes around for another pass. + +If the buffer is empty, then we follow the same steps +listed above and issue another "QEMU File" protocol command, +asking for a new SEND message to re-fill the buffer. + +Migration of pc.ram: +==================== + +At the beginning of the migration, (migration-rdma.c), +the sender and the receiver populate the list of RAMBlocks +to be registered with each other into a structure. +Then, using the aforementioned protocol, they exchange a +description of these blocks with each other, to be used later +during the iteration of main memory. This description includes +a list of all the RAMBlocks, their offsets and lengths, virtual +addresses and possibly includes pre-registered RDMA keys in case dynamic +page registration was disabled on the server-side, otherwise not. + +Main memory is not migrated with the aforementioned protocol, +but is instead migrated with normal RDMA Write operations. + +Pages are migrated in "chunks" (hard-coded to 1 Megabyte right now). +Chunk size is not dynamic, but it could be in a future implementation. +There's nothing to indicate that this is useful right now. + +When a chunk is full (or a flush() occurs), the memory backed by +the chunk is registered with librdmacm is pinned in memory on +both sides using the aforementioned protocol. +After pinning, an RDMA Write is generated and transmitted +for the entire chunk. + +Chunks are also transmitted in batches: This means that we +do not request that the hardware signal the completion queue +for the completion of *every* chunk. The current batch size +is about 64 chunks (corresponding to 64 MB of memory). +Only the last chunk in a batch must be signaled. +This helps keep everything as asynchronous as possible +and helps keep the hardware busy performing RDMA operations. + +Error-handling: +=============== + +Infiniband has what is called a "Reliable, Connected" +link (one of 4 choices). This is the mode in which +we use for RDMA migration. + +If a *single* message fails, +the decision is to abort the migration entirely and +cleanup all the RDMA descriptors and unregister all +the memory. + +After cleanup, the Virtual Machine is returned to normal +operation the same way that would happen if the TCP +socket is broken during a non-RDMA based migration. + +TODO: +===== +1. 'migrate x-rdma:host:port' and '-incoming x-rdma' options will be + renamed to 'rdma' after the experimental phase of this work has + completed upstream. +2. Currently, 'ulimit -l' mlock() limits as well as cgroups swap limits + are not compatible with infinband memory pinning and will result in + an aborted migration (but with the source VM left unaffected). +3. Use of the recent /proc/<pid>/pagemap would likely speed up + the use of KSM and ballooning while using RDMA. +4. Also, some form of balloon-device usage tracking would also + help alleviate some issues.
Signature · 1 line
1.7.10.4
PATCH v5 2/12 rdma: export yield_until_fd_readable()
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
The RDMA event channel can be made non-blocking just like a TCP socket. Exporting this function allows us to yield so that the QEMU monitor remains available.
--- include/block/coroutine.h | 6 + migration-rdma.c | 2727 +++++++++++++++++++++++++++++++++++++++++++++ qemu-coroutine-io.c | 23 + savevm.c | 28 - 4 files changed, 2756 insertions(+), 28 deletions(-) create mode 100644 migration-rdma.c
include/block/coroutine.h +6 -0
@@ -209,4 +209,10 @@ void qemu_co_rwlock_unlock(CoRwlock *lock);*/ void coroutine_fn co_sleep_ns(QEMUClock *clock, int64_t ns); +/** +* Yield until a file descriptor becomes readable +* +* Note that this function clobbers the handlers for the file descriptor. +*/ +void coroutine_fn yield_until_fd_readable(int fd);#endif /* QEMU_COROUTINE_H */
migration-rdma.c new file +2727 -0
2,727 lines not on this page · raw message
qemu-coroutine-io.c +23 -0
@@ -63,3 +63,26 @@ qemu_co_send_recv(int sockfd, void *buf, size_t bytes, bool do_send)struct iovec iov = { .iov_base = buf, .iov_len = bytes };return qemu_co_sendv_recvv (sockfd, &iov,1 ,0 , bytes, do_send); } + +typedef struct { +Coroutine *co; +int fd; +}FDYieldUntilData ; + +static void fd_coroutine_enter (void *opaque) +{ +FDYieldUntilData *data = opaque; +qemu_set_fd_handler (data->fd,NULL ,NULL ,NULL ); +qemu_coroutine_enter (data->co,NULL ); +} + +void coroutine_fn yield_until_fd_readable(int fd) +{ +FDYieldUntilData data; + +assert (qemu_in_coroutine ()); + data.co =qemu_coroutine_self (); + data.fd = fd; +qemu_set_fd_handler (fd, fd_coroutine_enter,NULL , &data); +qemu_coroutine_yield (); +}
savevm.c +0 -28
@@ -147,34 +147,6 @@ typedef struct QEMUFileSocketQEMUFile *file; } QEMUFileSocket; -typedef struct { -Coroutine *co; -int fd; -}FDYieldUntilData ; - -static void fd_coroutine_enter (void *opaque) -{ -FDYieldUntilData *data = opaque; -qemu_set_fd_handler (data->fd,NULL ,NULL ,NULL ); -qemu_coroutine_enter (data->co,NULL ); -} - -/** -* Yield until a file descriptor becomes readable -* -* Note that this function clobbers the handlers for the file descriptor. -*/ -static void coroutine_fn yield_until_fd_readable(int fd) -{ -FDYieldUntilData data; - -assert (qemu_in_coroutine ()); - data.co =qemu_coroutine_self (); - data.fd = fd; -qemu_set_fd_handler (fd, fd_coroutine_enter,NULL , &data); -qemu_coroutine_yield (); -} -static ssize_t socket_writev_buffer (void *opaque,struct iovec *iov,int iovcnt,int64_t pos) {
Signature · 1 line
1.7.10.4
PATCH v5 3/12 rdma: export throughput w/ MigrationStats QMP
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
This exposes throughput (in megabits/sec) through QMP.
By itself, this patch only prints zero and the value is actually calculated in the next patch.
--- hmp.c | 2 ++ include/migration/qemu-file.h | 2 ++ migration.c | 2 ++ qapi-schema.json | 5 ++++- savevm.c | 7 +++++++ 5 files changed, 17 insertions(+), 1 deletion(-)
hmp.c +2 -0
@@ -167,6 +167,8 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)if (info->has_ram) {monitor_printf (mon,"transferred ram: %" PRIu64" kbytes\n" , info->ram->transferred >>10 ); +monitor_printf (mon,"throughput: %0.2f mbps\n" , + info->ram->mbps);monitor_printf (mon,"remaining ram: %" PRIu64" kbytes\n" , info->ram->remaining >>10 ); monitor_printf(mon, "total ram: %" PRIu64 " kbytes\n",
include/migration/qemu-file.h +2 -0
@@ -80,6 +80,8 @@ void qemu_put_byte(QEMUFile *f, int v);* The buffer should be available till it is sent asynchronously. */ void qemu_put_buffer_async (QEMUFile *f,const uint8_t *buf,int size); +double qemu_get_mbps (void ); +static inline void qemu_put_ubyte (QEMUFile *f,unsigned int v) {
migration.c +2 -0
@@ -201,6 +201,7 @@ MigrationInfo *qmp_query_migrate(Error **errp) info->ram->normal =norm_mig_pages_transferred (); info->ram->normal_bytes =norm_mig_bytes_transferred (); info->ram->dirty_pages_rate = s->dirty_pages_rate; + info->ram->mbps =qemu_get_mbps ();if (blk_mig_active ()) { info->has_disk = true;
@@ -230,6 +231,7 @@ MigrationInfo *qmp_query_migrate(Error **errp) info->ram->skipped =skipped_mig_pages_transferred (); info->ram->normal =norm_mig_pages_transferred (); info->ram->normal_bytes =norm_mig_bytes_transferred (); + info->ram->mbps =qemu_get_mbps ();break ;case MIG_STATE_ERROR : info->has_status = true;
qapi-schema.json +4 -1
@@ -507,12 +507,15 @@ # @dirty-pages-rate: number of pages dirtied by second by the # guest (since 1.3) # +# @mbps: throughput in megabits/sec. (since 1.5) +# # Since: 0.14.0 ## { 'type': 'MigrationStats', 'data': {'transferred': 'int', 'remaining': 'int', 'total': 'int' , 'duplicate': 'int', 'skipped': 'int', 'normal': 'int', - 'normal-bytes': 'int', 'dirty-pages-rate' : 'int' } } + 'normal-bytes': 'int', 'dirty-pages-rate' : 'int', + 'mbps' : 'number' } } ## # @XBZRLECacheStats
savevm.c +7 -0
@@ -632,6 +632,13 @@ static void qemu_fill_buffer(QEMUFile *f)qemu_file_set_error (f, len); } +static double mbps =-1 ; + +double qemu_get_mbps (void ) +{ +return mbps; +} +int qemu_get_fd (QEMUFile *f) {if (f->ops->get_fd) {
Signature · 1 line
1.7.10.4
PATCH v5 4/12 rdma: introduce qemu_get_max_size()
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
This functions allows you to perform your own per-QEMUFileOps calculation for the value of 'max_size'.
For RDMA, this calculation artificially limits migration throughput and needs to be done differently for high-throughput links.
--- include/migration/qemu-file.h | 12 ++++++++++++ migration.c | 3 ++- savevm.c | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-)
include/migration/qemu-file.h +12 -0
@@ -57,12 +57,22 @@ typedef int (QEMUFileGetFD)(void *opaque);typedef ssize_t (QEMUFileWritevBufferFunc )(void *opaque,struct iovec *iov,int iovcnt,int64_t pos); +/* +* This function allows override of how to calculate max_size +* after each iteration. +*/ +typedef size_t (QEMUFileMaxSizeFunc )(QEMUFile *f,void *opaque, +uint64_t transferred_bytes, +uint64_t time_spent, +uint64_t max_downtime); +typedef struct QEMUFileOps {QEMUFilePutBufferFunc *put_buffer;QEMUFileGetBufferFunc *get_buffer;QEMUFileCloseFunc *close;QEMUFileGetFD *get_fd;QEMUFileWritevBufferFunc *writev_buffer; +QEMUFileMaxSizeFunc *get_max_size; }QEMUFileOps ;QEMUFile *qemu_fopen_ops (void *opaque,const QEMUFileOps *ops);
@@ -81,6 +91,8 @@ void qemu_put_byte(QEMUFile *f, int v);*/ void qemu_put_buffer_async (QEMUFile *f,const uint8_t *buf,int size);double qemu_get_mbps (void ); +size_t qemu_get_max_size (QEMUFile *f,uint64_t transferred_bytes, +uint64_t time_spent,uint64_t max_downtime);static inline void qemu_put_ubyte (QEMUFile *f,unsigned int v)
migration.c +2 -1
@@ -545,7 +545,8 @@ static void *migration_thread(void *opaque)uint64_t transferred_bytes =qemu_ftell (s->file) - initial_bytes;uint64_t time_spent = current_time - initial_time - sleep_time;double bandwidth = transferred_bytes / time_spent; - max_size = bandwidth *migrate_max_downtime () /1000000 ; + max_size =qemu_get_max_size (s->file, transferred_bytes, + time_spent,migrate_max_downtime ()); DPRINTF("transferred %" PRIu64 " time_spent %" PRIu64 " bandwidth %g max_size %" PRId64 "\n",
savevm.c +19 -0
@@ -647,6 +647,25 @@ int qemu_get_fd(QEMUFile *f)return -1 ; } +size_t qemu_get_max_size (QEMUFile *f,uint64_t transferred_bytes, +uint64_t time_spent,uint64_t max_downtime) +{ +if (time_spent) { + mbps = (((double ) transferred_bytes *8.0 ) / + ((double ) time_spent /1000.0 )) /1000.0 /1000.0 ; + }else { + mbps =-1.0 ; + } + +if (f->ops->get_max_size) { +return f->ops->get_max_size (f, f->opaque, + transferred_bytes, time_spent, max_downtime); + } + +return ((double ) (transferred_bytes / (double ) time_spent)) * + (double ) max_downtime /1000000.0 ; +} +/** Closes the file * * Returns negative error value if any error happened on previous operations or
Signature · 1 line
1.7.10.4
PATCH v5 5/12 rdma: introduce qemu_file_mode_is_not_valid()
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
QEMUFileRDMA also has read and write modes. This function is now shared to reduce code duplication.
--- include/migration/qemu-file.h | 1 + savevm.c | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-)
include/migration/qemu-file.h +1 -0
@@ -93,6 +93,7 @@ void qemu_put_buffer_async(QEMUFile *f, const uint8_t *buf, int size);double qemu_get_mbps (void );size_t qemu_get_max_size (QEMUFile *f,uint64_t transferred_bytes,uint64_t time_spent,uint64_t max_downtime); +bool qemu_file_mode_is_not_valid (const char *mode);static inline void qemu_put_ubyte (QEMUFile *f,unsigned int v)
savevm.c +13 -7
@@ -447,14 +447,23 @@ static const QEMUFileOps socket_write_ops = { .close = socket_close }; -QEMUFile *qemu_fopen_socket (int fd,const char *mode) +bool qemu_file_mode_is_not_valid (const char *mode) { -QEMUFileSocket *s =g_malloc0 (sizeof (QEMUFileSocket)); -if (mode ==NULL || (mode[0 ] !='r' && mode[0 ] !='w' ) || mode[1 ] !='b' || mode[2 ] !=0 ) {fprintf (stderr,"qemu_fopen: Argument validity check failed\n" ); +return true; + } + +return false; +} + +QEMUFile *qemu_fopen_socket (int fd,const char *mode) +{ +QEMUFileSocket *s =g_malloc0 (sizeof (QEMUFileSocket)); + +if (qemu_file_mode_is_not_valid (mode)) {return NULL ; }
@@ -472,10 +481,7 @@ QEMUFile *qemu_fopen(const char *filename, const char *mode) {QEMUFileStdio *s; -if (mode ==NULL || - (mode[0 ] !='r' && mode[0 ] !='w' ) || - mode[1 ] !='b' || mode[2 ] !=0 ) { -fprintf (stderr,"qemu_fopen: Argument validity check failed\n" ); +if (qemu_file_mode_is_not_valid (mode)) {return NULL ; }
Signature · 1 line
1.7.10.4
PATCH v5 6/12 rdma: export qemu_fflush()
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
RDMA uses this to flush the control channel before sending its own message to handle page registrations.
--- include/migration/qemu-file.h | 1 + savevm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
include/migration/qemu-file.h +1 -0
@@ -94,6 +94,7 @@ double qemu_get_mbps(void);size_t qemu_get_max_size (QEMUFile *f,uint64_t transferred_bytes,uint64_t time_spent,uint64_t max_downtime);bool qemu_file_mode_is_not_valid (const char *mode); +void qemu_fflush (QEMUFile *f);static inline void qemu_put_ubyte (QEMUFile *f,unsigned int v)
savevm.c +1 -1
@@ -586,7 +586,7 @@ static inline bool qemu_file_is_writable(QEMUFile *f)* If there is writev_buffer QEMUFileOps it uses it otherwise uses * put_buffer ops. */ -static void qemu_fflush (QEMUFile *f) +void qemu_fflush (QEMUFile *f) {ssize_t ret =0 ;
Signature · 1 line
1.7.10.4
PATCH v5 7/12 rdma: introduce ram_handle_compressed()
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
This gives RDMA shared access to madvise() on the destination side when an entire chunk is found to be zero.
--- arch_init.c | 24 ++++++++++++++++-------- include/migration/migration.h | 2 ++ 2 files changed, 18 insertions(+), 8 deletions(-)
arch_init.c +16 -8
@@ -770,6 +770,21 @@ static inline void *host_from_stream_offset(QEMUFile *f,return NULL ; } +/* +* If a page (or a whole RDMA chunk) has been +* determined to be zero, then zap it. +*/ +void ram_handle_compressed (void *host,uint8_t ch,uint64_t size) +{ +memset (host, ch,TARGET_PAGE_SIZE ); +#ifndef _WIN32 +if (ch ==0 && (!kvm_enabled () ||kvm_has_sync_mmu ()) && +getpagesize () <=TARGET_PAGE_SIZE ) { +qemu_madvise (host, size,QEMU_MADV_DONTNEED ); + } +#endif +} +static int ram_load (QEMUFile *f,void *opaque,int version_id) {ram_addr_t addr;
@@ -837,14 +852,7 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id) } ch =qemu_get_byte (f); -memset (host, ch,TARGET_PAGE_SIZE ); -#ifndef _WIN32 -if (ch ==0 && - (!kvm_enabled () ||kvm_has_sync_mmu ()) && -getpagesize () <=TARGET_PAGE_SIZE ) { -qemu_madvise (host,TARGET_PAGE_SIZE ,QEMU_MADV_DONTNEED ); - } -#endif +ram_handle_compressed (host, ch,TARGET_PAGE_SIZE ); }else if (flags &RAM_SAVE_FLAG_PAGE ) {void *host;
include/migration/migration.h +2 -0
@@ -105,6 +105,8 @@ uint64_t xbzrle_mig_pages_transferred(void);uint64_t xbzrle_mig_pages_overflow (void );uint64_t xbzrle_mig_pages_cache_miss (void ); +void ram_handle_compressed (void *host,uint8_t ch,uint64_t size); +/** * @migrate_add_blocker - prevent migration from proceeding *
Signature · 1 line
1.7.10.4
PATCH v5 8/12 rdma: introduce qemu_ram_foreach_block()
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
This is used during RDMA initialization in order to transmit a description of all the RAM blocks to the peer for later dynamic chunk registration purposes.
--- exec.c | 9 +++++++++ include/exec/cpu-common.h | 5 +++++ 2 files changed, 14 insertions(+)
exec.c +9 -0
@@ -2631,3 +2631,12 @@ bool cpu_physical_memory_is_io(hwaddr phys_addr) memory_region_is_romd(section->mr)); }#endif + +void qemu_ram_foreach_block (RAMBlockIterFunc func,void *opaque) +{ +RAMBlock *block; + + QTAILQ_FOREACH(block, &ram_list.blocks, next) { +func (block->host, block->offset, block->length, opaque); + } +}
include/exec/cpu-common.h +5 -0
@@ -119,6 +119,11 @@ extern struct MemoryRegion io_mem_rom;extern struct MemoryRegion io_mem_unassigned;extern struct MemoryRegion io_mem_notdirty; +typedef void (RAMBlockIterFunc )(void *host_addr, +ram_addr_t offset,ram_addr_t length,void *opaque); + +void qemu_ram_foreach_block (RAMBlockIterFunc func,void *opaque); +#endif #endif /* !CPU_COMMON_H */
Signature · 1 line
1.7.10.4
PATCH v5 9/12 rdma: new QEMUFileOps hooks
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
These are the prototypes and implementation of new hooks that RDMA takes advantage of to perform dynamic page registration.
An optional hook is also introduced for a custom function to be able to override the default save_page function.
Also included are the prototypes and accessor methods used by arch_init.c which invoke funtions inside savevm.c to call out to the hooks that may or may not have been overridden inside of QEMUFileOps.
--- include/migration/migration.h | 16 ++++++++++++ include/migration/qemu-file.h | 28 ++++++++++++++++++++ savevm.c | 57 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+)
include/migration/migration.h +16 -0
@@ -21,6 +21,7 @@#include "qapi/error.h" #include "migration/vmstate.h" #include "qapi-types.h" +#include "exec/cpu-common.h" struct MigrationParams {bool blk;
@@ -129,4 +130,19 @@ int migrate_use_xbzrle(void);int64_t migrate_xbzrle_cache_size (void );int64_t xbzrle_cache_resize (int64_t new_size); + +void ram_control_before_iterate (QEMUFile *f,uint64_t flags); +void ram_control_after_iterate (QEMUFile *f,uint64_t flags); +void ram_control_load_hook (QEMUFile *f,uint64_t flags); + +/* Whenever this is found in the data stream, the flags +* will be passed to ram_control_load_hook in the incoming-migration +* side. This lets before_ram_iterate/after_ram_iterate add +* transport-specific sections to the RAM migration data. +*/ +#define RAM_SAVE_FLAG_HOOK 0x80 + +size_t ram_control_save_page (QEMUFile *f,ram_addr_t block_offset, +ram_addr_t offset,size_t size); +#endif
include/migration/qemu-file.h +28 -0
@@ -23,6 +23,7 @@*/ #ifndef QEMU_FILE_H #define QEMU_FILE_H 1 +#include "exec/cpu-common.h" /* This function writes a chunk of data to a file at the given position. * The pos argument can be ignored if the file is only being used for
@@ -66,6 +67,29 @@ typedef size_t (QEMUFileMaxSizeFunc)(QEMUFile *f, void *opaque,uint64_t time_spent, uint64_t max_downtime); +/* +* This function provides hooks around different +* stages of RAM migration. +*/ +typedef int (QEMURamHookFunc )(QEMUFile *f,void *opaque,uint64_t flags); + +/* +* Constants used by ram_control_* hooks +*/ +#define RAM_CONTROL_SETUP 0 +#define RAM_CONTROL_ROUND 1 +#define RAM_CONTROL_HOOK 2 +#define RAM_CONTROL_FINISH 3 + +/* +* This function allows override of where the RAM page +* is saved (such as RDMA, for example.) +*/ +typedef size_t (QEMURamSaveFunc )(QEMUFile *f,void *opaque, +ram_addr_t block_offset, +ram_addr_t offset, +size_t size); + typedef struct QEMUFileOps { QEMUFilePutBufferFunc *put_buffer; QEMUFileGetBufferFunc *get_buffer;
@@ -73,6 +97,10 @@ typedef struct QEMUFileOps {QEMUFileGetFD *get_fd;QEMUFileWritevBufferFunc *writev_buffer;QEMUFileMaxSizeFunc *get_max_size; +QEMURamHookFunc *before_ram_iterate; +QEMURamHookFunc *after_ram_iterate; +QEMURamHookFunc *hook_ram_load; +QEMURamSaveFunc *save_page; } QEMUFileOps;QEMUFile *qemu_fopen_ops (void *opaque,const QEMUFileOps *ops);
savevm.c +57 -0
63 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH v5 10/12 rdma: introduce capability x-rdma-pin-all
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
This capability allows you to disable dynamic chunk registration for better throughput on high-performance links.
For example, using an 8GB RAM virtual machine with all 8GB of memory in active use and the VM itself is completely idle using a 40 gbps infiniband link:
1. x-rdma-pin-all disabled total time: approximately 7.5 seconds @ 9.5 Gbps
2. x-rdma-pin-all enabled total time: approximately 4 seconds @ 26 Gbps
These numbers would of course scale up to whatever size virtual machine you have to migrate using RDMA.
Enabling this feature does *not* have any measurable affect on migration *downtime*. This is because, without this feature, all of the memory will have already been registered already in advance during the bulk round and does not need to be re-registered during the successive iteration rounds.
--- include/migration/migration.h | 2 ++ migration.c | 9 +++++++++ qapi-schema.json | 7 ++++++- 3 files changed, 17 insertions(+), 1 deletion(-)
include/migration/migration.h +2 -0
@@ -122,6 +122,8 @@ void migrate_add_blocker(Error *reason);*/ void migrate_del_blocker (Error *reason); +bool migrate_rdma_pin_all (void ); +int xbzrle_encode_buffer (uint8_t *old_buf,uint8_t *new_buf,int slen,uint8_t *dst,int dlen);int xbzrle_decode_buffer (uint8_t *src,int slen,uint8_t *dst,int dlen);
migration.c +9 -0
@@ -476,6 +476,15 @@ void qmp_migrate_set_downtime(double value, Error **errp) max_downtime = (uint64_t )value; } +bool migrate_rdma_pin_all (void ) +{ +MigrationState *s; + + s =migrate_get_current (); + +return s->enabled_capabilities[MIGRATION_CAPABILITY_X_RDMA_PIN_ALL ]; +} +int migrate_use_xbzrle (void ) {MigrationState *s;
qapi-schema.json +6 -1
@@ -602,10 +602,15 @@ # This feature allows us to minimize migration traffic for certain work # loads, by sending compressed difference of the pages # +# @x-rdma-pin-all: Controls whether or not the entire VM memory footprint is +# mlock()'d on demand or all at once. Refer to docs/rdma.txt for usage. +# Disabled by default. Experimental: may (or may not) be renamed after +# further testing is complete. (since 1.5) +# # Since: 1.2 ## { 'enum': 'MigrationCapability', - 'data': ['xbzrle'] } + 'data': ['xbzrle', 'x-rdma-pin-all'] } ## # @MigrationCapabilityStatus
Signature · 1 line
1.7.10.4
PATCH v5 11/12 rdma: core logic
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
Code that does need to be visible is kept
well contained inside this file and this is the only new additional file to the entire patch - good progress.
This file includes the entire protocol and interfaces required to perform RDMA migration.
Also, the configure and Makefile modifications to link this file are included.
Full documentation is in docs/rdma.txt
--- Makefile.objs | 1 + configure | 29 +++++++++++++++++++++++++++++ include/migration/migration.h | 4 ++++ migration.c | 8 ++++++++ migration-rdma.c | 2727 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 2769 insertions(+)
Makefile.objs +1 -0
@@ -49,6 +49,7 @@ common-obj-$(CONFIG_POSIX) += os-posix.o common-obj-$(CONFIG_LINUX) += fsdev/ common-obj-y += migration.o migration-tcp.o +common-obj-$(CONFIG_RDMA) += migration-rdma.o common-obj-y += qemu-char.o #aio.o common-obj-y += block-migration.o common-obj-y += page_cache.o xbzrle.o
configure +29 -0
@@ -180,6 +180,7 @@ xfs="" vhost_net="no" kvm="no" +rdma="yes" gprof="no" debug_tcg="no" debug="no"
@@ -920,6 +921,10 @@ for opt do ;; --enable-gtk) gtk="yes" ;; + --enable-rdma) rdma="yes" + ;; + --disable-rdma) rdma="no" + ;; --with-gtkabi=*) gtkabi="$optarg" ;; --enable-tpm) tpm="yes"
@@ -1131,6 +1136,8 @@ echo " --enable-bluez enable bluez stack connectivity" echo " --disable-slirp disable SLIRP userspace network connectivity" echo " --disable-kvm disable KVM acceleration support" echo " --enable-kvm enable KVM acceleration support" +echo " --disable-rdma disable RDMA-based migration support" +echo " --enable-rdma enable RDMA-based migration support" echo " --enable-tcg-interpreter enable TCG with bytecode interpreter (TCI)" echo " --disable-nptl disable usermode NPTL support" echo " --enable-nptl enable usermode NPTL support"
@@ -1805,6 +1812,23 @@ EOF libs_softmmu="$sdl_libs $libs_softmmu" fi +if test "$rdma" != "no" ; then + cat > $TMPC <<EOF +#include <rdma/rdma_cma.h> +int main(void) { return 0; } +EOF + rdma_libs="-lrdmacm -libverbs" + if compile_prog "-Werror" "$rdma_libs" ; then + rdma="yes" + libs_softmmu="$libs_softmmu $rdma_libs" + else + if test "$rdma" = "yes" ; then + feature_not_found "rdma" + fi + rdma="no" + fi +fi + ########################################## # VNC TLS/WS detection if test "$vnc" = "yes" -a \( "$vnc_tls" != "no" -o "$vnc_ws" != "no" \) ; then
@@ -3543,6 +3567,7 @@ echo "Linux AIO support $linux_aio" echo "ATTR/XATTR support $attr" echo "Install blobs $blobs" echo "KVM support $kvm" +echo "RDMA support $rdma" echo "TCG interpreter $tcg_interpreter" echo "fdt support $fdt" echo "preadv support $preadv"
@@ -4505,6 +4530,10 @@ if [ "$pixman" = "internal" ]; then echo "config-host.h: subdir-pixman" >> $config_host_mak fi +if test "$rdma" = "yes" ; then +echo "CONFIG_RDMA=y" >> $config_host_mak +fi + if [ "$dtc_internal" = "yes" ]; then echo "config-host.h: subdir-dtc" >> $config_host_mak fi
include/migration/migration.h +4 -0
@@ -76,6 +76,10 @@ void fd_start_incoming_migration(const char *path, Error **errp);void fd_start_outgoing_migration (MigrationState *s,const char *fdname,Error **errp); +void rdma_start_outgoing_migration (void *opaque,const char *host_port,Error **errp); + +void rdma_start_incoming_migration (const char *host_port,Error **errp); +void migrate_fd_error (MigrationState *s);void migrate_fd_connect (MigrationState *s);
migration.c +8 -0
@@ -77,6 +77,10 @@ void qemu_start_incoming_migration(const char *uri, Error **errp)if (strstart (uri,"tcp:" , &p))tcp_start_incoming_migration (p, errp); +#ifdef CONFIG_RDMA + else if (strstart(uri, "x-rdma:", &p)) +rdma_start_incoming_migration (p, errp); +#endif #if !defined(WIN32 ) else if (strstart(uri, "exec:", &p)) exec_start_incoming_migration(p, errp);
@@ -407,6 +411,10 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk,if (strstart (uri,"tcp:" , &p)) {tcp_start_outgoing_migration (s, p, &local_err); +#ifdef CONFIG_RDMA + }else if (strstart (uri,"x-rdma:" , &p)) { +rdma_start_outgoing_migration (s, p, &local_err); +#endif #if !defined(WIN32 ) } else if (strstart(uri, "exec:", &p)) {exec_start_outgoing_migration (s, p, &local_err);
migration-rdma.c new file +2731 -0
2,731 lines not on this page · raw message
Signature · 1 line
1.7.10.4
Re: [Qemu-devel] [PATCH v5 11/12] rdma: core logic
Il 23/04/2013 03:55, [email protected] ha scritto:
Quoted 8 lines
migration-rdma.c new file +8
-0+static size_t qemu_rdma_get_max_size (QEMUFile *f,void *opaque, +uint64_t transferred_bytes, +uint64_t time_spent, +uint64_t max_downtime) +{ +static uint64_t largest =1 ; +uint64_t max_size = ((double ) (transferred_bytes / time_spent)) + * max_downtime /1000000 ;
migration-rdma.c line 2588
Quoted 10 lines
migration-rdma.c new file +10
-0+ +if (max_size > largest) { + largest = max_size; + } + +DPRINTF ("MBPS: %f, max_size: %" PRIu64" largest: %" PRIu64"\n" , +qemu_get_mbps (), max_size, largest); + +return largest; +}
Can you point me to the discussion of this algorithmic change and qemu_get_max_size? It seems to me that it assumes that the IB link is basically dedicated to migration.
I think it is a big assumption and it may be hiding a bug elsewhere. At the very least, it should be moved to a separate commit and described in the commit message, but actually I'd prefer to not include it in the first submission.
Paolo
Re: [Qemu-devel] [PATCH v5 11/12] rdma: core logic
Quoted 23 lines · Paolo Bonzini
Il 23/04/2013 03:55, [email protected] ha scritto:
Quoted 8 lines
migration-rdma.c new file +8
-0+static size_t qemu_rdma_get_max_size (QEMUFile *f,void *opaque, +uint64_t transferred_bytes, +uint64_t time_spent, +uint64_t max_downtime) +{ +static uint64_t largest =1 ; +uint64_t max_size = ((double ) (transferred_bytes / time_spent)) + * max_downtime /1000000 ;migration-rdma.c line 2588
Quoted 10 lines
migration-rdma.c new file +10
-0+ +if (max_size > largest) { + largest = max_size; + } + +DPRINTF ("MBPS: %f, max_size: %" PRIu64" largest: %" PRIu64"\n" , +qemu_get_mbps (), max_size, largest); + +return largest; +}Can you point me to the discussion of this algorithmic change and
qemu_get_max_size? It seems to me that it assumes that the IB link is basically dedicated to migration.
Quoted 7 lines
I think it is a big assumption and it may be hiding a bug elsewhere. At the very least, it should be moved to a separate commit and described in the commit message, but actually I'd prefer to not include it in the first submission.
Paolo
Until now, I stopped using our 40G hardware (only 10G hardware).
But when I switched back to our 40G hardware, the throughput was being artificially limited to < 10G.
So, I started investigating the problem, and I noticed that whenever I disabled the limits of max_size, the throughput went back to the normal throughput (peak of 26 gbps).
So, rather than change the default max_size calculation for TCP, which would improperly impact existing users of TCP migration, I introduced a new QEMUFileOps change to solve the problem.
What do you think?
- Michael
Re: [Qemu-devel] [PATCH v5 11/12] rdma: core logic
Il 24/04/2013 01:53, Michael R. Hines ha scritto:
Quoted 10 lines
So, I started investigating the problem, and I noticed that whenever I disabled the limits of
max_size, the throughput went back to the normal throughput (peak of 26 gbps).So, rather than change the default
max_sizecalculation for TCP, which would improperly impact existing users of TCP migration, I introduced a new QEMUFileOps change to solve the problem.What do you think?
I'd prefer to remove this and understand it better for 1.6.
I'd be in favor of getting this in 1.5, but without this hook.
Paolo
Re: [Qemu-devel] [PATCH v5 11/12] rdma: core logic
Quoted 9 lines · Paolo Bonzini
Il 24/04/2013 01:53, Michael R. Hines ha scritto:
Quoted 8 lines
So, I started investigating the problem, and I noticed that whenever I disabled the limits of
max_size, the throughput went back to the normal throughput (peak of 26 gbps).So, rather than change the default
max_sizecalculation for TCP, which would improperly impact existing users of TCP migration, I introduced a new QEMUFileOps change to solve the problem.
Quoted 7 lines
Quoted 1 line
What do you think?
I'd prefer to remove this and understand it better for 1.6.
I'd be in favor of getting this in 1.5, but without this hook.
Paolo
OK, let's do it =). I'll delete the hook and send a v6 right now.
- Michael
Re: [Qemu-devel] [PATCH v5 11/12] rdma: core logic
In reply to [email protected]Il 23/04/2013 03:55, [email protected] ha scritto:
migration-rdma.c line 1552
Quoted 5 lines
migration-rdma.c new file +5
-0+ chunk_start =ram_chunk_start (block, rdma->current_chunk); + +if (host_addr < chunk_start) { +return 0 ; + }
Useless if remaining from previous submissions.
Paolo
Re: [Qemu-devel] [PATCH v5 11/12] rdma: core logic
Quoted 10 lines · Paolo Bonzini
Il 23/04/2013 03:55, [email protected] ha scritto:
migration-rdma.c line 1552
Quoted 5 lines
migration-rdma.c new file +5
-0+ chunk_start =ram_chunk_start (block, rdma->current_chunk); + +if (host_addr < chunk_start) { +return 0 ; + }Useless if remaining from previous submissions.
Paolo
Ooops, I missed that one. Sorry about that.
- Michael
PATCH v5 12/12 rdma: send pc.ram
In reply to [email protected]From: "Michael R. Hines" <[email protected]>
This takes advantages of the previous patches:
1. use the new QEMUFileOps hook 'save_page'
2. call out to the right accessor methods to invoke the iteration hooks defined in QEMUFileOps
--- arch_init.c | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-)
arch_init.c +33 -2
@@ -115,6 +115,7 @@ const uint32_t arch_type = QEMU_ARCH;#define RAM_SAVE_FLAG_EOS 0x10#define RAM_SAVE_FLAG_CONTINUE 0x20#define RAM_SAVE_FLAG_XBZRLE 0x40 +/* 0x80 is reserved in migration.h start with 0x100 next */ static struct defconfig_file {
@@ -454,8 +455,15 @@ static int ram_save_block(QEMUFile *f, bool last_stage) p =memory_region_get_ram_ptr (mr) + offset;/* In doubt sent page as normal */ - bytes_sent =-1 ; -if (is_zero_page (p)) { + bytes_sent =ram_control_save_page (f, block->offset, + offset,TARGET_PAGE_SIZE ); +if (bytes_sent !=-1 ) { +if (bytes_sent >0 ) { + acct_info.norm_pages++; + }else if (bytes_sent ==0 ) { + acct_info.dup_pages++; + } + }else if (is_zero_page (p)) { acct_info.dup_pages++;if (!ram_bulk_stage) { bytes_sent = save_block_hdr(f, block, offset, cont,
@@ -598,6 +606,15 @@ static int ram_save_setup(QEMUFile *f, void *opaque) }qemu_mutex_unlock_ramlist (); + +/* +* Please leave in place. These calls generate reserved messages in +* the RDMA protocol in order to pre-register RDMA memory in the +* future to before the bulk round begins. +*/ +ram_control_before_iterate (f,RAM_CONTROL_SETUP ); +ram_control_after_iterate (f,RAM_CONTROL_SETUP ); +qemu_put_be64 (f,RAM_SAVE_FLAG_EOS );return 0 ;
@@ -616,6 +633,8 @@ static int ram_save_iterate(QEMUFile *f, void *opaque)reset_ram_globals (); } +ram_control_before_iterate (f,RAM_CONTROL_ROUND ); + t0 =qemu_get_clock_ns (rt_clock); i =0 ;while ((ret =qemu_file_rate_limit (f)) ==0 ) {
@@ -646,6 +665,12 @@ static int ram_save_iterate(QEMUFile *f, void *opaque)qemu_mutex_unlock_ramlist (); +/* +* Must occur before EOS (or any QEMUFile operation) +* because of RDMA protocol. +*/ +ram_control_after_iterate (f,RAM_CONTROL_ROUND ); +if (ret <0 ) { bytes_transferred += total_sent;return ret;
@@ -663,6 +688,8 @@ static int ram_save_complete(QEMUFile *f, void *opaque)qemu_mutex_lock_ramlist ();migration_bitmap_sync (); +ram_control_before_iterate (f,RAM_CONTROL_FINISH ); +/* try transferring iterative blocks of memory */ /* flush all remaining blocks regardless of rate limiting */
@@ -676,6 +703,8 @@ static int ram_save_complete(QEMUFile *f, void *opaque) } bytes_transferred += bytes_sent; } + +ram_control_after_iterate (f,RAM_CONTROL_FINISH );migration_end ();qemu_mutex_unlock_ramlist ();
@@ -872,6 +901,8 @@ static int ram_load(QEMUFile *f, void *opaque, int version_id) ret = -EINVAL ; goto done; } + }else if (flags &RAM_SAVE_FLAG_HOOK ) { +ram_control_load_hook (f, flags); } error =qemu_file_get_error (f);if (error) {
Signature · 1 line
1.7.10.4
Quoted 3 lines · [email protected] writes:
From: "Michael R. Hines" <[email protected]>
Juan, Please pull.
I assume this is actually v6, not v5?
I don't see collected Reviewed-bys...
That said, we're pretty close to hard freeze. I think this should wait until 1.6 opens up although I'm open to suggestion if people think this is low risk. I don't like the idea of adding a new protocol this close to the end of a cycle.
Regards,
Anthony Liguori
Quoted 86 lines
Changes since v4:
- Re-ran checkpatch.pl
- Added new QEMUFileOps function:qemu_get_max_size()
- Renamed capability to x-pin-all, disabled by default
- Added numbers for x-pin-all to performance section indocs/rdma.txt
- Included performance numbers in this cover letter
- Converted throughput patch to a MigrationStats statistic in QMP
- Better QMP error message delivery
- Updated documentation
- Moveddocs/rdma.txtup to top of patch series
- Fixed all v4 changes requested
- Finished additional cleanup requests
- Updated copyright formigration-rdma.cWiki: http://wiki.qemu.org/Features/RDMALiveMigration
Github: [email protected]:hinesmr/qemu.gitHere is a brief summary of total migration time and downtime using RDMA:
Using a 40gbps infiniband link performing a worst-case stress test, using an 8GB RAM virtual machine:
Using the following command:$ apt-get install stress $ stress --vm-bytes 7500M --vm 1 --vm-keepRESULTS:
1. Migration throughput: 26 gigabits/second.
2. Downtime (stop time) varies between 15 and 100 milliseconds.EFFECTS of memory registration on bulk phase round:
For example, in the same 8GB RAM example with all 8GB of memory in active use and the VM itself is completely idle using the same 40 gbps infiniband link:
1. x-rdma-pin-all disabled total time: approximately 7.5 seconds @ 9.5 Gbps
2. x-rdma-pin-all enabled total time: approximately 4 seconds @ 26 GbpsThese numbers would of course scale up to whatever size virtual machine you have to migrate using RDMA.
Enabling this feature does *not* have any measurable affect on migration *downtime*. This is because, without this feature, all of the memory will have already been registered already in advance during the bulk round and does not need to be re-registered during the successive iteration rounds.
Michael R. Hines (12):
rdma: add documentation
rdma: exportyield_until_fd_readable()
rdma: export throughput w/ MigrationStats QMP
rdma: introduceqemu_get_max_size()
rdma: introduceqemu_file_mode_is_not_valid()
rdma: exportqemu_fflush()
rdma: introduceram_handle_compressed()
rdma: introduceqemu_ram_foreach_block()
rdma: new QEMUFileOps hooks
rdma: introduce capability x-rdma-pin-all
rdma: core logic
rdma: send pc.ramMakefile.objs | 1 + arch_init.c | 59 +- configure | 29 + docs/rdma.txt | 404 ++++++ exec.c | 9 + hmp.c | 2 + include/block/coroutine.h | 6 + include/exec/cpu-common.h | 5 + include/migration/migration.h | 24 + include/migration/qemu-file.h | 44 + migration-rdma.c | 2727 +++++++++++++++++++++++++++++++++++++++++ migration.c | 22 +- qapi-schema.json | 12 +- qemu-coroutine-io.c | 23 + savevm.c | 133 +- 15 files changed, 3451 insertions(+), 49 deletions(-) create mode 100644 docs/rdma.txt create mode 100644 migration-rdma.cSignature · 1 line
1.7.10.4
Quoted 9 lines · Anthony Liguori
Quoted 3 lines · [email protected] writes:
From: "Michael R. Hines" <[email protected]>
Juan, Please pull.
I assume this is actually v6, not v5?
I don't see collected Reviewed-bys...
Quoted 8 lines
That said, we're pretty close to hard freeze. I think this should wait until 1.6 opens up although I'm open to suggestion if people think this is low risk. I don't like the idea of adding a new protocol this close to the end of a cycle.
Regards,
Anthony Liguori
There are no instructions/procedures documented on the qemu.org website on how to automatically generate "Reviewed-by" signatures.
How do you guys do that?
- Michael
Quoted 85 lines
Quoted 85 lines
Changes since v4:
- Re-ran checkpatch.pl
- Added new QEMUFileOps function:qemu_get_max_size()
- Renamed capability to x-pin-all, disabled by default
- Added numbers for x-pin-all to performance section indocs/rdma.txt
- Included performance numbers in this cover letter
- Converted throughput patch to a MigrationStats statistic in QMP
- Better QMP error message delivery
- Updated documentation
- Moveddocs/rdma.txtup to top of patch series
- Fixed all v4 changes requested
- Finished additional cleanup requests
- Updated copyright formigration-rdma.cWiki: http://wiki.qemu.org/Features/RDMALiveMigration
Github: [email protected]:hinesmr/qemu.gitHere is a brief summary of total migration time and downtime using RDMA:
Using a 40gbps infiniband link performing a worst-case stress test, using an 8GB RAM virtual machine:
Using the following command:$ apt-get install stress $ stress --vm-bytes 7500M --vm 1 --vm-keepRESULTS:
1. Migration throughput: 26 gigabits/second.
2. Downtime (stop time) varies between 15 and 100 milliseconds.EFFECTS of memory registration on bulk phase round:
For example, in the same 8GB RAM example with all 8GB of memory in active use and the VM itself is completely idle using the same 40 gbps infiniband link:
1. x-rdma-pin-all disabled total time: approximately 7.5 seconds @ 9.5 Gbps
2. x-rdma-pin-all enabled total time: approximately 4 seconds @ 26 GbpsThese numbers would of course scale up to whatever size virtual machine you have to migrate using RDMA.
Enabling this feature does *not* have any measurable affect on migration *downtime*. This is because, without this feature, all of the memory will have already been registered already in advance during the bulk round and does not need to be re-registered during the successive iteration rounds.
Michael R. Hines (12):
rdma: add documentation
rdma: exportyield_until_fd_readable()
rdma: export throughput w/ MigrationStats QMP
rdma: introduceqemu_get_max_size()
rdma: introduceqemu_file_mode_is_not_valid()
rdma: exportqemu_fflush()
rdma: introduceram_handle_compressed()
rdma: introduceqemu_ram_foreach_block()
rdma: new QEMUFileOps hooks
rdma: introduce capability x-rdma-pin-all
rdma: core logic
rdma: send pc.ramMakefile.objs | 1 + arch_init.c | 59 +- configure | 29 + docs/rdma.txt | 404 ++++++ exec.c | 9 + hmp.c | 2 + include/block/coroutine.h | 6 + include/exec/cpu-common.h | 5 + include/migration/migration.h | 24 + include/migration/qemu-file.h | 44 + migration-rdma.c | 2727 +++++++++++++++++++++++++++++++++++++++++ migration.c | 22 +- qapi-schema.json | 12 +- qemu-coroutine-io.c | 23 + savevm.c | 133 +- 15 files changed, 3451 insertions(+), 49 deletions(-)create mode 100644
docs/rdma.txt
create mode 100644migration-rdma.cSignature · 1 line
1.7.10.4
Quoted 15 lines · Michael R. Hines
Quoted 14 lines · Anthony Liguori
Quoted 3 lines · [email protected] writes:
From: "Michael R. Hines" <[email protected]>
Juan, Please pull.
I assume this is actually v6, not v5?
I don't see collected Reviewed-bys...
That said, we're pretty close to hard freeze. I think this should wait until 1.6 opens up although I'm open to suggestion if people think this is low risk. I don't like the idea of adding a new protocol this close to the end of a cycle.
Quoted 6 lines
Quoted 3 lines
Regards,
Anthony Liguori
There are no instructions/procedures documented on the qemu.org website on how to automatically generate "Reviewed-by" signatures.
I suspect there's some confusion here. Addressed review comments != Reviewed-by. There can always be additional comments. Someone has to explicitly offer a Reviewed-by indicating that they are happy with the patches overall. I've gone through the history on these patches and I don't see any explicit Reviewed-by's other than Eric's most recent one.
Give the series a little more time for people to look over it, it'll get Reviewed-bys when people are ready to offer them.
Regards,
Anthony Liguori
Quoted 90 lines
How do you guys do that?
- Michael
Quoted 85 lines
Quoted 85 lines
Changes since v4:
- Re-ran checkpatch.pl
- Added new QEMUFileOps function:qemu_get_max_size()
- Renamed capability to x-pin-all, disabled by default
- Added numbers for x-pin-all to performance section indocs/rdma.txt
- Included performance numbers in this cover letter
- Converted throughput patch to a MigrationStats statistic in QMP
- Better QMP error message delivery
- Updated documentation
- Moveddocs/rdma.txtup to top of patch series
- Fixed all v4 changes requested
- Finished additional cleanup requests
- Updated copyright formigration-rdma.cWiki: http://wiki.qemu.org/Features/RDMALiveMigration
Github: [email protected]:hinesmr/qemu.gitHere is a brief summary of total migration time and downtime using RDMA:
Using a 40gbps infiniband link performing a worst-case stress test, using an 8GB RAM virtual machine:
Using the following command:$ apt-get install stress $ stress --vm-bytes 7500M --vm 1 --vm-keepRESULTS:
1. Migration throughput: 26 gigabits/second.
2. Downtime (stop time) varies between 15 and 100 milliseconds.EFFECTS of memory registration on bulk phase round:
For example, in the same 8GB RAM example with all 8GB of memory in active use and the VM itself is completely idle using the same 40 gbps infiniband link:
1. x-rdma-pin-all disabled total time: approximately 7.5 seconds @ 9.5 Gbps
2. x-rdma-pin-all enabled total time: approximately 4 seconds @ 26 GbpsThese numbers would of course scale up to whatever size virtual machine you have to migrate using RDMA.
Enabling this feature does *not* have any measurable affect on migration *downtime*. This is because, without this feature, all of the memory will have already been registered already in advance during the bulk round and does not need to be re-registered during the successive iteration rounds.
Michael R. Hines (12):
rdma: add documentation
rdma: exportyield_until_fd_readable()
rdma: export throughput w/ MigrationStats QMP
rdma: introduceqemu_get_max_size()
rdma: introduceqemu_file_mode_is_not_valid()
rdma: exportqemu_fflush()
rdma: introduceram_handle_compressed()
rdma: introduceqemu_ram_foreach_block()
rdma: new QEMUFileOps hooks
rdma: introduce capability x-rdma-pin-all
rdma: core logic
rdma: send pc.ramMakefile.objs | 1 + arch_init.c | 59 +- configure | 29 + docs/rdma.txt | 404 ++++++ exec.c | 9 + hmp.c | 2 + include/block/coroutine.h | 6 + include/exec/cpu-common.h | 5 + include/migration/migration.h | 24 + include/migration/qemu-file.h | 44 + migration-rdma.c | 2727 +++++++++++++++++++++++++++++++++++++++++ migration.c | 22 +- qapi-schema.json | 12 +- qemu-coroutine-io.c | 23 + savevm.c | 133 +- 15 files changed, 3451 insertions(+), 49 deletions(-)create mode 100644
docs/rdma.txt
create mode 100644migration-rdma.cSignature · 1 line
1.7.10.4
Quoted 22 lines · Anthony Liguori
Quoted 15 lines · Michael R. Hines
Quoted 14 lines · Anthony Liguori
Quoted 3 lines · [email protected] writes:
From: "Michael R. Hines" <[email protected]>
Juan, Please pull.
I assume this is actually v6, not v5?
I don't see collected Reviewed-bys...
That said, we're pretty close to hard freeze. I think this should wait until 1.6 opens up although I'm open to suggestion if people think this is low risk. I don't like the idea of adding a new protocol this close to the end of a cycle.
Quoted 5 lines
Quoted 3 lines
Regards,
Anthony Liguori
There are no instructions/procedures documented on the qemu.org website on how to automatically generate "Reviewed-by" signatures.
Quoted 8 lines
I suspect there's some confusion here. Addressed review comments != Reviewed-by. There can always be additional comments. Someone has to explicitly offer a Reviewed-by indicating that they are happy with the patches overall. I've gone through the history on these patches and I don't see any explicit Reviewed-by's other than Eric's most recent one.
Give the series a little more time for people to look over it, it'll get Reviewed-bys when people are ready to offer them.
Ah, OK, so then when I receive the signatures by email, do
I just literally "paste" the Reviewed-By directly into the patch series by hand?
Is this not handled by git?
- Michael
Quoted 29 lines · Michael R. Hines
Quoted 28 lines · Anthony Liguori
Quoted 15 lines · Michael R. Hines
Quoted 14 lines · Anthony Liguori
Quoted 3 lines · [email protected] writes:
From: "Michael R. Hines" <[email protected]>
Juan, Please pull.
I assume this is actually v6, not v5?
I don't see collected Reviewed-bys...
That said, we're pretty close to hard freeze. I think this should wait until 1.6 opens up although I'm open to suggestion if people think this is low risk. I don't like the idea of adding a new protocol this close to the end of a cycle.
Quoted 5 lines
Quoted 3 lines
Regards,
Anthony Liguori
There are no instructions/procedures documented on the qemu.org website on how to automatically generate "Reviewed-by" signatures.
I suspect there's some confusion here. Addressed review comments != Reviewed-by. There can always be additional comments. Someone has to explicitly offer a Reviewed-by indicating that they are happy with the patches overall. I've gone through the history on these patches and I don't see any explicit Reviewed-by's other than Eric's most recent one.
Quoted 6 lines
Quoted 2 lines
Give the series a little more time for people to look over it, it'll get Reviewed-bys when people are ready to offer them.
Ah, OK, so then when I receive the signatures by email, do
I just literally "paste" the Reviewed-By directly into the patch series by hand?
Usually you don't get Reviewed-bys until the final submission. For the final submission, you don't have to worry about it as the submaintainer is responsible for adding the Reviewed-bys.
Quoted 1 line
Is this not handled by git?
No, I have automated scripts that does this but they are probably too complicated for just submitting patches. Most people just copy/paste for the rare cases where a Reviewed-by carries over from the previous submission.
Regards,
Anthony Liguori
Quoted 2 lines
- Michael
Quoted 8 lines · Anthony Liguori
Quoted 2 lines
There are no instructions/procedures documented on the qemu.org website on how to automatically generate "Reviewed-by" signatures.
I suspect there's some confusion here. Addressed review comments != Reviewed-by. There can always be additional comments. Someone has to explicitly offer a Reviewed-by indicating that they are happy with the patches overall. I've gone through the history on these patches and I don't see any explicit Reviewed-by's other than Eric's most recent one.
Even then, my reviewed-by tag applied only to one patch (the QMP change) rather than the series as a whole. But you definitely did the right thing by pasting that in to the commit message of 10/12 on this round - even though it is a bit of manual effort on your part, you were already touching the rest of the series; and by adding the reviewed-by tag by hand, it's easier for other reviewers to add additional reviews and/or skip the patches that appear to already be adequately reviewed.
Quoted 3 lines
Give the series a little more time for people to look over it, it'll get Reviewed-bys when people are ready to offer them.
And to some extent, it's up to the maintainer of the area you are touching to decide how many (or few) 3rd-party reviewed-by are necessary to feel comfortable with the series. Most maintainers like at least one other set of eyes looking at any non-trivial patch, although I'm not sure if there are any documented policies used by any particular maintainer (other than qemu-trivial patches have their own wiki page for best practices). So far, your series has been a good cycle of posting, response, and updating to meet the response; the fact that you are getting comments from several people means that you are likely to get reviewed-by from those people when they are happy with the end result (or another round of comments on things to fix). And if all else fails, if you go a week without any response at all, it is generally acceptable to ping the maintainer to ask for help in recruiting the appropriate reviewers and/or a decision that the maintainer's review is sufficient.
Also, don't be surprised if not everyone reviews the entire series; sometimes reviewers like myself focus only on the portion of the series that interacts with my current interests (I tend to review anything QMP, because I want to make sure the design will be sane for libvirt interaction, while overlooking things like migration internals because they are black box ops to libvirt if the interface was sane).
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 33 lines · Eric Blake
Quoted 7 lines · Anthony Liguori
Quoted 2 lines
There are no instructions/procedures documented on the qemu.org website on how to automatically generate "Reviewed-by" signatures.
I suspect there's some confusion here. Addressed review comments != Reviewed-by. There can always be additional comments. Someone has to explicitly offer a Reviewed-by indicating that they are happy with the patches overall. I've gone through the history on these patches and I don't see any explicit Reviewed-by's other than Eric's most recent one.
Even then, my reviewed-by tag applied only to one patch (the QMP change) rather than the series as a whole. But you definitely did the right thing by pasting that in to the commit message of 10/12 on this round - even though it is a bit of manual effort on your part, you were already touching the rest of the series; and by adding the reviewed-by tag by hand, it's easier for other reviewers to add additional reviews and/or skip the patches that appear to already be adequately reviewed.
Quoted 2 lines
Give the series a little more time for people to look over it, it'll get Reviewed-bys when people are ready to offer them.
And to some extent, it's up to the maintainer of the area you are touching to decide how many (or few) 3rd-party reviewed-by are necessary to feel comfortable with the series. Most maintainers like at least one other set of eyes looking at any non-trivial patch, although I'm not sure if there are any documented policies used by any particular maintainer (other than qemu-trivial patches have their own wiki page for best practices). So far, your series has been a good cycle of posting, response, and updating to meet the response; the fact that you are getting comments from several people means that you are likely to get reviewed-by from those people when they are happy with the end result (or another round of comments on things to fix). And if all else fails, if you go a week without any response at all, it is generally acceptable to ping the maintainer to ask for help in recruiting the appropriate reviewers and/or a decision that the maintainer's review is sufficient.
Quoted 7 lines
Also, don't be surprised if not everyone reviews the entire series; sometimes reviewers like myself focus only on the portion of the series that interacts with my current interests (I tend to review anything QMP, because I want to make sure the design will be sane for libvirt interaction, while overlooking things like migration internals because they are black box ops to libvirt if the interface was sane).
Yes, Paolo has done a fantastic job of reviewing the internals.
Thanks for the advice. I don't mind waiting until 1.6.
Would be helpful for new people (like myself) to have a summary of these procedures on the wiki so we don't have to bother you guys when we get to the end of the reviews.
- Michael
Quoted 4 lines · Michael R. Hines
Would be helpful for new people (like myself) to have a summary of these procedures on the wiki so we don't have to bother you guys when we get to the end of the reviews.
http://wiki.qemu.org/Contribute/SubmitAPatch is supposed to be such a list; and since it's a wiki, feel free to add things that you learned here that weren't adequately covered yet.
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 9 lines · Eric Blake
Quoted 4 lines · Michael R. Hines
Would be helpful for new people (like myself) to have a summary of these procedures on the wiki so we don't have to bother you guys when we get to the end of the reviews.
http://wiki.qemu.org/Contribute/SubmitAPatch is supposed to be such a list; and since it's a wiki, feel free to add things that you learned here that weren't adequately covered yet.
I'd like to echo this. New contributors are in the best position to offer advice to other new contributors. Any additions to the above page would be greatly appreciated!
Regards,
Anthony Liguori
Quoted 4 lines
Signature · 3 lines
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
[Qemu-devel] contribution process [was: [PATCH v5 00/12] rdma: migration support]
Quoted 8 lines · Anthony Liguori
Quoted 6 lines · Eric Blake
Quoted 4 lines · Michael R. Hines
Would be helpful for new people (like myself) to have a summary of these procedures on the wiki so we don't have to bother you guys when we get to the end of the reviews.
Quoted 7 lines
Quoted 3 lines
http://wiki.qemu.org/Contribute/SubmitAPatch is supposed to be such a list; and since it's a wiki, feel free to add things that you learned here that weren't adequately covered yet.
I'd like to echo this. New contributors are in the best position to offer advice to other new contributors. Any additions to the above page would be greatly appreciated!
Here's my attempt at capturing some of the hints brought up in this thread:
http://wiki.qemu.org/index.php?title=Contribute%2FSubmitAPatch&diff=3549&oldid=3439
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Re: [Qemu-devel] contribution process [was: [PATCH v5 00/12] rdma: migration support]
Quoted 10 lines · Eric Blake
Quoted 9 lines · Anthony Liguori
Quoted 7 lines · Eric Blake
Quoted 3 lines · Michael R. Hines
Would be helpful for new people (like myself) to have a summary of these procedures on the wiki so we don't have to bother you guys when we get to the end of the reviews.
http://wiki.qemu.org/Contribute/SubmitAPatch is supposed to be such a list; and since it's a wiki, feel free to add things that you learned here that weren't adequately covered yet.
Quoted 7 lines
Quoted 3 lines
I'd like to echo this. New contributors are in the best position to offer advice to other new contributors. Any additions to the above page would be greatly appreciated!
Here's my attempt at capturing some of the hints brought up in this thread:
http://wiki.qemu.org/index.php?title=Contribute%2FSubmitAPatch&diff=3549&oldid=3439
Thanks =)
Quoted 9 lines · Anthony Liguori
Quoted 7 lines · Eric Blake
Quoted 3 lines · Michael R. Hines
Would be helpful for new people (like myself) to have a summary of these procedures on the wiki so we don't have to bother you guys when we get to the end of the reviews.
http://wiki.qemu.org/Contribute/SubmitAPatch is supposed to be such a list; and since it's a wiki, feel free to add things that you learned here that weren't adequately covered yet.
Quoted 7 lines
I'd like to echo this. New contributors are in the best position to offer advice to other new contributors. Any additions to the above page would be greatly appreciated!
Regards,
Anthony Liguori
Acknowledged =)
Quoted 4 lines
Quoted 3 lines
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Il 23/04/2013 22:15, Michael R. Hines ha scritto:
Quoted 10 lines
Quoted 8 lines
Also, don't be surprised if not everyone reviews the entire series; sometimes reviewers like myself focus only on the portion of the series that interacts with my current interests (I tend to review anything QMP, because I want to make sure the design will be sane for libvirt interaction, while overlooking things like migration internals because they are black box ops to libvirt if the interface was sane).
Yes, Paolo has done a fantastic job of reviewing the internals.
But the internals have changed while I wasn't looking. :)
I'm very close to giving my Reviewed-by, I would just prefer to have this last change reverted.
Paolo
Quoted 8 lines · Paolo Bonzini
Il 23/04/2013 22:15, Michael R. Hines ha scritto:
Quoted 7 lines
Quoted 7 lines
Also, don't be surprised if not everyone reviews the entire series; sometimes reviewers like myself focus only on the portion of the series that interacts with my current interests (I tend to review anything QMP, because I want to make sure the design will be sane for libvirt interaction, while overlooking things like migration internals because they are black box ops to libvirt if the interface was sane).
Quoted 8 lines
Quoted 1 line
Yes, Paolo has done a fantastic job of reviewing the internals.
But the internals have changed while I wasn't looking. :)
I'm very close to giving my Reviewed-by, I would just prefer to have this last change reverted.
Paolo
The only new change was QEMUFileOps "qemu_get_max_size()" (patch #4).
During this patch series, I stopped using my 40G hardware, but when I switched back to my 40G hardware, I noticed that the max_size calculation was artificially limiting the max throughput achievable by RDMA.
Everything else is the same as we agreed in previous versions.
- Michael
Quoted 28 lines · Anthony Liguori
Quoted 15 lines · Michael R. Hines
Quoted 14 lines · Anthony Liguori
Quoted 3 lines · [email protected] writes:
From: "Michael R. Hines" <[email protected]>
Juan, Please pull.
I assume this is actually v6, not v5?
I don't see collected Reviewed-bys...
That said, we're pretty close to hard freeze. I think this should wait until 1.6 opens up although I'm open to suggestion if people think this is low risk. I don't like the idea of adding a new protocol this close to the end of a cycle.
Quoted 5 lines
Quoted 3 lines
Regards,
Anthony Liguori
There are no instructions/procedures documented on the qemu.org website on how to automatically generate "Reviewed-by" signatures.
I suspect there's some confusion here. Addressed review comments != Reviewed-by. There can always be additional comments. Someone has to explicitly offer a Reviewed-by indicating that they are happy with the patches overall. I've gone through the history on these patches and I don't see any explicit Reviewed-by's other than Eric's most recent one.
Quoted 6 lines
Give the series a little more time for people to look over it, it'll get Reviewed-bys when people are ready to offer them.
Regards,
Anthony Liguori
Acknowledged.