Block live migration's use of type hint
Block live migration appears to migrate only block devices with type hint BDRV_TYPE_HD. Others are silently skipped:
static void init_blk_migration_it(void *opaque, BlockDriverState *bs)
{
Monitor *mon = opaque;
BlkMigDevState *bmds;
int64_t sectors;
if (bs->type == BDRV_TYPE_HD) {
[...]
}
}The logic comes from commit c163b5ca, but its commit message doesn't mention it. Liran, please advise. What are we trying to accomplish here?
Whatever it is, I suspect checking the type hint isn't the appropriate way to get it.
Markus Armbruster <[email protected]> wrote on 28/06/2010 10:26:47:
Quoted 20 lines
From: Markus Armbruster <[email protected]>
To: [email protected]
Cc: Liran Schour/Haifa/IBM@IBMIL
Date: 28/06/2010 10:26
Subject: Block live migration's use of type hintBlock live migration appears to migrate only block devices with type hint
BDRV_TYPE_HD. Others are silently skipped:static void
init_blk_migration_it(void *opaque, BlockDriverState *bs){ Monitor *mon = opaque; BlkMigDevState *bmds; int64_t sectors; if (bs->type == BDRV_TYPE_HD) { [...] } }
Quoted 6 lines
The logic comes from commit
c163b5ca, but its commit message doesn't mention it. Liran, please advise. What are we trying to accomplish here?Whatever it is, I suspect checking the type hint isn't the appropriate way to get it.
my intention was to migrate only writeable devices. Maybe there are more accurate ways to do that.
- Liran
Quoted 26 lines · Liran Schour
Markus Armbruster <[email protected]> wrote on 28/06/2010 10:26:47:
Quoted 24 lines
From: Markus Armbruster <[email protected]>
To: [email protected]
Cc: Liran Schour/Haifa/IBM@IBMIL
Date: 28/06/2010 10:26
Subject: Block live migration's use of type hintBlock live migration appears to migrate only block devices with type hint
BDRV_TYPE_HD. Others are silently skipped:static void
init_blk_migration_it(void *opaque, BlockDriverState *bs){ Monitor *mon = opaque; BlkMigDevState *bmds; int64_t sectors; if (bs->type == BDRV_TYPE_HD) { [...] } }The logic comes from commit
c163b5ca, but its commit message doesn't mention it. Liran, please advise. What are we trying to accomplish here?
Quoted 5 lines
Quoted 2 lines
Whatever it is, I suspect checking the type hint isn't the appropriate way to get it.
my intention was to migrate only writeable devices. Maybe there are more accurate ways to do that.
Okay, that looks like a job for bdrv_is_read_only().
Thanks for your quick reply!
Quoted 12 lines · Markus Armbruster
Quoted 10 lines · Liran Schour
Markus Armbruster <[email protected]> wrote on 28/06/2010 10:26:47:
Quoted 8 lines
From: Markus Armbruster <[email protected]>
To: [email protected]
Cc: Liran Schour/Haifa/IBM@IBMIL
Date: 28/06/2010 10:26
Subject: Block live migration's use of type hintBlock live migration appears to migrate only block devices with type hint
BDRV_TYPE_HD. Others are silently skipped:
[...]
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
The logic comes from commit
c163b5ca, but its commit message doesn't mention it. Liran, please advise. What are we trying to accomplish here?Whatever it is, I suspect checking the type hint isn't the appropriate way to get it.
Quoted 6 lines
Quoted 2 lines
my intention was to migrate only writeable devices. Maybe there are more accurate ways to do that.
Okay, that looks like a job for
bdrv_is_read_only().Thanks for your quick reply!
Subject: [PATCH 02/11] block migration: Fix test for read-only drive
Date: Wed, 30 Jun 2010 13:55:33 +0200
Message-Id: <[email protected]>