[libvirt] [PATCH 2/8] qemu: Disable migration with ivshmem

Martin Kletzander mkletzan at redhat.com
Fri Oct 7 14:04:32 UTC 2016


On Fri, Oct 07, 2016 at 09:52:12AM -0400, John Ferlan wrote:
>
>
>On 09/27/2016 08:24 AM, Martin Kletzander wrote:
>> It was never safe anyway and as such shouldn't have been enabled in the
>> first place.  Future patches will allow hot-(un)pluging of some ivshmem
>> devices as a workaround.
>>
>> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
>> ---
>>  src/qemu/qemu_migration.c | 6 ++++++
>>  1 file changed, 6 insertions(+)
>>
>
>Seems like a reasonable thing to disallow...
>
>Never quite sure what the "norm" is - start message w/ capital letter or
>not... I think others in the code go with lowercase...  Your call.
>

All of them in qemuMigrationIsAllowed() start with lowercase, so I
changed that, but I think rest of the code is uppercase and since it's a
sentence after a colon, it should be so, but that's not what this series
is about, so... =D

>ACK,
>
>John
>> diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
>> index e2ca3303efd3..0d7fec8360f3 100644
>> --- a/src/qemu/qemu_migration.c
>> +++ b/src/qemu/qemu_migration.c
>> @@ -2346,6 +2346,12 @@ qemuMigrationIsAllowed(virQEMUDriverPtr driver,
>>                  return false;
>>              }
>>          }
>> +
>> +        if (vm->def->nshmems) {
>> +            virReportError(VIR_ERR_OPERATION_INVALID, "%s",
>> +                           _("Migration with shmem device is not supported"));
>> +            return false;
>> +        }
>>      }
>>
>>      return true;
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161007/66dcd395/attachment-0001.sig>


More information about the libvir-list mailing list