From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: virtio module question... Date: Sun, 01 Aug 2010 20:04:28 +0300 Message-ID: <4C55A91C.7000605@redhat.com> References: <1280481216.1336.1.camel@vase.work> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: v.tolstov@selfip.ru Return-path: Received: from mx1.redhat.com ([209.132.183.28]:28861 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751358Ab0HAREi (ORCPT ); Sun, 1 Aug 2010 13:04:38 -0400 In-Reply-To: <1280481216.1336.1.camel@vase.work> Sender: kvm-owner@vger.kernel.org List-ID: On 07/30/2010 12:13 PM, Vasiliy G Tolstov wrote: > Good night or morning.... > > If i need to some kvm module, that runs in virtualized environment and > reports some statistics to qemu (disk free space, memory usage, cpu > utilization) what i need to write? > I need kernel module, because userspace utilities under heavy load can't send such information via > network (for example snmp under load does not respond). > > Does kvm have skeleton module, what i can use and append code needed > for me? I recommend using virtio-serial in userspace. If your load is very high, you can use mlockall() and sched_setscheduler() to keep the process in memory and on a cpu. If you absolutely need a kernel module, you can base it off virtio-serial. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.