From: David Ahern <dsahern@gmail.com>
To: Scott Feldman <sfeldma@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>
Cc: "Jiří Pírko" <jiri@resnulli.us>,
"Stefan Hajnoczi" <stefanha@gmail.com>,
"Roopa Prabhu" <roopa@cumulusnetworks.com>,
"john fastabend" <john.fastabend@gmail.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"jasowang@redhat.com" <jasowang@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v7 07/10] qmp: add rocker device support
Date: Mon, 16 Feb 2015 19:38:45 -0700 [thread overview]
Message-ID: <54E2A9B5.3070503@gmail.com> (raw)
In-Reply-To: <CAE4R7bDKzS-mP0mFqtt3L62fgEoMHGhuddCrHStO7SJZ9s+=rA@mail.gmail.com>
On 2/16/15 3:37 PM, Scott Feldman wrote:
> On Mon, Feb 16, 2015 at 5:16 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>>
>>
>> On 16/02/2015 22:47, sfeldma@gmail.com wrote:
>>> From: Scott Feldman <sfeldma@gmail.com>
>>>
>>> Add QMP/HMP support for rocker devices. This is mostly for debugging purposes
>>> to see inside the device's tables and port configurations. Some examples:
>>>
>>> (qemu) info rocker sw1
>>> name: sw1
>>> id: 0x0000013512005452
>>> ports: 4
>>
>> I think CONFIG_ROCKER doesn't work as intended. It's not exported to C
>> files.
>
> It's working fine. What do you think it broken?
If you take out CONFIG_ROCKER (e.g., from default-configs/pci.mak or
./x86_64-softmmu/config-devices.mak) you get:
LINK x86_64-softmmu/qemu-system-x86_64
../qmp-marshal.o: In function `qmp_marshal_input_query_rocker':
/home/dahern/sw/kvm/qemu.git/build/qmp-marshal.c:5591: undefined
reference to `qmp_query_rocker'
../qmp-marshal.o: In function `qmp_marshal_input_query_rocker_ports':
/home/dahern/sw/kvm/qemu.git/build/qmp-marshal.c:5652: undefined
reference to `qmp_query_rocker_ports'
../qmp-marshal.o: In function `qmp_marshal_input_query_rocker_of_dpa_flows':
/home/dahern/sw/kvm/qemu.git/build/qmp-marshal.c:5725: undefined
reference to `qmp_query_rocker_of_dpa_flows'
../qmp-marshal.o: In function
`qmp_marshal_input_query_rocker_of_dpa_groups':
/home/dahern/sw/kvm/qemu.git/build/qmp-marshal.c:5802: undefined
reference to `qmp_query_rocker_of_dpa_groups'
collect2: error: ld returned 1 exit status
Makefile:180: recipe for target 'qemu-system-x86_64' failed
make[1]: *** [qemu-system-x86_64] Error 1
Makefile:169: recipe for target 'subdir-x86_64-softmmu' failed
make: *** [subdir-x86_64-softmmu] Error 2
>
>> I would just merge the other nine patches for 2.3.
>
> I disagree. qmp/hmp is very important to rocker. It would be nearly
> impossible to debug large/complicated networking setups without having
> a back-door view into the device. qmp/hmp are perfect for this.
> Since rocker's primary purpose is for development of OS support for
> traditional L2/L3 offloads as well as flow-based offloads, it is
> important to enable this debug tool.
Taking all of them but QMP should lighten the review load and re-do on
the patch set to load to just the qmp changes.
David
next prev parent reply other threads:[~2015-02-17 2:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 21:47 [Qemu-devel] [PATCH v7 00/10] rocker: add new rocker ethernet switch device sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 01/10] net: add MAC address string printer sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 02/10] virtio-net: use qemu_mac_strdup_printf sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 03/10] rocker: add register programming guide sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 04/10] pci: add rocker device ID sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 05/10] pci: add network device class 'other' for network switches sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 06/10] rocker: add new rocker switch device sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 07/10] qmp: add rocker device support sfeldma
2015-02-16 22:16 ` Paolo Bonzini
2015-02-16 22:37 ` Scott Feldman
2015-02-17 2:38 ` David Ahern [this message]
2015-02-17 6:48 ` Paolo Bonzini
2015-02-17 13:55 ` Scott Feldman
2015-02-17 4:05 ` Scott Feldman
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 08/10] rocker: add tests sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 09/10] MAINTAINERS: add rocker sfeldma
2015-02-16 21:47 ` [Qemu-devel] [PATCH v7 10/10] rocker: timestamp on the debug logs helps correlate with events in the VM sfeldma
2015-02-23 10:29 ` [Qemu-devel] [PATCH v7 00/10] rocker: add new rocker ethernet switch device Stefan Hajnoczi
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=54E2A9B5.3070503@gmail.com \
--to=dsahern@gmail.com \
--cc=jasowang@redhat.com \
--cc=jiri@resnulli.us \
--cc=john.fastabend@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=roopa@cumulusnetworks.com \
--cc=sfeldma@gmail.com \
--cc=stefanha@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).