in some cases, nic statistics from guest is different from QEMU backend device,when guest network drops packets.
We can know the real reason by monitor guest network statistics in the case. 为了让您的VPlat虚拟化故障得到高效的处理,请上报故障到: $VPlat技术支持。 芦志朋 luzhipeng IT开发工程师 IT Development Engineer 操作系统产品部/中心研究院/系统产品 OS Product Dept./Central R&D Institute/System Product 深圳市南山区科技南路55号中兴通讯研发大楼33楼 33/F, R&D Building, ZTE Corporation Hi-tech Road South, Hi-tech Industrial Park Nanshan District, Shenzhen, P.R.China, 518057 T: +86 755 xxxxxxxx F:+86 755 xxxxxxxx M: +86 xxxxxxxxxxx E: lu.zhip...@zte.com.cn www.zte.com.cn 原始邮件 发件人: <berra...@redhat.com> 收件人:芦志朋10108272 抄送人: <mdr...@linux.vnet.ibm.com> <qemu-devel@nongnu.org> 日 期 :2017年04月19日 17:22 主 题 :Re: [Qemu-devel] [PATCH] qemu-ga: addguest-network-get-interface-stat command 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 traffic from the statistics on the QEMU backend device (ie tap device). The exception is when doing PCI device assignment. Is the latter the reason why you need to add this functionality instead of just quuerying the host backend ? There have been a lot of proposals for new QEMU geust agent commands in the past few weeks - NIC statistics - Logged in users - Timezone offset - Hostname - OS version / product This makes me wonder what our intended scope is for the guest agent ? Are we happy to add arbitrary functionality to the guest agent, allowing it grow in size & complexity without bound. Or is it better to restrict it to tasks which are needed in order to coordinate management of the host virtualization layer and leave general purpose guest OS management to another app. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|