Skip to contentSkip to conversation

virtio module question...

DISCUSSION Vasiliy G Tolstov 2 participants 2 messages Jul 30, 2010 – Aug 1, 2010 KVM

lore
Share & tools
lore
#0 lore raw

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?

Or how can i get such information?

Thank You. Sorry for bad English.

Signature · 2 lines
Vasiliy G Tolstov <[email protected]>
Selfip.Ru
#1 lore raw
Quoted 10 lines · Vasiliy G Tolstov

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.

Signature · 2 lines
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.