[libvirt] [PATCH 2/8] qemu: don't restore state label twice

Eric Blake eblake at redhat.com
Mon Mar 28 15:24:48 UTC 2011


On 03/27/2011 02:31 AM, Laine Stump wrote:
> On 03/26/2011 08:12 AM, Eric Blake wrote:
>> Otherwise, if something like doStopVcpus fails after the first
>> restore, a second restore is attempted and throws a useless
>> warning.
>>
>> * src/qemu/qemu_driver.c (qemudDomainSaveFlag): Avoid second
>> restore of state label.
>> ---
>>
>> Original post:
>> https://www.redhat.com/archives/libvir-list/2011-March/msg01192.html
>>
>>   src/qemu/qemu_driver.c |    1 +
>>   1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
>> index 016ad1d..e0e86d3 100644
>> --- a/src/qemu/qemu_driver.c
>> +++ b/src/qemu/qemu_driver.c
>> @@ -2044,6 +2044,7 @@ static int qemudDomainSaveFlag(struct
>> qemud_driver *driver, virDomainPtr dom,
>>          
>> virSecurityManagerRestoreSavedStateLabel(driver->securityManager,
>>                                                    vm, path)<  0)
>>           VIR_WARN("failed to restore save state label on %s", path);
>> +    bypassSecurityDriver = true;
>>
>>       if (cgroup != NULL) {
>>           rc = virCgroupDenyDevicePath(cgroup, path,
> 
> ACK

Thanks; applied.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110328/252c4f42/attachment-0001.sig>


More information about the libvir-list mailing list