KVM: s390: Fix guest kconfig
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 25 Jul 2008 13:50:04 +0000 (15:50 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Jul 2008 08:35:47 +0000 (11:35 +0300)
commit99e65c92f2bbf84f43766a8bf701e36817d62822
treec7ad277189ab20fbb1041fba994099abbd96bc41
parent2bd0ac4eb469ef58c3b1746fccd15da871fc55c4
KVM: s390: Fix guest kconfig

Cornelia Huck noticed that a modular virtio without kvm guest support
leads to a build error in the s390 virtio transport:

CONFIG_VIRTIO=m leads to
ERROR: "vmem_add_mapping" [drivers/s390/kvm/kvm_virtio.ko] undefined!
ERROR: "max_pfn" [drivers/s390/kvm/kvm_virtio.ko] undefined!
ERROR: "vmem_remove_mapping" [drivers/s390/kvm/kvm_virtio.ko] undefined!

The virtio transport only works with kvm guest support and only as a
builtin. Lets change the build process of drivers/s390/kvm/kvm_virtio.c
to depend on kvm guest support, which is also a bool.

CONFIG_S390_GUEST already selects CONFIG_VIRTIO, that should prevent
CONFIG_S390_GUEST=y CONFIG_VIRTIO=n situations.

CC: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/s390/kvm/Makefile