summaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2013-02-01 11:12:26 +0100
committerJuan Quintela <quintela@redhat.com>2013-02-22 10:12:52 +0100
commitcc283e3bf04d2f64eb6ec2ee5bcd36edd779fe89 (patch)
tree684c6d1136b20e77d0647e907555ffcd4f62393a /migration.c
parent73d4dc71f3a41131541c73b3ac2a8b160a51842b (diff)
migration: change initial value of expected_downtime
0 is a very bad initial value, what we are trying to get is max_downtime, so that is a much better estimation. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/migration.c b/migration.c
index b1ebb0114..b3f5ba41f 100644
--- a/migration.c
+++ b/migration.c
@@ -774,6 +774,8 @@ void migrate_fd_connect(MigrationState *s)
s->buffer = NULL;
s->buffer_size = 0;
s->buffer_capacity = 0;
+ /* This is a best 1st approximation. ns to ms */
+ s->expected_downtime = max_downtime/1000000;
s->xfer_limit = s->bandwidth_limit / XFER_LIMIT_RATIO;
s->complete = false;
:04:31 +0800'>2017-06-10crypto: pkcs1pad - comply with crypto_akcipher_maxsize()Tudor-Dan Ambarus1-8/+2 2017-06-10crypto: rsa - comply with crypto_akcipher_maxsize()Tudor-Dan Ambarus1-2/+2 2017-06-10crypto: ecdh - comply with crypto_kpp_maxsize()Tudor-Dan Ambarus1-4/+3 2017-06-10crypto: dh - comply with crypto_kpp_maxsize()Tudor-Dan Ambarus1-1/+1 2017-06-10crypto: dh - fix memleak in setkeyTudor-Dan Ambarus1-0/+3 2017-06-10crypto: ecc - rename ecdh_make_pub_key()Tudor-Dan Ambarus3-7/+7 2017-06-10crypto: ecc - remove unnecessary castsTudor-Dan Ambarus3-25/+22 2017-06-10crypto: ecc - remove unused function argumentsTudor-Dan Ambarus3-21/+11 2017-06-10crypto: kpp, (ec)dh - fix typosTudor-Dan Ambarus5-11/+13 2017-06-10crypto: rng - Remove unused function __crypto_rng_cast()Matthias Kaehlcke1-5/+0 2017-06-09crypto : asymmetric_keys : verify_pefile:zero memory content before freeingLoganaden Velvindron1-2/+2 2017-06-09X.509: Fix error code in x509_cert_parse()Dan Carpenter1-0/+1 2017-05-23crypto: hmac - add hmac IPAD/OPAD constantCorentin LABBE1-2/+3 2017-05-23crypto: gcm - wait for crypto op not signal safeGilad Ben-Yossef1-4/+2 2017-05-23crypto: drbg - wait for crypto op not signal safeGilad Ben-Yossef1-3/+2 2017-05-23crypto: asymmetric_keys - handle EBUSY due to backlog correctlyGilad Ben-Yossef1-1/+1 2017-05-18crypto: tcrypt - don't disable irqs and waitGilad Ben-Yossef1-4/+0 2017-05-18crypto: skcipher - Add missing API setkey checksHerbert Xu1-1/+39 2017-05-08treewide: use kv[mz]alloc* rather than opencoded variantsMichal Hocko1-3/+1 2017-05-03Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/...Linus Torvalds6-19/+293 2017-05-02Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-nextLinus Torvalds1-2/+3 2017-05-02Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds20-426/+890 2017-04-24crypto: algif_aead - Require setkey before accept(2)Stephan Mueller1-8/+149 2017-04-24crypto: scomp - add support for deflate rfc1950 (zlib)Giovanni Cabiddu3-17/+129 2017-04-24crypto: scomp - allow registration of multiple scompsGiovanni Cabiddu1-0/+29 2017-04-24crypto: testmgr - Allow ecb(cipher_null) in FIPS modeMilan Broz1-0/+1 2017-04-21crypto: testmgr - replace compression known answer testGiovanni Cabiddu1-3/+26 2017-04-21crypto: acomp - allow registration of multiple acompsGiovanni Cabiddu1-0/+29 2017-04-20Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netDavid S. Miller4-35/+88 2017-04-18Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds4-35/+88 2017-04-13netlink: pass extended ACK struct where availableJohannes Berg1-1/+1 2017-04-13netlink: pass extended ACK struct to parsing functionsJohannes Berg1-1/+1 2017-04-13netlink: extended ACK reportingJohannes Berg1-1/+2 2017-04-10crypto: lz4 - fixed decompress function to return error codeMyungho Jung2-2/+2 c3c449abeb31b2ce23bdba'>os: Add libnettle as a choice of SHA1 implementationYaakov Selkowitz1-0/+30 2012-10-29os/utils.c: Provide only stubs for Lock/UnlockServer on WIN32Ryan Pavlik1-0/+20 2012-10-08os: fix typo in OsSigHandler() error messageDenys Vlasenko1-1/+1 2012-10-04os: Don't re-declare ConnectionInputPtr and ConnectionOutputPtrKeith Packard1-2/+2 2012-10-04Fix FlushClient to write extraBuf when provided (regression fix)Keith Packard1-1/+4 2012-09-20os: Hide the Connection{In,Out}put implementation detailsAdam Jackson3-20/+23 2012-09-20dix: Extend initial connection handshake for forwarding proxiesAdam Jackson1-5/+5 2012-09-20dix: Pull client-is-local flag up to the ClientRecAdam Jackson3-11/+2 2012-09-20os: Repack ConnectionOutput for LP64Adam Jackson1-1/+1 2012-08-23os: fix typo, fsync when WIN32 is _not_ definedPeter Hutterer1-1/+1 2012-08-21os: don't block signal-unsafe logging, merely warn about it.Peter Hutterer1-14/+24 2012-08-21os: add support for %d and %i to pnprintfPeter Hutterer1-0/+10