postcopy-ram.c (8545ae485b1e8e43cc0137310c4c68dbece59990) | postcopy-ram.c (54aa3de72ea2aaa2e903e7e879a4f3dda515a00e) |
---|---|
1/* 2 * Postcopy migration for RAM 3 * 4 * Copyright 2013-2015 Red Hat, Inc. and/or its affiliates 5 * 6 * Authors: 7 * Dave Gilbert <dgilbert@redhat.com> 8 * --- 131 unchanged lines hidden (view full) --- 140 ctx->start_time = qemu_clock_get_ms(QEMU_CLOCK_REALTIME); 141 qemu_add_exit_notifier(&ctx->exit_notifier); 142 return ctx; 143} 144 145static uint32List *get_vcpu_blocktime_list(PostcopyBlocktimeContext *ctx) 146{ 147 MachineState *ms = MACHINE(qdev_get_machine()); | 1/* 2 * Postcopy migration for RAM 3 * 4 * Copyright 2013-2015 Red Hat, Inc. and/or its affiliates 5 * 6 * Authors: 7 * Dave Gilbert <dgilbert@redhat.com> 8 * --- 131 unchanged lines hidden (view full) --- 140 ctx->start_time = qemu_clock_get_ms(QEMU_CLOCK_REALTIME); 141 qemu_add_exit_notifier(&ctx->exit_notifier); 142 return ctx; 143} 144 145static uint32List *get_vcpu_blocktime_list(PostcopyBlocktimeContext *ctx) 146{ 147 MachineState *ms = MACHINE(qdev_get_machine()); |
148 uint32List *list = NULL, *entry = NULL; | 148 uint32List *list = NULL; |
149 int i; 150 151 for (i = ms->smp.cpus - 1; i >= 0; i--) { | 149 int i; 150 151 for (i = ms->smp.cpus - 1; i >= 0; i--) { |
152 entry = g_new0(uint32List, 1); 153 entry->value = ctx->vcpu_blocktime[i]; 154 entry->next = list; 155 list = entry; | 152 QAPI_LIST_PREPEND(list, ctx->vcpu_blocktime[i]); |
156 } 157 158 return list; 159} 160 161/* 162 * This function just populates MigrationInfo from postcopy's 163 * blocktime context. It will not populate MigrationInfo, --- 1276 unchanged lines hidden --- | 153 } 154 155 return list; 156} 157 158/* 159 * This function just populates MigrationInfo from postcopy's 160 * blocktime context. It will not populate MigrationInfo, --- 1276 unchanged lines hidden --- |