]> git.baikalelectronics.ru Git - kernel.git/commit
Lguest support for Virtio
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Oct 2007 01:24:21 +0000 (11:24 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Oct 2007 05:49:56 +0000 (15:49 +1000)
commit9315f41017d1881668bd9f6c6c212f945c2fb57f
tree793c1f8763350012caa521a55c5778b1c633b7e5
parent7b8dd065f5c5fc7fe0c108c5cf4d3c66840da637
Lguest support for Virtio

This makes lguest able to use the virtio devices.

We change the device descriptor page from a simple array to a variable
length "type, config_len, status, config data..." format, and
implement virtio_config_ops to read from that config data.

We use the virtio ring implementation for an efficient Guest <-> Host
virtqueue mechanism, and the new LHCALL_NOTIFY hypercall to kick the
host when it changes.

We also use LHCALL_NOTIFY on kernel addresses for very very early
console output.  We could have another hypercall, but this hack works
quite well.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/x86/lguest/Kconfig
arch/x86/lguest/boot.c
drivers/lguest/Makefile
drivers/lguest/lguest_device.c [new file with mode: 0644]
include/linux/lguest_launcher.h