qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH for-2.5 4/5] ivshmem: Mark questionable socket t


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH for-2.5 4/5] ivshmem: Mark questionable socket type test FIXME
Date: Tue, 24 Nov 2015 18:29:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Marc-André Lureau <address@hidden> writes:

> ----- Original Message -----
>> Signed-off-by: Markus Armbruster <address@hidden>
>> ---
>>  hw/misc/ivshmem.c | 1 +
>>  1 file changed, 1 insertion(+)
>> 
>> diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c
>> index 83d7bd3..a6bfdde 100644
>> --- a/hw/misc/ivshmem.c
>> +++ b/hw/misc/ivshmem.c
>> @@ -939,6 +939,7 @@ static void pci_ivshmem_realize(PCIDevice *dev, Error
>> **errp)
>>          memory_region_add_subregion(&s->bar, 0, mr);
>>          pci_register_bar(PCI_DEVICE(s), 2, attr, &s->bar);
>>      } else if (s->server_chr != NULL) {
>> +        /* FIXME replace this test, it works basically by chance */
>
> I wouldn't say it like that, but ack anyway.

I'm happy to consider a rephrased comment.

> Reviewed-by: Marc-André Lureau <address@hidden>

Thanks!

>>          if (strncmp(s->server_chr->filename, "unix:", 5)) {
>>              error_setg(errp, "chardev is not a unix client socket");
>>              return;
>> --
>> 2.4.3
>> 
>> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]