Xen's Linux kernel config options V2
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Current Xen related config options are as follows:
Option Selects Depends
---------------------------------------------------------------------
XEN PARAVIRT_CLOCK(x86) PARAVIRT(x86)
XEN_HAVE_PVMMU(x86)
SWIOTLB_XEN(arm,arm64)
PCI_XEN(x86) SWIOTLB_XEN
XEN_DOM0 PCI_XEN(x86)
XEN_BACKEND
XEN_BLKDEV_BACKEND
XEN_PCIDEV_BACKEND(x86)
XEN_SCSI_BACKEND
XEN_NETDEV_BACKEND
XEN_ACPI_HOTPLUG_MEMORY XEN_STUB
XEN_ACPI_HOTPLUG_CPU XEN_STUB
XEN_MCE_LOG(x86)
XEN_PVHVM(x86)
XEN_PVH(x86)
XEN_MAX_DOMAIN_MEMORY(x86)
XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS(x86)
XEN_FBDEV_FRONTEND XEN_XENBUS_FRONTEND
INPUT_XEN_KBDDEV_FRONTEND
XEN_BLKDEV_FRONTEND XEN_XENBUS_FRONTEND
HVC_XEN
HVC_XEN_FRONTEND XEN_XENBUS_FRONTEND
TCG_XEN XEN_XENBUS_FRONTEND
XEN_PCIDEV_FRONTEND PCI_XEN XEN_XENBUS_FRONTEND
XEN_SCSI_FRONTEND XEN_XENBUS_FRONTEND
INPUT_XEN_KBDDEV_FRONTEND XEN_XENBUS_FRONTEND
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONING XEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG XEN_SCRUB_PAGES
XEN_DEV_EVTCHN
XENFS XEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_XENBUS_FRONTEND
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEM(x86)
XEN_PRIVCMD
XEN_STUB(x86_64) BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMU
XEN_EFI(x64)
XEN_NETDEV_FRONTEND XEN_XENBUS_FRONTEND
Legend:
- The first column are the Xen config options. Indentation in this column reflects the dependency between those options (e.g. XEN_SCSI_BACKEND depends on XEN_BACKEND, which in turn depends on XEN_DOM0, which depends on XEN).
- The second column shows the options which are selected automatically if the corresponding option in the first column is configured.
- The last column shows additional dependencies which can't be shown via the indentation level of the first column.
- Some options or dependencies are architecture specific, they are listed in brackets (e.g. XEN_TMEM which is available for x86 only).
- Non-Xen options are mentioned only if they seem to be really relevant, like e.g. PARAVIRT or BROKEN.
There are several reasons to change the config options:
- Be able to build Xen frontend drivers for HVM domains without the need for choosing a pvops kernel: currently the frontend drivers need XEN configured which depends on PARAVIRT.
- Be able to build a Dom0 using XEN_PVH without having to configure XEN_HAVE_PVMMU.
- Be able to build HVM driver domains.
- Some features are available for x86 only, in spite of being not architecture specific, e.g. XEN_DEBUG_FS or XEN_TMEM.
After some feedback for the first draft I'd suggest the following:
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86) XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86) XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVM PARAVIRT
PARAVIRT_CLOCK
XEN_BACKEND SWIOTLB_XEN(arm,arm64) XEN_PV(x86) ||
XEN_PVH(x86) ||
XEN_PVHVM
XEN_BLKDEV_BACKEND
XEN_PCIDEV_BACKEND(x86)
XEN_SCSI_BACKEND
XEN_NETDEV_BACKEND
PCI_XEN(x86) SWIOTLB_XEN
XEN_DOM0 XEN_BACKEND XEN_PV(x86) ||
PCI_XEN(x86) XEN_PVH(x86)
XEN_ACPI_HOTPLUG_MEMORY XEN_STUB
XEN_ACPI_HOTPLUG_CPU XEN_STUB
XEN_MCE_LOG(x86) XEN_MAX_DOMAIN_MEMORY(x86) XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONING XEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG XEN_SCRUB_PAGES
XENFS XEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_DEV_EVTCHN
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEM
XEN_PRIVCMD
XEN_STUB(x86_64) BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMU
XEN_EFI(x64)
XEN_XENBUS_FRONTENDXEN_FRONTEND XEN
XEN_XENBUS_FRONTEND
XEN_FBDEV_FRONTEND INPUT_XEN_KBDDEV_FRONTEND
XEN_BLKDEV_FRONTEND
HVC_XEN_FRONTEND HVC_XEN
TCG_XEN
XEN_PCIDEV_FRONTEND PCI_XEN
XEN_SCSI_FRONTEND INPUT_XEN_KBDDEV_FRONTEND XEN_NETDEV_FRONTEND
XEN_PLATFORM_PCI
The main difference to the current status is the XEN setting no longer controlling all other options.
Changing the config options in this way surely will need some adjustments in the drivers, but this can be discussed when we agree on the future config dependencies.
Changes in V2:
- XEN doesn't select SWIOTLB_XEN on arm, this is done by XEN_BACKEND now (David Vrabel and Stefano Stabellini)
- XEN_PVHVM now under XEN, selects PARAVIRT and PARAVIRT_CLOCK (David)
- XEN_FRONTEND independent from any XEN_* variant, selects XEN and XEN_XENBUS_FRONTEND (David, Juergen)
- added XEN_PLATFORM_PCI (David)
Juergen
Quoted 101 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Current Xen related config options are as follows:
Option Selects Depends
---------------------------------------------------------------------
XENPARAVIRT_CLOCK(x86)PARAVIRT(x86)XEN_HAVE_PVMMU(x86) SWIOTLB_XEN(arm,arm64) PCI_XEN(x86) SWIOTLB_XEN XEN_DOM0 PCI_XEN(x86) XEN_BACKEND XEN_BLKDEV_BACKEND XEN_PCIDEV_BACKEND(x86) XEN_SCSI_BACKEND XEN_NETDEV_BACKEND XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86) XEN_PVHVM(x86) XEN_PVH(x86) XEN_MAX_DOMAIN_MEMORY(x86) XEN_SAVE_RESTORE(x86) XEN_DEBUG_FS(x86) XEN_FBDEV_FRONTEND XEN_XENBUS_FRONTEND INPUT_XEN_KBDDEV_FRONTEND XEN_BLKDEV_FRONTEND XEN_XENBUS_FRONTEND HVC_XEN HVC_XEN_FRONTEND XEN_XENBUS_FRONTEND TCG_XEN XEN_XENBUS_FRONTEND XEN_PCIDEV_FRONTEND PCI_XEN
XEN_XENBUS_FRONTEND
XEN_SCSI_FRONTENDXEN_XENBUS_FRONTEND
INPUT_XEN_KBDDEV_FRONTENDXEN_XENBUS_FRONTEND
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUGXEN_SCRUB_PAGES
XEN_DEV_EVTCHN
XENFSXEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_XENBUS_FRONTEND
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEM(x86)
XEN_PRIVCMD
XEN_STUB(x86_64)BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMU
XEN_EFI(x64)
XEN_NETDEV_FRONTENDXEN_XENBUS_FRONTENDLegend:
- The first column are the Xen config options. Indentation in this column reflects the dependency between those options (e.g.XEN_SCSI_BACKENDdepends onXEN_BACKEND, which in turn depends onXEN_DOM0, which depends on XEN).
- The second column shows the options which are selected automatically if the corresponding option in the first column is configured.
- The last column shows additional dependencies which can't be shown via the indentation level of the first column.
- Some options or dependencies are architecture specific, they are listed in brackets (e.g.XEN_TMEMwhich is available for x86 only).
- Non-Xen options are mentioned only if they seem to be really relevant, like e.g. PARAVIRT or BROKEN.There are several reasons to change the config options:
- Be able to build Xen frontend drivers for HVM domains without the need for choosing a pvops kernel: currently the frontend drivers need XEN configured which depends on PARAVIRT.
- Be able to build a Dom0 usingXEN_PVHwithout having to configureXEN_HAVE_PVMMU.
- Be able to build HVM driver domains.
- Some features are available for x86 only, in spite of being not architecture specific, e.g.XEN_DEBUG_FSorXEN_TMEM.After some feedback for the first draft I'd suggest the following:
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCK
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||
Quoted 12 lines
XEN_PVH(x86) ||
XEN_PVHVM
XEN_BLKDEV_BACKEND
XEN_PCIDEV_BACKEND(x86)
XEN_SCSI_BACKEND
XEN_NETDEV_BACKEND
PCI_XEN(x86) SWIOTLB_XEN
XEN_DOM0 XEN_BACKEND XEN_PV(x86) ||
PCI_XEN(x86) XEN_PVH(x86)
XEN_ACPI_HOTPLUG_MEMORY XEN_STUB
XEN_ACPI_HOTPLUG_CPU XEN_STUB
XEN_MCE_LOG(x86)and XEN_ACPI_PROCESSOR(x86)
Quoted 1 line
XEN_MAX_DOMAIN_MEMORY(x86)
which depends on XEN_PV
Quoted 3 lines
XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT
.. which only makes sense in a XEN_DOM0? Perhaps make it part of XEN_DOM0?
Quoted 7 lines
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG
XEN_SCRUB_PAGES
XENFSXEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
Available on all? As in if we select CONFIG_XEN this would automtically show up?
Quoted 1 line
XEN_DEV_EVTCHN
Frontends and backends select this?
Quoted 1 line
XEN_GNTDEV
Backend should select this?
Quoted 2 lines
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
(Make it hidden?)
Quoted 2 lines
XEN_TMEM
XEN_PRIVCMD
Backend select this?
Quoted 5 lines
XEN_STUB(x86_64)BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMU
XEN_EFI(x64)
XEN_XENBUS_FRONTEND
(make it hidden?)
Quoted 12 lines
XEN_FRONTENDXEN
XEN_XENBUS_FRONTEND
XEN_FBDEV_FRONTENDINPUT_XEN_KBDDEV_FRONTEND
XEN_BLKDEV_FRONTEND
HVC_XEN_FRONTENDHVC_XEN
TCG_XEN
XEN_PCIDEV_FRONTENDPCI_XEN
XEN_SCSI_FRONTENDINPUT_XEN_KBDDEV_FRONTENDXEN_NETDEV_FRONTEND
XEN_PLATFORM_PCI
Quoted 7 lines
The main difference to the current status is the XEN setting no longer controlling all other options.
Changing the config options in this way surely will need some adjustments in the drivers, but this can be discussed when we agree on the future config dependencies.
Also it would good to have a requirement that XEN not depend on PAE - because we can have HVM guests without PAE.
Quoted 10 lines
Changes in V2:
- XEN doesn't selectSWIOTLB_XENon arm, this is done byXEN_BACKENDnow (David Vrabel and Stefano Stabellini)
-XEN_PVHVMnow under XEN, selects PARAVIRT andPARAVIRT_CLOCK(David)
-XEN_FRONTENDindependent from any XEN_* variant, selects XEN andXEN_XENBUS_FRONTEND(David, Juergen)
- addedXEN_PLATFORM_PCI(David)Juergen
Quoted 2 lines · Juergen Gross
Option Selects Depends
----------------------------------------------------------------------
Could you annotate (maybe not a new column, perhaps with a * or something) which options are supposed to be user-visible vs purely internal things which can be selected?
I think it is still the case that selecting an option which is user visible is frowned upon?
[...]
Quoted 2 lines
The main difference to the current status is the XEN setting no longer controlling all other options.
In your list do the options which come under XEN or XEN_FRONTEND depend on the respective headline config option?
Ian.
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 19.01.15 at 14:28, <[email protected]> wrote:
I think it is still the case that selecting an option which is user visible is frowned upon?
I don't think so; iirc there are cases where things deliberately get set up that way (for example library code that is explicitly meant to be available also to out-of-tree drivers, but which some in-tree drivers also need and hence select).
Jan
I'm going to work on this now so my replies below.
Note: If we want feature to require XEN_PV || XEN_PVH || XEN_PVHVM, since XEN_BACKEND depends on them I think we could just use XEN_BACKEND as a shorthand. Furthermore if we then wanted something to be available for both backend and frontend we could use a dependency on XEN_BACKEND || XEN_FRONTEND. Thoughts?
Quoted 13 lines · Konrad Rzeszutek Wilk
Quoted 11 lines · Juergen Gross
After some feedback for the first draft I'd suggest the following:
Option Selects Depends
----------------------------------------------------------------------
XEN
PCI_XEN(x86)SWIOTLB_XENXEN_DOM0 XEN_BACKEND XEN_PV(x86) || PCI_XEN(x86) XEN_PVH(x86) XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86)
Quoted 1 line
and
XEN_ACPI_PROCESSOR(x86)
Added.
Quoted 3 lines
Quoted 1 line
XEN_MAX_DOMAIN_MEMORY(x86)which depends on
XEN_PV
Adjusted, but so far that's the only XEN_PV alone-dependent option. Are you sure ? This defines MAX_DOMAIN_PAGES, and used on arch/x86/xen/setup.c for xen_get_max_pages(). Can't this be used for XEN_DOM0 ?
Quoted 5 lines
Quoted 3 lines
XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT.. which only makes sense in a
XEN_DOM0? Perhaps make it part ofXEN_DOM0?
Adjusted.
Quoted 9 lines
Quoted 7 lines
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG
XEN_SCRUB_PAGES
XENFSXEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISORAvailable on all? As in if we select
CONFIG_XENthis would automtically show up?
I think this could be further compartmentalized. For XEN_BALLOON, XEN_SELFBALLOONING, XEN_BALLOON_MEMORY_HOTPLUG, and XEN_SCRUB_PAGES we have:
static int __init balloon_init(void)
{
if (!xen_domain())
return -ENODEV;
pr_info("Initialising balloon driver\n");
register_balloon(&balloon_dev);
register_xen_selfballooning(&balloon_dev);
register_xenstore_notifier(&xenstore_notifier);
return 0;
}subsys_initcall(balloon_init);
So as I see it XEN_BALLOON should depend on XEN_PV || XEN_PVH -- not sure how ballooning would be used on HVM only domains although right now ballooning would indeed be initialized in such situations, should it not? If it should not then the above check should be for xen_pvh_domain() not just xen_domain(). If it should work for hvm domains too we could perhaps use XEN_BACKEND || XEN_FRONTEND.
As for XENFS we have the same check on init for xen_domain(), we only have a small difference for two types of cases. If your kernel supports XEN_DOM0 you also get exposed on the xenfs the xsd_kva and xsd_port which correspond to the xen_store_evtchn and xen_store_interface respectively. Does it make sense to expose xenfs for hvms? If so under this new arrangement perhaps it should depend on XEN_BACKEND || XEN_FRONTEND ?
XEN_SYS_HYPERVISOR just populates the generic /sys/hypervisor/ and also extends it with Xen specific information, its initialization also depends on xen_domain() but I cannot think of a reason to have this for HVM. Perhaps this should depend on XEN_BACKEND only ?
Quoted 3 lines
Quoted 1 line
XEN_DEV_EVTCHNFrontends and backends select this?
This registers /dev/xen/evtchn only if we're in xen_domain(). Do we want this to user visible selectable option and have it depend on XEN_BACKEND || XEN_FRONTEND ?
Quoted 3 lines
Quoted 1 line
XEN_GNTDEVBackend should select this?
Based on my review I would think that this should depend on XEN_BACKEND but be user selectable. I'm hoping Stefano can best decide this though.
Quoted 4 lines
Quoted 2 lines
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN(Make it hidden?)
As for XEN_GRANT_DEV_ALLOC -- if we have XEN_GTDEV as user selectable its not clear to me why this would not be, and have it depend on XEN_BACKEND, Stefano?
As for SWIOTLB_XEN -- should that not just depend on XEN_PV && X86 ? At least drivers/xen/swiotlb-xen.c describes this as code which provides an IOMMU for Xen PV guests with PCI passthrough.
Quoted 4 lines
Quoted 2 lines
XEN_TMEM
XEN_PRIVCMDBackend select this?
OK
Quoted 7 lines
Quoted 5 lines
XEN_STUB(x86_64)BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMU
XEN_EFI(x64)
XEN_XENBUS_FRONTEND(make it hidden?)
Well XEN_STUB is broken... and its useful for CPU / memory hotplug only. How about making XEN_STUB depend on XEN_BACKEND?
It seems to me that XEN_ACPI_PROCESSOR should also depend on XEN_BACKEND.
XEN_HAVE_PVMMU is only used when XEN_BALLOON is enabled but only selected when the big old CONFIG_XEN was enabled. Based on the above observations on XEN_BALLOON if those dependencies are handled correctly its not clear to me why not just remove this Kconfig entry.
XEN_EFI is already hidden.
XEN_XENBUS_FRONTEND is more of a frontend monitor access to frontends, but since its for backends have it just selected by XEN_BACKEND then?
Quoted 2 lines
Also it would good to have a requirement that XEN not depend on PAE - because we can have HVM guests without PAE.
OK I've added this as part of an end goal to this effort.
Luis
Quoted 8 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 19.01.15 at 14:28, <[email protected]> wrote:
I think it is still the case that selecting an option which is user visible is frowned upon?
I don't think so; iirc there are cases where things deliberately get set up that way (for example library code that is explicitly meant to be available also to out-of-tree drivers, but which some in-tree drivers also need and hence select).
Agreed here, users don't know so our goal should be just to make it work right for what is selected.
Luis
Quoted 27 lines · Luis R. Rodriguez
I'm going to work on this now so my replies below.
Note: If we want feature to require
XEN_PV||XEN_PVH||XEN_PVHVM, sinceXEN_BACKENDdepends on them I think we could just useXEN_BACKENDas a shorthand. Furthermore if we then wanted something to be available for both backend and frontend we could use a dependency onXEN_BACKEND||XEN_FRONTEND. Thoughts?Quoted 13 lines · Konrad Rzeszutek Wilk
Quoted 11 lines · Juergen Gross
After some feedback for the first draft I'd suggest the following:
Option Selects Depends
----------------------------------------------------------------------
XEN
PCI_XEN(x86)SWIOTLB_XENXEN_DOM0 XEN_BACKEND XEN_PV(x86) || PCI_XEN(x86) XEN_PVH(x86) XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86)Quoted 1 line
and
XEN_ACPI_PROCESSOR(x86)Added.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
XEN_MAX_DOMAIN_MEMORY(x86)which depends on
XEN_PVAdjusted, but so far that's the only
XEN_PValone-dependent option. Are you sure ? This definesMAX_DOMAIN_PAGES, and used onarch/x86/xen/setup.cforxen_get_max_pages(). Can't this be used forXEN_DOM0?
This option will be replaced by another one once my patches for supporting >500GB pv-domains are ready.
For now you could let it depend on XEN_HAVE_PVMMU. It is relevant for domUs as well.
Juergen
Quoted 132 lines
Quoted 6 lines
Quoted 4 lines
XEN_SAVE_RESTORE(x86) XEN_DEBUG_FS XEN_WDT.. which only makes sense in a
XEN_DOM0? Perhaps make it part ofXEN_DOM0?Adjusted.
Quoted 9 lines
Quoted 7 lines
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG
XEN_SCRUB_PAGES
XENFSXEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISORAvailable on all? As in if we select
CONFIG_XENthis would automtically show up?I think this could be further compartmentalized. For
XEN_BALLOON,XEN_SELFBALLOONING,XEN_BALLOON_MEMORY_HOTPLUG, andXEN_SCRUB_PAGESwe have:static int
__initballoon_init(void){ if (!xen_domain()) return -ENODEV; pr_info("Initialising balloon driver\n"); register_balloon(&balloon_dev); register_xen_selfballooning(&balloon_dev); register_xenstore_notifier(&xenstore_notifier); return 0; }
subsys_initcall(balloon_init);So as I see it
XEN_BALLOONshould depend onXEN_PV||XEN_PVH-- not sure how ballooning would be used on HVM only domains although right now ballooning would indeed be initialized in such situations, should it not? If it should not then the above check should be forxen_pvh_domain()not justxen_domain(). If it should work for hvm domains too we could perhaps useXEN_BACKEND||XEN_FRONTEND.As for XENFS we have the same check on init for
xen_domain(), we only have a small difference for two types of cases. If your kernel supportsXEN_DOM0you also get exposed on the xenfs thexsd_kvaandxsd_portwhich correspond to thexen_store_evtchnandxen_store_interfacerespectively. Does it make sense to expose xenfs for hvms? If so under this new arrangement perhaps it should depend onXEN_BACKEND||XEN_FRONTEND?
XEN_SYS_HYPERVISORjust populates the generic/sys/hypervisor/and also extends it with Xen specific information, its initialization also depends onxen_domain()but I cannot think of a reason to have this for HVM. Perhaps this should depend onXEN_BACKENDonly ?Quoted 3 lines
Quoted 1 line
XEN_DEV_EVTCHNFrontends and backends select this?
This registers
/dev/xen/evtchnonly if we're inxen_domain(). Do we want this to user visible selectable option and have it depend onXEN_BACKEND||XEN_FRONTEND?Quoted 3 lines
Quoted 1 line
XEN_GNTDEVBackend should select this?
Based on my review I would think that this should depend on
XEN_BACKENDbut be user selectable. I'm hoping Stefano can best decide this though.Quoted 4 lines
Quoted 2 lines
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN(Make it hidden?)
As for
XEN_GRANT_DEV_ALLOC-- if we haveXEN_GTDEVas user selectable its not clear to me why this would not be, and have it depend onXEN_BACKEND, Stefano?As for
SWIOTLB_XEN-- should that not just depend onXEN_PV&& X86 ? At leastdrivers/xen/swiotlb-xen.cdescribes this as code which provides an IOMMU for Xen PV guests with PCI passthrough.Quoted 4 lines
Quoted 2 lines
XEN_TMEM
XEN_PRIVCMDBackend select this?
OK
Quoted 7 lines
Quoted 5 lines
XEN_STUB(x86_64) BROKEN XEN_ACPI_PROCESSOR(x86) XEN_HAVE_PVMMU XEN_EFI(x64) XEN_XENBUS_FRONTEND(make it hidden?)
Well
XEN_STUBis broken... and its useful for CPU / memory hotplug only. How about makingXEN_STUBdepend onXEN_BACKEND?It seems to me that
XEN_ACPI_PROCESSORshould also depend onXEN_BACKEND.
XEN_HAVE_PVMMUis only used whenXEN_BALLOONis enabled but only selected when the big oldCONFIG_XENwas enabled. Based on the above observations onXEN_BALLOONif those dependencies are handled correctly its not clear to me why not just remove thisKconfigentry.
XEN_EFIis already hidden.
XEN_XENBUS_FRONTENDis more of a frontend monitor access to frontends, but since its for backends have it just selected byXEN_BACKENDthen?Quoted 2 lines
Also it would good to have a requirement that XEN not depend on PAE - because we can have HVM guests without PAE.
OK I've added this as part of an end goal to this effort.
Luis
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 04.02.15 at 01:48, <[email protected]> wrote:
So as I see it
XEN_BALLOONshould depend onXEN_PV||XEN_PVH-- not sure how ballooning would be used on HVM only domains although right now ballooning would indeed be initialized in such situations, should it not? If it should not then the above check should be forxen_pvh_domain()not justxen_domain(). If it should work for hvm domains too we could perhaps useXEN_BACKEND||XEN_FRONTEND.
Why do you think HVM can't use ballooning?
Quoted 7 lines
As for XENFS we have the same check on init for
xen_domain(), we only have a small difference for two types of cases. If your kernel supportsXEN_DOM0you also get exposed on the xenfs thexsd_kvaandxsd_portwhich correspond to thexen_store_evtchnandxen_store_interfacerespectively. Does it make sense to expose xenfs for hvms? If so under this new arrangement perhaps it should depend onXEN_BACKEND||XEN_FRONTEND?
In general I think options should be hidden only if they can't work in certain cases.
Quoted 4 lines
XEN_SYS_HYPERVISORjust populates the generic/sys/hypervisor/and also extends it with Xen specific information, its initialization also depends onxen_domain()but I cannot think of a reason to have this for HVM. Perhaps this should depend onXEN_BACKENDonly ?
Again - don't hide options that may end up being useful, unless there is a reason they can't possibly work.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
XEN_DEV_EVTCHNFrontends and backends select this?
This registers
/dev/xen/evtchnonly if we're inxen_domain(). Do we want this to user visible selectable option and have it depend onXEN_BACKEND||XEN_FRONTEND?
I think this can be useful even without any (kernel based) backends or frontends (e.g. for user mode ones). It's also needed for certain daemons.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
XEN_GNTDEVBackend should select this?
Based on my review I would think that this should depend on
XEN_BACKENDbut be user selectable. I'm hoping Stefano can best decide this though.
Just like for the evtchn device, this is useful to user mode even without any kernel based backends.
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
XEN_TMEM
XEN_PRIVCMDBackend select this?
Why? There's no connection between these and backend functionality.
Jan
Quoted 59 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCK
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVM XEN_BLKDEV_BACKEND XEN_PCIDEV_BACKEND(x86) XEN_SCSI_BACKEND XEN_NETDEV_BACKEND PCI_XEN(x86) SWIOTLB_XEN XEN_DOM0 XEN_BACKEND XEN_PV(x86) || PCI_XEN(x86) XEN_PVH(x86) XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86)
XEN_MAX_DOMAIN_MEMORY(x86)XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUGXEN_SCRUB_PAGES
XENFSXEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_DEV_EVTCHN
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEM
XEN_PRIVCMD
XEN_STUB(x86_64)BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMU
XEN_EFI(x64)
XEN_XENBUS_FRONTENDXEN_FRONTENDXEN
XEN_XENBUS_FRONTEND
XEN_FBDEV_FRONTENDINPUT_XEN_KBDDEV_FRONTEND
Quoted 8 lines
XEN_BLKDEV_FRONTEND
HVC_XEN_FRONTENDHVC_XEN
TCG_XEN
XEN_PCIDEV_FRONTENDPCI_XEN
XEN_SCSI_FRONTEND
INPUT_XEN_KBDDEV_FRONTEND
XEN_NETDEV_FRONTEND
XEN_PLATFORM_PCI
This looks fine to me.
David
Quoted 11 lines · David Vrabel
Quoted 10 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Quoted 11 lines
Quoted 11 lines
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCK
PARAVIRT_CLOCK and PARAVIRT are x86 specific.
Given that there is no CONFIG_PV or CONFIG_PVH or even CONFIG_PVHVM on arm and arm64 as there is just one type of guest, I would rather just have CONFIG_XEN there.
Quoted 21 lines
Quoted 21 lines
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVM XEN_BLKDEV_BACKEND XEN_PCIDEV_BACKEND(x86) XEN_SCSI_BACKEND XEN_NETDEV_BACKEND PCI_XEN(x86) SWIOTLB_XEN XEN_DOM0 XEN_BACKEND XEN_PV(x86) || PCI_XEN(x86) XEN_PVH(x86) XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86)
XEN_MAX_DOMAIN_MEMORY(x86)
XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG
XEN_SCRUB_PAGES
Quoted 8 lines
Quoted 8 lines
XENFS
XEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_DEV_EVTCHN
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEM
not available on arm and arm64
Quoted 4 lines
Quoted 4 lines
XEN_PRIVCMD
XEN_STUB(x86_64)BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMU
x86 specific
Quoted 1 line
Quoted 1 line
XEN_EFI(x64)
FYI soon to be available on arm
Quoted 8 lines
Quoted 8 lines
XEN_XENBUS_FRONTENDXEN_FRONTENDXEN
XEN_XENBUS_FRONTEND
XEN_FBDEV_FRONTENDINPUT_XEN_KBDDEV_FRONTEND
XEN_BLKDEV_FRONTEND
HVC_XEN_FRONTENDHVC_XEN
TCG_XEN
XEN_PCIDEV_FRONTENDPCI_XEN
x86 specific for the moment
Quoted 4 lines
Quoted 4 lines
XEN_SCSI_FRONTEND
INPUT_XEN_KBDDEV_FRONTEND
XEN_NETDEV_FRONTEND
XEN_PLATFORM_PCI
definitely x86 only
Quoted 9 lines
This looks fine to me.
David
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 24 lines · Stefano Stabellini
Quoted 11 lines · David Vrabel
Quoted 10 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Quoted 11 lines
Quoted 11 lines
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCK
Quoted 1 line
PARAVIRT_CLOCKand PARAVIRT are x86 specific.
Does PARAVIRT_CLOCK include the pvclock_read_wallclock stuff? Eventually we are going to want that functionality on ARM too, although it's not clear to me that bundling pv-wallclock and pv-cyclecounter in arch/x86/kernel/pvclock.c under the same config option is most correct.
Ian.
Quoted 25 lines · Ian Campbell
Quoted 24 lines · Stefano Stabellini
Quoted 22 lines · David Vrabel
Quoted 21 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCK
Quoted 6 lines
Quoted 1 line
PARAVIRT_CLOCKand PARAVIRT are x86 specific.Does
PARAVIRT_CLOCKinclude thepvclock_read_wallclockstuff? Eventually we are going to want that functionality on ARM too, although it's not clear to me that bundling pv-wallclock and pv-cyclecounter inarch/x86/kernel/pvclock.cunder the same config option is most correct.
Agreed. Also that patch series never went upstream unfortunately.
Quoted 7 lines · Juergen Gross
Quoted 6 lines · Luis R. Rodriguez
Quoted 4 lines
Quoted 1 line
XEN_MAX_DOMAIN_MEMORY(x86)which depends on
XEN_PV
Quoted 8 lines
Quoted 4 lines
Adjusted, but so far that's the only
XEN_PValone-dependent option. Are you sure ? This definesMAX_DOMAIN_PAGES, and used onarch/x86/xen/setup.cforxen_get_max_pages(). Can't this be used forXEN_DOM0?This option will be replaced by another one once my patches for supporting >500GB pv-domains are ready.
Great!
Quoted 2 lines
For now you could let it depend on
XEN_HAVE_PVMMU. It is relevant for domUs as well.
Well right now the only entity that selects XEN_HAVE_PVMMU is CONFIG_XEN.. so that begs the question of which Kconfig options should be selecting XEN_HAVE_PVMMU in the future? What about having it be selected by XEN_BACKEND and also XEN_FRONTEND ?
Luis
Quoted 19 lines · Luis R. Rodriguez
Quoted 7 lines · Juergen Gross
Quoted 6 lines · Luis R. Rodriguez
Quoted 4 lines
Quoted 1 line
XEN_MAX_DOMAIN_MEMORY(x86)which depends on
XEN_PVQuoted 8 lines
Quoted 4 lines
Adjusted, but so far that's the only
XEN_PValone-dependent option. Are you sure ? This definesMAX_DOMAIN_PAGES, and used onarch/x86/xen/setup.cforxen_get_max_pages(). Can't this be used forXEN_DOM0?This option will be replaced by another one once my patches for supporting >500GB pv-domains are ready.
Great!
Quoted 7 lines
Quoted 2 lines
For now you could let it depend on
XEN_HAVE_PVMMU. It is relevant for domUs as well.Well right now the only entity that selects
XEN_HAVE_PVMMUisCONFIG_XEN.. so that begs the question of whichKconfigoptions should be selectingXEN_HAVE_PVMMUin the future? What about having it be selected byXEN_BACKENDand alsoXEN_FRONTEND?
Nevermind I see you had it selected by XEN_PV(x86) already only, this would also satisfy Konrad's request to be able to build XEN_PVH without having to configure XEN_HAVE_PVMMU.
Luis
Quoted 9 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 04.02.15 at 01:48, <[email protected]> wrote:
So as I see it
XEN_BALLOONshould depend onXEN_PV||XEN_PVH-- not sure how ballooning would be used on HVM only domains although right now ballooning would indeed be initialized in such situations, should it not? If it should not then the above check should be forxen_pvh_domain()not justxen_domain(). If it should work for hvm domains too we could perhaps useXEN_BACKEND||XEN_FRONTEND.Why do you think HVM can't use ballooning?
OK I'll keep this under CONFIG_XEN alone then...
Quoted 10 lines
Quoted 7 lines
As for XENFS we have the same check on init for
xen_domain(), we only have a small difference for two types of cases. If your kernel supportsXEN_DOM0you also get exposed on the xenfs thexsd_kvaandxsd_portwhich correspond to thexen_store_evtchnandxen_store_interfacerespectively. Does it make sense to expose xenfs for hvms? If so under this new arrangement perhaps it should depend onXEN_BACKEND||XEN_FRONTEND?In general I think options should be hidden only if they can't work in certain cases.
OK I won't add any dependencies to XENFS then, it will remain under CONFIG_XEN.
Quoted 7 lines
Quoted 4 lines
XEN_SYS_HYPERVISORjust populates the generic/sys/hypervisor/and also extends it with Xen specific information, its initialization also depends onxen_domain()but I cannot think of a reason to have this for HVM. Perhaps this should depend onXEN_BACKENDonly ?Again - don't hide options that may end up being useful, unless there is a reason they can't possibly work.
OK I'll keep it simply under CONFIG_XEN...
Quoted 11 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
XEN_DEV_EVTCHNFrontends and backends select this?
This registers
/dev/xen/evtchnonly if we're inxen_domain(). Do we want this to user visible selectable option and have it depend onXEN_BACKEND||XEN_FRONTEND?I think this can be useful even without any (kernel based) backends or frontends (e.g. for user mode ones). It's also needed for certain daemons.
OK thanks I'll keep that simply under CONFIG_XEN.
Quoted 10 lines
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
XEN_GNTDEVBackend should select this?
Based on my review I would think that this should depend on
XEN_BACKENDbut be user selectable. I'm hoping Stefano can best decide this though.Just like for the evtchn device, this is useful to user mode even without any kernel based backends.
OK.
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
XEN_TMEM
XEN_PRIVCMDBackend select this?
Why? There's no connection between these and backend functionality.
OK, will keep them under CONFIG_XEN.
Luis
Quoted 24 lines · Stefano Stabellini
Quoted 11 lines · David Vrabel
Quoted 10 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Quoted 11 lines
Quoted 11 lines
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCK
Quoted 4 lines
PARAVIRT_CLOCKand PARAVIRT are x86 specific.
Given that there is noCONFIG_PVorCONFIG_PVHor evenCONFIG_PVHVMon arm and arm64 as there is just one type of guest, I would rather just haveCONFIG_XENthere.
Interesting, right now we have as part of the recommended change for XEN_BACKEND:
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_BACKEND SWIOTLB_XEN(arm,arm64) XEN_PV(x86) ||
XEN_PVH(x86) ||
XEN_PVHVMHow would we ensure to enable XEN_BACKEND for arm then?
Quoted 30 lines
Quoted 21 lines
Quoted 21 lines
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVM XEN_BLKDEV_BACKEND XEN_PCIDEV_BACKEND(x86) XEN_SCSI_BACKEND XEN_NETDEV_BACKEND PCI_XEN(x86) SWIOTLB_XEN XEN_DOM0 XEN_BACKEND XEN_PV(x86) || PCI_XEN(x86) XEN_PVH(x86) XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86)
XEN_MAX_DOMAIN_MEMORY(x86)
XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG
XEN_SCRUB_PAGESQuoted 8 lines
Quoted 8 lines
XENFS
XEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_DEV_EVTCHN
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEM
Quoted 1 line
not available on arm and arm64
Can you clarify if you meant only XEN_TMEM or all the above here?
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
XEN_PRIVCMD
XEN_STUB(x86_64)BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMUx86 specific
Likewise, all of the above quoted options ?
Quoted 3 lines
Quoted 1 line
Quoted 1 line
XEN_EFI(x64)FYI soon to be available on arm
OK thanks.
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
XEN_XENBUS_FRONTENDXEN_FRONTENDXEN
XEN_XENBUS_FRONTEND
XEN_FBDEV_FRONTENDINPUT_XEN_KBDDEV_FRONTEND
XEN_BLKDEV_FRONTEND
HVC_XEN_FRONTENDHVC_XEN
TCG_XEN
XEN_PCIDEV_FRONTENDPCI_XENx86 specific for the moment
All?
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
XEN_SCSI_FRONTEND
INPUT_XEN_KBDDEV_FRONTEND
XEN_NETDEV_FRONTEND
XEN_PLATFORM_PCIdefinitely x86 only
All?
Luis
Quoted 34 lines · Luis R. Rodriguez
Quoted 24 lines · Stefano Stabellini
Quoted 11 lines · David Vrabel
Quoted 10 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Quoted 11 lines
Quoted 11 lines
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCKQuoted 4 lines
PARAVIRT_CLOCKand PARAVIRT are x86 specific.
Given that there is noCONFIG_PVorCONFIG_PVHor evenCONFIG_PVHVMon arm and arm64 as there is just one type of guest, I would rather just haveCONFIG_XENthere.Interesting, right now we have as part of the recommended change for
XEN_BACKEND:
Quoted 8 lines
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVMHow would we ensure to enable
XEN_BACKENDfor arm then?
I thought that you wanted to turn XEN_BACKEND into a user selectable option. On arm and arm64 this option wouldn't depend on anything (except CONFIG_XEN).
Quoted 30 lines
Quoted 30 lines
Quoted 29 lines
Quoted 29 lines
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVM XEN_BLKDEV_BACKEND XEN_PCIDEV_BACKEND(x86) XEN_SCSI_BACKEND XEN_NETDEV_BACKEND PCI_XEN(x86) SWIOTLB_XEN XEN_DOM0 XEN_BACKEND XEN_PV(x86) || PCI_XEN(x86) XEN_PVH(x86) XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86)
XEN_MAX_DOMAIN_MEMORY(x86)
XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG
XEN_SCRUB_PAGES
XENFSXEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_DEV_EVTCHN
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEM
Quoted 3 lines
Quoted 1 line
not available on arm and arm64
Can you clarify if you meant only
XEN_TMEMor all the above here?
Only TMEM, sorry for being terse
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
XEN_PRIVCMD
XEN_STUB(x86_64)BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMUx86 specific
Likewise, all of the above quoted options ?
only XEN_HAVE_PVMMU
Quoted 15 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
XEN_EFI(x64)FYI soon to be available on arm
OK thanks.
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
XEN_XENBUS_FRONTENDXEN_FRONTENDXEN
XEN_XENBUS_FRONTEND
XEN_FBDEV_FRONTENDINPUT_XEN_KBDDEV_FRONTEND
XEN_BLKDEV_FRONTEND
HVC_XEN_FRONTENDHVC_XEN
TCG_XEN
XEN_PCIDEV_FRONTENDPCI_XEN
Quoted 3 lines
Quoted 1 line
x86 specific for the moment
All?
XEN_PCIDEV_FRONTEND and PCI_XEN
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
XEN_SCSI_FRONTEND
INPUT_XEN_KBDDEV_FRONTEND
XEN_NETDEV_FRONTEND
XEN_PLATFORM_PCIdefinitely x86 only
All?
only XEN_PLATFORM_PCI
Quoted 42 lines · Stefano Stabellini
Quoted 41 lines · Luis R. Rodriguez
Quoted 24 lines · Stefano Stabellini
Quoted 11 lines · David Vrabel
Quoted 10 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Quoted 11 lines
Quoted 11 lines
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCKQuoted 4 lines
PARAVIRT_CLOCKand PARAVIRT are x86 specific.
Given that there is noCONFIG_PVorCONFIG_PVHor evenCONFIG_PVHVMon arm and arm64 as there is just one type of guest, I would rather just haveCONFIG_XENthere.Interesting, right now we have as part of the recommended change for
XEN_BACKEND:Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVM
Quoted 5 lines
Quoted 1 line
How would we ensure to enable
XEN_BACKENDfor arm then?I thought that you wanted to turn
XEN_BACKENDinto a user selectable option. On arm and arm64 this option wouldn't depend on anything (exceptCONFIG_XEN).
OK sure, that maps to this dependency list then:
ARM || ARM64 || ( X86 && (XEN_PV || XEN_PVH || XEN_PVHVM )
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 29 lines
Quoted 29 lines
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVM XEN_BLKDEV_BACKEND XEN_PCIDEV_BACKEND(x86) XEN_SCSI_BACKEND XEN_NETDEV_BACKEND PCI_XEN(x86) SWIOTLB_XEN XEN_DOM0 XEN_BACKEND XEN_PV(x86) || PCI_XEN(x86) XEN_PVH(x86) XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86)
XEN_MAX_DOMAIN_MEMORY(x86)
XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG
XEN_SCRUB_PAGES
XENFSXEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_DEV_EVTCHN
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEM
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
not available on arm and arm64
Can you clarify if you meant only
XEN_TMEMor all the above here?Only TMEM, sorry for being terse
That was listed as one of the example Kconfig entries which are currently not available on other architectures despite not being architecture specific, the other one being XEN_DEBUG_FS. So to be clear -- do we not want XEN_TMEM for arm in the future ?
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
XEN_PRIVCMD
XEN_STUB(x86_64)BROKEN
XEN_ACPI_PROCESSOR(x86)
XEN_HAVE_PVMMUx86 specific
Likewise, all of the above quoted options ?
only
XEN_HAVE_PVMMU
Updated.
Quoted 15 lines
Quoted 15 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
XEN_EFI(x64)FYI soon to be available on arm
OK thanks.
Quoted 9 lines
Quoted 8 lines
Quoted 8 lines
XEN_XENBUS_FRONTENDXEN_FRONTENDXEN
XEN_XENBUS_FRONTEND
XEN_FBDEV_FRONTENDINPUT_XEN_KBDDEV_FRONTEND
XEN_BLKDEV_FRONTEND
HVC_XEN_FRONTENDHVC_XEN
TCG_XEN
XEN_PCIDEV_FRONTENDPCI_XEN
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
x86 specific for the moment
All?
XEN_PCIDEV_FRONTENDandPCI_XEN
Updated.
Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
XEN_SCSI_FRONTEND
INPUT_XEN_KBDDEV_FRONTEND
XEN_NETDEV_FRONTEND
XEN_PLATFORM_PCIdefinitely x86 only
All?
only
XEN_PLATFORM_PCI
Updated.
Luis
Quoted 2 lines · Stefano Stabellini
Given that there is no
CONFIG_PVorCONFIG_PVHor evenCONFIG_PVHVMon arm and arm64
I'll update CONFIG_XEN_PVHVM to be x86 specific, it already depends on X86_LOCAL_APIC, so just updating it on the proposal to annotate it is x86 specific.
Luis
Quoted 3 lines · Ian Campbell
Could you annotate (maybe not a new column, perhaps with a * or something) which options are supposed to be user-visible vs purely internal things which can be selected?
All options listed will be user selectable unless otherwise noted with a (*) in the next iteration.
Luis
Quoted 2 lines · Ian Campbell
In your list do the options which come under XEN or
XEN_FRONTENDdepend on the respective headline config option?
An indentation reflects a dependency on the above option.
Luis
Quoted 46 lines · Luis R. Rodriguez
Quoted 44 lines · Stefano Stabellini
Quoted 42 lines · Luis R. Rodriguez
Quoted 24 lines · Stefano Stabellini
Quoted 11 lines · David Vrabel
Quoted 10 lines · Juergen Gross
Hi,
This is a design proposal for a rework of the config options on the Linux kernel which are related to Xen.
The need to do so arose from the fact that it is currently not possible to build the Xen frontend drivers for a non-pvops kernel, e.g. to run them in a HVM-domain. There are more drawbacks in the current config options to which I'll come later.
Quoted 11 lines
Quoted 11 lines
Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_PV(x86)XEN_HAVE_PVMMU
PARAVIRT
PARAVIRT_CLOCK
XEN_PVH(x86)XEN_PVHVM
PARAVIRT
PARAVIRT_CLOCK
XEN_PVHVMPARAVIRT
PARAVIRT_CLOCKQuoted 4 lines
PARAVIRT_CLOCKand PARAVIRT are x86 specific.
Given that there is noCONFIG_PVorCONFIG_PVHor evenCONFIG_PVHVMon arm and arm64 as there is just one type of guest, I would rather just haveCONFIG_XENthere.Interesting, right now we have as part of the recommended change for
XEN_BACKEND:Option Selects Depends
----------------------------------------------------------------------
XEN
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVMHow would we ensure to enable
XEN_BACKENDfor arm then?
Quoted 7 lines
Quoted 3 lines
I thought that you wanted to turn
XEN_BACKENDinto a user selectable option. On arm and arm64 this option wouldn't depend on anything (exceptCONFIG_XEN).OK sure, that maps to this dependency list then:
ARM || ARM64 || ( X86 && (
XEN_PV||XEN_PVH||XEN_PVHVM)
And CONFIG_XEN, right?
Quoted 32 lines
Quoted 32 lines
Quoted 32 lines
Quoted 31 lines
Quoted 21 lines
Quoted 21 lines
XEN_BACKENDSWIOTLB_XEN(arm,arm64)XEN_PV(x86)||XEN_PVH(x86) || XEN_PVHVM XEN_BLKDEV_BACKEND XEN_PCIDEV_BACKEND(x86) XEN_SCSI_BACKEND XEN_NETDEV_BACKEND PCI_XEN(x86) SWIOTLB_XEN XEN_DOM0 XEN_BACKEND XEN_PV(x86) || PCI_XEN(x86) XEN_PVH(x86) XEN_ACPI_HOTPLUG_MEMORY XEN_STUB XEN_ACPI_HOTPLUG_CPU XEN_STUB XEN_MCE_LOG(x86)
XEN_MAX_DOMAIN_MEMORY(x86)
XEN_SAVE_RESTORE(x86)
XEN_DEBUG_FS
XEN_WDT
XEN_BALLOON
XEN_SELFBALLOONINGXEN_TMEM
XEN_BALLOON_MEMORY_HOTPLUG
XEN_SCRUB_PAGESQuoted 8 lines
Quoted 8 lines
XENFS
XEN_PRIVCMD
XEN_COMPAT_XENFS
XEN_SYS_HYPERVISOR
XEN_DEV_EVTCHN
XEN_GNTDEV
XEN_GRANT_DEV_ALLOC
SWIOTLB_XEN
XEN_TMEMnot available on arm and arm64
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Can you clarify if you meant only
XEN_TMEMor all the above here?Only TMEM, sorry for being terse
That was listed as one of the example
Kconfigentries which are currently not available on other architectures despite not being architecture specific, the other one beingXEN_DEBUG_FS. So to be clear -- do we not wantXEN_TMEMfor arm in the future ?
Sure, but it is on nobody's roadmap at the moment.
Quoted 9 lines · Luis R. Rodriguez
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
XEN_PLATFORM_PCIdefinitely x86 only
All?
only
XEN_PLATFORM_PCIUpdated.
Then again commit 5fbdc10395cd500d6ff844825a918c4e6f38de37 removed this so its no longer relevant as its all folded under XEN_PVHVM
Luis