mirror of https://github.com/proxmox/mirror_qemu
block migration: Drop dead code
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>master
parent
d11ecd3dd5
commit
3c095c3f80
|
@ -59,11 +59,8 @@ typedef struct BlkMigBlock {
|
||||||
} BlkMigBlock;
|
} BlkMigBlock;
|
||||||
|
|
||||||
typedef struct BlkMigState {
|
typedef struct BlkMigState {
|
||||||
int bulk_completed;
|
|
||||||
int blk_enable;
|
int blk_enable;
|
||||||
int shared_base;
|
int shared_base;
|
||||||
int no_dirty;
|
|
||||||
QEMUFile *load_file;
|
|
||||||
BlkMigDevState *bmds_first;
|
BlkMigDevState *bmds_first;
|
||||||
BlkMigBlock *first_blk;
|
BlkMigBlock *first_blk;
|
||||||
BlkMigBlock *last_blk;
|
BlkMigBlock *last_blk;
|
||||||
|
@ -245,10 +242,6 @@ static void send_blk(QEMUFile *f, BlkMigBlock * blk)
|
||||||
qemu_put_buffer(f, blk->buf, BLOCK_SIZE);
|
qemu_put_buffer(f, blk->buf, BLOCK_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void blk_mig_save_dev_info(QEMUFile *f, BlkMigDevState *bmds)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void set_dirty_tracking(int enable)
|
static void set_dirty_tracking(int enable)
|
||||||
{
|
{
|
||||||
BlkMigDevState *bmds;
|
BlkMigDevState *bmds;
|
||||||
|
@ -283,8 +276,6 @@ static void init_blk_migration(QEMUFile *f)
|
||||||
pbmds = &(*pbmds)->next;
|
pbmds = &(*pbmds)->next;
|
||||||
}
|
}
|
||||||
*pbmds = bmds;
|
*pbmds = bmds;
|
||||||
|
|
||||||
blk_mig_save_dev_info(f, bmds);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -311,8 +302,6 @@ static int blk_mig_save_bulked_block(QEMUFile *f, int is_async)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* we reached here means bulk is completed */
|
/* we reached here means bulk is completed */
|
||||||
block_mig_state.bulk_completed = 1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -507,19 +496,6 @@ static void block_set_params(int blk_enable, int shared_base, void *opaque)
|
||||||
block_mig_state.blk_enable |= shared_base;
|
block_mig_state.blk_enable |= shared_base;
|
||||||
}
|
}
|
||||||
|
|
||||||
void blk_mig_info(void)
|
|
||||||
{
|
|
||||||
BlockDriverState *bs;
|
|
||||||
|
|
||||||
for (bs = bdrv_first; bs != NULL; bs = bs->next) {
|
|
||||||
printf("Device %s\n", bs->device_name);
|
|
||||||
if (bs->type == BDRV_TYPE_HD) {
|
|
||||||
printf("device %s format %s\n",
|
|
||||||
bs->device_name, bs->drv->format_name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void blk_mig_init(void)
|
void blk_mig_init(void)
|
||||||
{
|
{
|
||||||
register_savevm_live("block", 0, 1, block_set_params, block_save_live,
|
register_savevm_live("block", 0, 1, block_set_params, block_save_live,
|
||||||
|
|
|
@ -15,5 +15,5 @@
|
||||||
#define BLOCK_MIGRATION_H
|
#define BLOCK_MIGRATION_H
|
||||||
|
|
||||||
void blk_mig_init(void);
|
void blk_mig_init(void);
|
||||||
void blk_mig_info(void);
|
|
||||||
#endif /* BLOCK_MIGRATION_H */
|
#endif /* BLOCK_MIGRATION_H */
|
||||||
|
|
Loading…
Reference in New Issue