xen: XEN_PVHVM depends on PCI
Subsystems (3)
PATCH 1/2 xen: XEN_PVHVM depends on PCI
From: Stefano Stabellini <[email protected]>
Xen PV on HVM guests require PCI support because they need the xen-platform-pci driver in order to initialize xenbus.
--- arch/x86/xen/Kconfig | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
arch/x86/xen/Kconfig +1 -2
@@ -25,8 +25,7 @@ config XEN_PRIVILEGED_GUEST config XEN_PVHVM def_bool y - depends on XEN - depends on X86_LOCAL_APIC + depends on XEN && PCI && X86_LOCAL_APIC config XEN_MAX_DOMAIN_MEMORY int
Signature · 1 line
1.7.2.3
PATCH 2/2 xen: remove XEN_PLATFORM_PCI config option
From: Stefano Stabellini <[email protected]>
Xen PVHVM needs xen-platform-pci, on the other hand xen-platform-pci is useless in any other cases.
Therefore remove the XEN_PLATFORM_PCI config option and compile xen-platform-pci built-in if XEN_PVHVM is selected.
--- drivers/xen/Kconfig | 10 ---------- drivers/xen/Makefile | 2 +- 2 files changed, 1 insertions(+), 11 deletions(-)
drivers/xen/Kconfig +0 -10
@@ -137,16 +137,6 @@ config XEN_GRANT_DEV_ALLOC to other domains. This can be used to implement frontend drivers or as part of an inter-domain shared memory channel. -config XEN_PLATFORM_PCI - tristate "xen platform pci device driver" - depends on XEN_PVHVM && PCI - default m - help - Driver for the Xen PCI Platform device: it is responsible for - initializing xenbus and grant_table when running in a Xen HVM - domain. As a consequence this driver is required to run any Xen PV - frontend on Xen HVM. - config SWIOTLB_XEN def_bool y depends on PCI
drivers/xen/Makefile +1 -1
@@ -14,7 +14,7 @@ obj-$(CONFIG_XEN_GNTDEV) += xen-gntdev.o obj-$(CONFIG_XEN_GRANT_DEV_ALLOC) += xen-gntalloc.o obj-$(CONFIG_XENFS) += xenfs/ obj-$(CONFIG_XEN_SYS_HYPERVISOR) += sys-hypervisor.o -obj-$(CONFIG_XEN_PLATFORM_PCI) += xen-platform-pci.o +obj-$(CONFIG_XEN_PVHVM) += xen-platform-pci.o obj-$(CONFIG_XEN_TMEM) += tmem.o obj-$(CONFIG_SWIOTLB_XEN) += swiotlb-xen.o obj-$(CONFIG_XEN_DOM0) += pci.o
Signature · 1 line
1.7.2.3
Re: [PATCH 2/2] xen: remove XEN_PLATFORM_PCI config option
Quoted 39 lines · On 09/27/2011 10:05 AM, [email protected] wrote:
From: Stefano Stabellini <[email protected]>
Xen PVHVM needs xen-platform-pci, on the other hand xen-platform-pci is useless in any other cases.
Therefore remove theXEN_PLATFORM_PCIconfig option and compile xen-platform-pci built-in ifXEN_PVHVMis selected.Signed-off-by Stefano Stabellini <[email protected]>--- drivers/xen/Kconfig | 10 ---------- drivers/xen/Makefile | 2 +- 2 files changed, 1 insertions(+), 11 deletions(-)drivers/xen/Kconfig +0
-10@@ -137,16 +137,6 @@ config XEN_GRANT_DEV_ALLOC to other domains. This can be used to implement frontend drivers or as part of an inter-domain shared memory channel. -config XEN_PLATFORM_PCI - tristate "xen platform pci device driver" - depends on XEN_PVHVM && PCI - default m - help - Driver for the Xen PCI Platform device: it is responsible for - initializing xenbus and grant_table when running in a Xen HVM - domain. As a consequence this driver is required to run any Xen PV - frontend on Xen HVM. - config SWIOTLB_XEN def_bool y depends on PCIdrivers/xen/Makefile +0
-0
drivers/xen/Makefile obj-$(CONFIG_XEN_GNTDEV) += xen-gntdev.o · line 17
Quoted 5 lines
drivers/xen/Makefile +1
-1@@ -14,7 +14,7 @@ obj-$(CONFIG_XEN_GNTDEV) += xen-gntdev.o obj-$(CONFIG_XEN_GRANT_DEV_ALLOC) += xen-gntalloc.o obj-$(CONFIG_XENFS) += xenfs/ obj-$(CONFIG_XEN_SYS_HYPERVISOR) += sys-hypervisor.o -obj-$(CONFIG_XEN_PLATFORM_PCI) += xen-platform-pci.o +obj-$(CONFIG_XEN_PVHVM) += xen-platform-pci.o
May as well just say "platform-pci.o" and remove the
"xen-platform-pci-y := platform-pci.o" further down, since
its no longer externally visible.
J
Re: [PATCH 2/2] xen: remove XEN_PLATFORM_PCI config option
Quoted 6 lines · Jeremy Fitzhardinge
Quoted 6 lines
drivers/xen/Makefile +0
-0@@ -14,7 +14,7 @@ obj-$(CONFIG_XEN_GNTDEV) += xen-gntdev.o obj-$(CONFIG_XEN_GRANT_DEV_ALLOC) += xen-gntalloc.o
Quoted 9 lines
drivers/xen/Makefile obj-$(CONFIG_XEN_GNTDEV) += xen-gntdev.o · line 17
Quoted 4 lines
drivers/xen/Makefile +1
-1obj-$(CONFIG_XENFS) += xenfs/ obj-$(CONFIG_XEN_SYS_HYPERVISOR) += sys-hypervisor.o -obj-$(CONFIG_XEN_PLATFORM_PCI) += xen-platform-pci.o +obj-$(CONFIG_XEN_PVHVM) += xen-platform-pci.oMay as well just say "platform-pci.o" and remove the
"xen-platform-pci-y := platform-pci.o" further down, since
its no longer externally visible.
good idea, I'll do that