All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Dmitry Fleytman <dmitry@daynix.com>, Miao Yan <yanmiaobest@gmail.com>
Cc: QEMU <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 0/3] correct some register return values for vxmnet3
Date: Wed, 23 Dec 2015 10:15:45 +0800	[thread overview]
Message-ID: <567A03D1.70705@redhat.com> (raw)
In-Reply-To: <509A9153-3039-482F-BDA2-EF580690ADCB@daynix.com>



On 12/22/2015 03:05 PM, Dmitry Fleytman wrote:
>
>> On 22 Dec 2015, at 04:44 AM, Miao Yan <yanmiaobest@gmail.com
>> <mailto:yanmiaobest@gmail.com>> wrote:
>>
>> Hi Dmitry,
>>
>> 2015-12-22 1:19 GMT+08:00 Dmitry Fleytman <dmitry@daynix.com
>> <mailto:dmitry@daynix.com>>:
>>> Hello Miao,
>>>
>>> While patches look good technically, I cannot find any code snippets
>>> that prove correctness of these changes.
>>
>> Linux driver does not read those registers currently,
>> not sure about Windows version.
>>
>>
>>> How do you know this is the correct behaviour? Could you please
>>> extend commit messages with corresponding references?
>>
>>
>> This behavior can be observed by modifying linux driver to read those
>> registers
>> at probe time (in vmxnet3_device_probe) and kernel log will have the
>> following
>> message (running on esxi server, of source):
>>
>> [  198.427389] VMware vmxnet3 virtual NIC driver - version 1.2.0.0-k-NAPI
>> [  198.428863] vmxnet3 0000:03:00.0: # of Tx queues : 1, # of Rx
>> queues : 1
>> [  198.559625] vmxnet3 DID lo: 0x7b0, high: 0x1, dev_info: 0x0
>> [  198.561151] vmxnet3 0000:03:00.0: irq 72 for MSI/MSI-X
>>
>> Here DID_LO is the pci device id, DID_HIGH is 0x1 and
>> GET_DEV_EXTRA_INFO returns 0.
>>
>> putting above into commit message should be enough ?
>
> Yes, this should be good enough. Please also provide ESX version
> you’re running on.
>
> Reviewed-by: Dmitry Fleytman <dmitry@daynix.com
> <mailto:dmitry@daynix.com>>
>
> Jason, these changes are guest visible but init time only. Do you
> think compatibility code is needed in this case?

I think it was probably no need to do compatibility things here,
consider no device state but only register read changes and I believe no
driver should depend on those values.

>
>>
>>
>>>
>>> Thanks,
>>> Dmitry
>>>
>>>> On 21 Dec 2015, at 13:06 PM, Miao Yan <yanmiaobest@gmail.com
>>>> <mailto:yanmiaobest@gmail.com>> wrote:
>>>>
>>>> Qemu vmxnet3 emulation doesn't recognize VMXNET3_CMD_GET_DID_LO,
>>>> VMXNET3_CMD_GET_DID_HI and VMXNET3_CMD_GET_DEV_EXTRA_INFO command and
>>>> returns -1 on all of them.
>>>>
>>>> This patchset makes them return correct values.
>>>>
>>>> Miao Yan (3):
>>>> net/vmxnet3: return 1 on device activation failure
>>>> net/vmxnet3: return correct value for VMXNET3_CMD_GET_DID command
>>>> net/vmxnet3: return correct value for VMXNET3_CMD_GET_DEV_EXTRA_INFO
>>>>
>>>> hw/net/vmxnet3.c | 11 ++++++++++-
>>>> 1 file changed, 10 insertions(+), 1 deletion(-)
>>>>
>>>> --
>>>> 1.9.1
>>>>
>>>
>

  reply	other threads:[~2015-12-23  2:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-21 11:06 [Qemu-devel] [PATCH 0/3] correct some register return values for vxmnet3 Miao Yan
2015-12-21 11:06 ` [Qemu-devel] [PATCH 1/3] net/vmxnet3: return 1 on device activation failure Miao Yan
2015-12-21 18:15   ` P J P
2015-12-22  2:56     ` Miao Yan
2015-12-22  9:06       ` P J P
2015-12-22  9:26         ` Miao Yan
2015-12-22  9:33           ` Dmitry Fleytman
2015-12-21 11:06 ` [Qemu-devel] [PATCH 2/3] net/vmxnet3: return correct value for VMXNET3_CMD_GET_DID_* command Miao Yan
2015-12-21 11:06 ` [Qemu-devel] [PATCH 3/3] net/vmxnet3: return correct value for VMXNET3_CMD_GET_DEV_EXTRA_INFO Miao Yan
2015-12-21 17:19 ` [Qemu-devel] [PATCH 0/3] correct some register return values for vxmnet3 Dmitry Fleytman
2015-12-22  2:44   ` Miao Yan
2015-12-22  7:05     ` Dmitry Fleytman
2015-12-23  2:15       ` Jason Wang [this message]
2015-12-23  3:12         ` Miao Yan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=567A03D1.70705@redhat.com \
    --to=jasowang@redhat.com \
    --cc=dmitry@daynix.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yanmiaobest@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.