[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 06/10] block: open images with BDRV_O_INCOMING o
From: |
Benoît Canet |
Subject: |
[Qemu-devel] [RFC PATCH 06/10] block: open images with BDRV_O_INCOMING on incoming live migration |
Date: |
Tue, 6 Mar 2012 18:32:25 +0100 |
Open images with BDRV_O_INCOMING in order to inform block drivers
that an incoming live migration is coming.
Signed-off-by: Benoit Canet <address@hidden>
---
block.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/block.c b/block.c
index b0f0288..78287df 100644
--- a/block.c
+++ b/block.c
@@ -575,6 +575,10 @@ static int bdrv_open_common(BlockDriverState *bs, const
char *filename,
trace_bdrv_open_common(bs, filename, flags, drv->format_name);
+ if (incoming_migration) {
+ flags |= BDRV_O_INCOMING;
+ }
+
bs->file = NULL;
bs->total_sectors = 0;
bs->encrypted = 0;
--
1.7.7.6
- Re: [Qemu-devel] [RFC PATCH 02/10] block: add a function to set incoming live migration, (continued)
- [Qemu-devel] [RFC PATCH 03/10] block: add a function to clear incoming live migration, Benoît Canet, 2012/03/06
- [Qemu-devel] [RFC PATCH 09/10] qed: honor BDRV_O_INCOMING for incoming live migration, Benoît Canet, 2012/03/06
- [Qemu-devel] [RFC PATCH 08/10] qed: add bdrv_post_incoming_migration operation checking the image, Benoît Canet, 2012/03/06
- [Qemu-devel] [RFC PATCH 05/10] migration: inform the block layer of incoming live status, Benoît Canet, 2012/03/06
- [Qemu-devel] [RFC PATCH 07/10] qed: extract image checking into check_image_if_needed, Benoît Canet, 2012/03/06
- [Qemu-devel] [RFC PATCH 10/10] qed: remove incoming live migration blocker, Benoît Canet, 2012/03/06
- [Qemu-devel] [RFC PATCH 04/10] block: rename *_invalidate_cache_* to *_post_incoming_migration_*, Benoît Canet, 2012/03/06
- [Qemu-devel] [RFC PATCH 06/10] block: open images with BDRV_O_INCOMING on incoming live migration,
Benoît Canet <=
- Re: [Qemu-devel] [RFC PATCH 00/10] make qed and live migration usage safe, Benoît Canet, 2012/03/06
- Re: [Qemu-devel] [RFC PATCH 00/10] make qed and live migration usage safe, Benoît Canet, 2012/03/16
- Re: [Qemu-devel] [RFC PATCH 00/10] make qed and live migration usage safe, Stefan Hajnoczi, 2012/03/20