Re: [PATCH] qemu: Fix startupPolicy for snapshot-revert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07.03.2012 19:36, Eric Blake wrote:
> On 03/07/2012 11:19 AM, Michal Privoznik wrote:
>> Currently, startupPolicy='requisite' was determining cold boot
>> by migrateForm != NULL. That means, if domain was started up
>> with migrateForm set we didn't require disk source path and allowed
> 
> s/migrateForm/migrateFrom/ (twice)
> 
>> it to be dropped. However, on snapshot-revert domain wasn't migrated
>> but according to documentation, requisite should drop disk source
>> as well.
>> ---
>>
>> Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=798938
>>
>>  src/qemu/qemu_driver.c    |   16 +++++++++-------
>>  src/qemu/qemu_migration.c |    2 +-
>>  src/qemu/qemu_process.c   |    3 ++-
>>  src/qemu/qemu_process.h   |    1 +
>>  4 files changed, 13 insertions(+), 9 deletions(-)
>>
> 
>> @@ -4107,8 +4107,9 @@ qemuDomainSaveImageStartVM(virConnectPtr conn,
>>      }
>>  
>>      /* Set the migration source and start it up. */
>> -    ret = qemuProcessStart(conn, driver, vm, "stdio", true,
>> -                           false, *fd, path, NULL, VIR_NETDEV_VPORT_PROFILE_OP_RESTORE);
>> +    ret = qemuProcessStart(conn, driver, vm, "stdio", false, true,
>> +                           false, *fd, path, NULL,
> 
> Yuck - we're starting to rack up so many bools that it's hard to tell
> which one is which.  This patch can go in as-is, but I'd also like to
> see a followup patch that refactors things into using an 'unsigned int
> flags' with an internal enum for bit values (QEMU_START_COLD,
> QEMU_START_PAUSED, QEMU_START_AUTODESTROY, ...).
> 
> ACK.
> 

Thanks pushed. And I'll send patch for what you've described.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]