mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 23:26:45 +07:00
19f1537b7b
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>
15 lines
447 B
Plaintext
15 lines
447 B
Plaintext
config LGUEST_GUEST
|
|
bool "Lguest guest support"
|
|
select PARAVIRT
|
|
depends on !X86_PAE
|
|
select VIRTIO
|
|
select VIRTIO_RING
|
|
select VIRTIO_CONSOLE
|
|
help
|
|
Lguest is a tiny in-kernel hypervisor. Selecting this will
|
|
allow your kernel to boot under lguest. This option will increase
|
|
your kernel size by about 6k. If in doubt, say N.
|
|
|
|
If you say Y here, make sure you say Y (or M) to the virtio block
|
|
and net drivers which lguest needs.
|