Re: [tip:x86/urgent] x86/kconfig: Add a Kconfig shortcut for building working KVM guest kernels

David Rientjes
2013-05-01T21:00:12Z

On Wed, 1 May 2013, Borislav Petkov wrote:

> ---
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index e8fff2f4ecb7..4f8ef85b0633 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -389,7 +389,8 @@ config X86_VSMP
> bool "ScaleMP vSMP"
> select HYPERVISOR_GUEST
> select PARAVIRT
> - depends on X86_64 && PCI
> + select PCI
> + depends on X86_64
> depends on X86_EXTENDED_PLATFORM
> depends on SMP
> ---help---
> @@ -664,6 +665,7 @@ config KVM_GUEST_COMMON_OPTIONS
> select IP_PNP
> select IP_PNP_DHCP
> select BINFMT_ELF
> + select PCI
> select PCI_MSI
> select HAVE_ARCH_KGDB
> select DEBUG_KERNEL

With this applied, two other types of conflicting dependencies:

warning: (KVM_GUEST_COMMON_OPTIONS) selects VIRTIO_NET which has unmet direct dependencies (NETDEVICES && NET_CORE && VIRTIO)

and

warning: (KVM_GUEST_COMMON_OPTIONS && AMD_IOMMU) selects PCI_MSI which has unmet direct dependencies (PCI && ARCH_SUPPORTS_MSI)