Re: [Qemu-devel] [PATCH] qemu-ga: add guest-network-get-interface-stat command

2017-04-19 Thread Eric Blake
On 04/19/2017 11:57 AM, ZhiPeng Lu wrote: > we can get the network card statistics inside a virtual machine by > guest-network-get-interface-stat command. > it is very userful for us to monitor and analyze network traff. > > Signed-off-by: ZhiPeng Lu > --- > +++ b/qga/qapi-schema.json > @@ -1

Re: [Qemu-devel] [PATCH] qemu-ga: add guest-network-get-interface-stat command

2017-04-19 Thread Cornelia Huck
On Wed, 19 Apr 2017 12:50:36 +0100 "Daniel P. Berrange" wrote: > On Wed, Apr 19, 2017 at 01:41:47PM +0200, Cornelia Huck wrote: > > On Thu, 20 Apr 2017 00:57:08 +0800 > > ZhiPeng Lu wrote: > > > > > diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json > > > index a02dbf2..60111dc 100644 > >

Re: [Qemu-devel] [PATCH] qemu-ga: add guest-network-get-interface-stat command

2017-04-19 Thread Daniel P. Berrange
On Wed, Apr 19, 2017 at 01:41:47PM +0200, Cornelia Huck wrote: > On Thu, 20 Apr 2017 00:57:08 +0800 > ZhiPeng Lu wrote: > > > diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json > > index a02dbf2..60111dc 100644 > > --- a/qga/qapi-schema.json > > +++ b/qga/qapi-schema.json > > @@ -1042,3 +10

Re: [Qemu-devel] [PATCH] qemu-ga: add guest-network-get-interface-stat command

2017-04-19 Thread Cornelia Huck
On Thu, 20 Apr 2017 00:57:08 +0800 ZhiPeng Lu wrote: > diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json > index a02dbf2..60111dc 100644 > --- a/qga/qapi-schema.json > +++ b/qga/qapi-schema.json > @@ -1042,3 +1042,37 @@ >'data':{ 'path': 'str', '*arg': ['str'], '*env': ['str'], >

Re: [Qemu-devel] [PATCH] qemu-ga: add guest-network-get-interface-stat command

2017-04-19 Thread Daniel P. Berrange
On Thu, Apr 20, 2017 at 12:57:08AM +0800, ZhiPeng Lu wrote: > we can get the network card statistics inside a virtual machine by > guest-network-get-interface-stat command. > it is very userful for us to monitor and analyze network traff. In most cases you can already monitor guest network traff

[Qemu-devel] [PATCH] qemu-ga: add guest-network-get-interface-stat command

2017-04-19 Thread ZhiPeng Lu
we can get the network card statistics inside a virtual machine by guest-network-get-interface-stat command. it is very userful for us to monitor and analyze network traff. Signed-off-by: ZhiPeng Lu --- qga/commands-posix.c | 166 ++- qga/comman