Skip to contentSkip to conversation

xen: Break Xen kernel config into two parts: dom0 / guest.

RFC In review Philip Tricca 2 participants 6 messages Feb 12, 2014

lore
Share & tools
lore
#0 lore raw

cover xen: Break Xen kernel config into two parts: dom0 / guest.

Kernel configs for Xen VMs are often very different depending on their purpose. Dom0 and guest VMs are the most obvious lines to divide the config space on. This small patch set is an RFC to to get opinions on:
1) whether this is desired
2) whether or not the proposed approach is acceptable

I've broken the 'xen' distro feature up into two parts, one for dom0 the other for guest VMs. In the first patch the configs are functionally equivalent but some structure is presented for splitting the two up where desired in the future. The second patch splits the Xen PCI device passthrough config options between those that make sense for dom0 and those that make sense fo guest VMs.

Let me know what you all think.

Regards,
Philip

Philip Tricca (3):
xen: Create structure necessary to break Xen kernel config into dom0
/ guest.
xen: Split Xen PCI kernel config into dom0 / guest VM.
xen: Remove pciback kernel module from xen-image-minimal.

 recipes-extended/images/xen-image-minimal.bb    |    1 -
 recipes-kernel/linux/linux-yocto/xen-common.cfg |   51 +++++++++++++++++++++
 recipes-kernel/linux/linux-yocto/xen-dom0.cfg   |    2 +
 recipes-kernel/linux/linux-yocto/xen-dom0.scc   |    5 +++
 recipes-kernel/linux/linux-yocto/xen-guest.cfg  |    2 +
 recipes-kernel/linux/linux-yocto/xen-guest.scc  |    5 +++
 recipes-kernel/linux/linux-yocto/xen.cfg        |   54 -----------------------
 recipes-kernel/linux/linux-yocto/xen.scc        |    4 --
 recipes-kernel/linux/linux-yocto_3.10.bbappend  |    6 ++-
 9 files changed, 70 insertions(+), 60 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-common.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-dom0.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-dom0.scc
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-guest.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-guest.scc
 delete mode 100644 recipes-kernel/linux/linux-yocto/xen.cfg
 delete mode 100644 recipes-kernel/linux/linux-yocto/xen.scc
Signature · 1 line
1.7.10.4
#1 lore raw

RFC 1/3 xen: Create structure necessary to break Xen kernel config into dom0 / guest.

For now the config remains the same for both dom0 and guest DISTRO_FEATURES. This work provides the structure for migrating config options into the two different distro features as the need arises.

 create mode 100644 recipes-kernel/linux/linux-yocto/xen-common.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-dom0.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-dom0.scc
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-guest.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-guest.scc
 delete mode 100644 recipes-kernel/linux/linux-yocto/xen.cfg
 delete mode 100644 recipes-kernel/linux/linux-yocto/xen.scc
recipes-kernel/linux/linux-yocto/xen-common.cfg new file +54 -0
new file mode 100644
index 0000000..4e796b9
@@ -0,0 +1,54 @@
+###
+# linux 3.4, 3.8
+CONFIG_PARAVIRT_GUEST=y
+###
+
+###
+# linux 3.10
+CONFIG_HYPERVISOR_GUEST=y
+###
+
+CONFIG_PARAVIRT=y
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_XEN_PRIVILEGED_GUEST=y
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+CONFIG_PARAVIRT_CLOCK=y
+CONFIG_HIBERNATE_CALLBACKS=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=y
+CONFIG_SYS_HYPERVISOR=y
+CONFIG_XEN_BLKDEV_FRONTEND=y
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=y
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_MISC=y
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_IRQ=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_XEN_WDT=m
+CONFIG_FB_SYS_FILLRECT=y
+CONFIG_FB_SYS_COPYAREA=y
+CONFIG_FB_SYS_IMAGEBLIT=y
+CONFIG_FB_SYS_FOPS=y
+CONFIG_FB_DEFERRED_IO=y
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=y
+CONFIG_XEN_BACKEND=y
+CONFIG_XENFS=y
+CONFIG_XEN_COMPAT_XENFS=y
+CONFIG_XEN_SYS_HYPERVISOR=y
+CONFIG_XEN_XENBUS_FRONTEND=y
+CONFIG_XEN_GNTDEV=m
+CONFIG_XEN_GRANT_DEV_ALLOC=m
+CONFIG_SWIOTLB_XEN=y
+CONFIG_XEN_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=y
+CONFIG_XEN_ACPI_PROCESSOR=m
+CONFIG_XEN_MCE_LOG=y
+CONFIG_XEN_HAVE_PVMMU=y
recipes-kernel/linux/linux-yocto/xen-dom0.cfg new file +0 -0
new file mode 100644
index 0000000..e69de29
recipes-kernel/linux/linux-yocto/xen-dom0.scc new file +5 -0
new file mode 100644
index 0000000..a84b0cb
@@ -0,0 +1,5 @@
+define KFEATURE_DESCRIPTION "Xen dom0 Kernel Support"
+define KFEATURE_COMPATIBILITY arch
+
+kconf non-hardware xen-common.cfg
+kconf non-hardware xen-dom0.cfg
recipes-kernel/linux/linux-yocto/xen-guest.cfg new file +0 -0
new file mode 100644
index 0000000..e69de29
recipes-kernel/linux/linux-yocto/xen-guest.scc new file +5 -0
new file mode 100644
index 0000000..0edba0c
@@ -0,0 +1,5 @@
+define KFEATURE_DESCRIPTION "Xen Guest Kernel Support"
+define KFEATURE_COMPATIBILITY arch
+
+kconf non-hardware xen-common.cfg
+kconf non-hardware xen-guest.cfg
recipes-kernel/linux/linux-yocto/xen.cfg deleted +0 -54

54 lines not on this page · raw message

recipes-kernel/linux/linux-yocto/xen.scc deleted +0 -4
deleted file mode 100644
index b588e5d..0000000
@@ -1,4 +0,0 @@
-define KFEATURE_DESCRIPTION "Xen Kernel Support"
-define KFEATURE_COMPATIBILITY arch
-
-kconf non-hardware xen.cfg
recipes-kernel/linux/linux-yocto_3.10.bbappend +5 -1
index c029c05..e4ae462 100644
@@ -16,4 +16,8 @@ module_autoload_kvm-intel = "kvm-intel"
 KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}"
 
 # xen kernel support
-SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"
+SRC_URI += " \
+    ${@base_contains('DISTRO_FEATURES', 'xen-dom0', ' file://xen-dom0.scc', '', d)} \
+    ${@base_contains('DISTRO_FEATURES', 'xen-guest', ' file://xen-guest.scc', '', d)} \
+"
+
Signature · 1 line
1.7.10.4
#2 lore raw

Re: [RFC 1/3] xen: Create structure necessary to break Xen kernel config into dom0 / guest.

Quoted 4 lines · Philip Tricca

For now the config remains the same for both dom0 and guest DISTRO_FEATURES. This work provides the structure for migrating config options into the two different distro features as the need arises.

I have a similar split for KVM hosts and guests, the options are largely the same, but the flexibility is maintained for cases where they really do need to differ.

But here's a more general question, rather than having to trigger on distro features, why not separate the differences based on different machines ? (maybe that is what you are already doing, and I'm missing it).

i.e. for a KVM host, I use the "native" BSP + some kernel options. For the KVM guest, I have a x86-kvm-guest BSP that encapsulates the options and userspace that we want.

The kernel configurations and other changes you have here would be the same, but just with a different separation mechanism.

Cheers,

Bruce

Quoted 190 lines
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-common.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-dom0.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-dom0.scc
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-guest.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-guest.scc
 delete mode 100644 recipes-kernel/linux/linux-yocto/xen.cfg
 delete mode 100644 recipes-kernel/linux/linux-yocto/xen.scc
recipes-kernel/linux/linux-yocto/xen-common.cfg new file +54 -0
new file mode 100644
index 0000000..4e796b9
@@ -0,0 +1,54 @@
+###
+# linux 3.4, 3.8
+CONFIG_PARAVIRT_GUEST=y
+###
+
+###
+# linux 3.10
+CONFIG_HYPERVISOR_GUEST=y
+###
+
+CONFIG_PARAVIRT=y
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_XEN_PRIVILEGED_GUEST=y
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+CONFIG_PARAVIRT_CLOCK=y
+CONFIG_HIBERNATE_CALLBACKS=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=y
+CONFIG_SYS_HYPERVISOR=y
+CONFIG_XEN_BLKDEV_FRONTEND=y
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=y
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_MISC=y
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_IRQ=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_XEN_WDT=m
+CONFIG_FB_SYS_FILLRECT=y
+CONFIG_FB_SYS_COPYAREA=y
+CONFIG_FB_SYS_IMAGEBLIT=y
+CONFIG_FB_SYS_FOPS=y
+CONFIG_FB_DEFERRED_IO=y
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=y
+CONFIG_XEN_BACKEND=y
+CONFIG_XENFS=y
+CONFIG_XEN_COMPAT_XENFS=y
+CONFIG_XEN_SYS_HYPERVISOR=y
+CONFIG_XEN_XENBUS_FRONTEND=y
+CONFIG_XEN_GNTDEV=m
+CONFIG_XEN_GRANT_DEV_ALLOC=m
+CONFIG_SWIOTLB_XEN=y
+CONFIG_XEN_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=y
+CONFIG_XEN_ACPI_PROCESSOR=m
+CONFIG_XEN_MCE_LOG=y
+CONFIG_XEN_HAVE_PVMMU=y
recipes-kernel/linux/linux-yocto/xen-dom0.cfg new file +0 -0
new file mode 100644
index 0000000..e69de29
recipes-kernel/linux/linux-yocto/xen-dom0.scc new file +5 -0
new file mode 100644
index 0000000..a84b0cb
@@ -0,0 +1,5 @@
+define KFEATURE_DESCRIPTION "Xen dom0 Kernel Support"
+define KFEATURE_COMPATIBILITY arch
+
+kconf non-hardware xen-common.cfg
+kconf non-hardware xen-dom0.cfg
recipes-kernel/linux/linux-yocto/xen-guest.cfg new file +0 -0
new file mode 100644
index 0000000..e69de29
recipes-kernel/linux/linux-yocto/xen-guest.scc new file +5 -0
new file mode 100644
index 0000000..0edba0c
@@ -0,0 +1,5 @@
+define KFEATURE_DESCRIPTION "Xen Guest Kernel Support"
+define KFEATURE_COMPATIBILITY arch
+
+kconf non-hardware xen-common.cfg
+kconf non-hardware xen-guest.cfg
recipes-kernel/linux/linux-yocto/xen.cfg deleted +0 -54
deleted file mode 100644
index 4e796b9..0000000
@@ -1,54 +0,0 @@
-###
-# linux 3.4, 3.8
-CONFIG_PARAVIRT_GUEST=y
-###
-
-###
-# linux 3.10
-CONFIG_HYPERVISOR_GUEST=y
-###
-
-CONFIG_PARAVIRT=y
-CONFIG_XEN=y
-CONFIG_XEN_DOM0=y
-CONFIG_XEN_PRIVILEGED_GUEST=y
-CONFIG_XEN_PVHVM=y
-CONFIG_XEN_MAX_DOMAIN_MEMORY=500
-CONFIG_XEN_SAVE_RESTORE=y
-CONFIG_PARAVIRT_CLOCK=y
-CONFIG_HIBERNATE_CALLBACKS=y
-CONFIG_PCI_XEN=y
-CONFIG_XEN_PCIDEV_FRONTEND=y
-CONFIG_SYS_HYPERVISOR=y
-CONFIG_XEN_BLKDEV_FRONTEND=y
-CONFIG_XEN_BLKDEV_BACKEND=m
-CONFIG_XEN_NETDEV_FRONTEND=y
-CONFIG_XEN_NETDEV_BACKEND=m
-CONFIG_INPUT_MISC=y
-CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
-CONFIG_HVC_IRQ=y
-CONFIG_HVC_XEN=y
-CONFIG_HVC_XEN_FRONTEND=y
-CONFIG_XEN_WDT=m
-CONFIG_FB_SYS_FILLRECT=y
-CONFIG_FB_SYS_COPYAREA=y
-CONFIG_FB_SYS_IMAGEBLIT=y
-CONFIG_FB_SYS_FOPS=y
-CONFIG_FB_DEFERRED_IO=y
-CONFIG_XEN_FBDEV_FRONTEND=y
-CONFIG_XEN_BALLOON=y
-CONFIG_XEN_SCRUB_PAGES=y
-CONFIG_XEN_DEV_EVTCHN=y
-CONFIG_XEN_BACKEND=y
-CONFIG_XENFS=y
-CONFIG_XEN_COMPAT_XENFS=y
-CONFIG_XEN_SYS_HYPERVISOR=y
-CONFIG_XEN_XENBUS_FRONTEND=y
-CONFIG_XEN_GNTDEV=m
-CONFIG_XEN_GRANT_DEV_ALLOC=m
-CONFIG_SWIOTLB_XEN=y
-CONFIG_XEN_PCIDEV_BACKEND=m
-CONFIG_XEN_PRIVCMD=y
-CONFIG_XEN_ACPI_PROCESSOR=m
-CONFIG_XEN_MCE_LOG=y
-CONFIG_XEN_HAVE_PVMMU=y
recipes-kernel/linux/linux-yocto/xen.scc deleted +0 -4
deleted file mode 100644
index b588e5d..0000000
@@ -1,4 +0,0 @@
-define KFEATURE_DESCRIPTION "Xen Kernel Support"
-define KFEATURE_COMPATIBILITY arch
-
-kconf non-hardware xen.cfg
recipes-kernel/linux/linux-yocto_3.10.bbappend +5 -2
index c029c05..e4ae462 100644
@@ -16,4 +16,8 @@ module_autoload_kvm-intel = "kvm-intel"
 KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}"
 
 # xen kernel support
-SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"
+SRC_URI += " \
+    ${@base_contains('DISTRO_FEATURES', 'xen-dom0', ' file://xen-dom0.scc', '', d)} \
+    ${@base_contains('DISTRO_FEATURES', 'xen-guest', ' file://xen-guest.scc', '', d)} \
+"
+
--

1.7.10.4

_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#3 lore raw

Re: [RFC 1/3] xen: Create structure necessary to break Xen kernel config into dom0 / guest.

Quoted 6 lines · Bruce Ashfield
Quoted 4 lines · Philip Tricca

For now the config remains the same for both dom0 and guest DISTRO_FEATURES. This work provides the structure for migrating config options into the two different distro features as the need arises.

Quoted 7 lines

I have a similar split for KVM hosts and guests, the options are largely the same, but the flexibility is maintained for cases where they really do need to differ.

But here's a more general question, rather than having to trigger on distro features, why not separate the differences based on different machines ? (maybe that is what you are already doing, and I'm missing it).

No you're spot-on, didn't miss a thing.

Quoted 6 lines

i.e. for a KVM host, I use the "native" BSP + some kernel options. For the KVM guest, I have a x86-kvm-guest BSP that encapsulates the options and userspace that we want.

The kernel configurations and other changes you have here would be the same, but just with a different separation mechanism.

This sounds like a great suggestion. I'll take a look at what you all have done with KVM. It does sound like a better fit. I'll send out a v2 once I've got my head around using the machine mechanisms.

Thanks,
Philip

Quoted 192 lines
Quoted 189 lines
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-common.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-dom0.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-dom0.scc
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-guest.cfg
 create mode 100644 recipes-kernel/linux/linux-yocto/xen-guest.scc
 delete mode 100644 recipes-kernel/linux/linux-yocto/xen.cfg
 delete mode 100644 recipes-kernel/linux/linux-yocto/xen.scc
recipes-kernel/linux/linux-yocto/xen-common.cfg new file +54 -0
new file mode 100644
index 0000000..4e796b9
@@ -0,0 +1,54 @@
+###
+# linux 3.4, 3.8
+CONFIG_PARAVIRT_GUEST=y
+###
+
+###
+# linux 3.10
+CONFIG_HYPERVISOR_GUEST=y
+###
+
+CONFIG_PARAVIRT=y
+CONFIG_XEN=y
+CONFIG_XEN_DOM0=y
+CONFIG_XEN_PRIVILEGED_GUEST=y
+CONFIG_XEN_PVHVM=y
+CONFIG_XEN_MAX_DOMAIN_MEMORY=500
+CONFIG_XEN_SAVE_RESTORE=y
+CONFIG_PARAVIRT_CLOCK=y
+CONFIG_HIBERNATE_CALLBACKS=y
+CONFIG_PCI_XEN=y
+CONFIG_XEN_PCIDEV_FRONTEND=y
+CONFIG_SYS_HYPERVISOR=y
+CONFIG_XEN_BLKDEV_FRONTEND=y
+CONFIG_XEN_BLKDEV_BACKEND=m
+CONFIG_XEN_NETDEV_FRONTEND=y
+CONFIG_XEN_NETDEV_BACKEND=m
+CONFIG_INPUT_MISC=y
+CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
+CONFIG_HVC_IRQ=y
+CONFIG_HVC_XEN=y
+CONFIG_HVC_XEN_FRONTEND=y
+CONFIG_XEN_WDT=m
+CONFIG_FB_SYS_FILLRECT=y
+CONFIG_FB_SYS_COPYAREA=y
+CONFIG_FB_SYS_IMAGEBLIT=y
+CONFIG_FB_SYS_FOPS=y
+CONFIG_FB_DEFERRED_IO=y
+CONFIG_XEN_FBDEV_FRONTEND=y
+CONFIG_XEN_BALLOON=y
+CONFIG_XEN_SCRUB_PAGES=y
+CONFIG_XEN_DEV_EVTCHN=y
+CONFIG_XEN_BACKEND=y
+CONFIG_XENFS=y
+CONFIG_XEN_COMPAT_XENFS=y
+CONFIG_XEN_SYS_HYPERVISOR=y
+CONFIG_XEN_XENBUS_FRONTEND=y
+CONFIG_XEN_GNTDEV=m
+CONFIG_XEN_GRANT_DEV_ALLOC=m
+CONFIG_SWIOTLB_XEN=y
+CONFIG_XEN_PCIDEV_BACKEND=m
+CONFIG_XEN_PRIVCMD=y
+CONFIG_XEN_ACPI_PROCESSOR=m
+CONFIG_XEN_MCE_LOG=y
+CONFIG_XEN_HAVE_PVMMU=y
recipes-kernel/linux/linux-yocto/xen-dom0.cfg new file +0 -0
new file mode 100644
index 0000000..e69de29
recipes-kernel/linux/linux-yocto/xen-dom0.scc new file +5 -0
new file mode 100644
index 0000000..a84b0cb
@@ -0,0 +1,5 @@
+define KFEATURE_DESCRIPTION "Xen dom0 Kernel Support"
+define KFEATURE_COMPATIBILITY arch
+
+kconf non-hardware xen-common.cfg
+kconf non-hardware xen-dom0.cfg
recipes-kernel/linux/linux-yocto/xen-guest.cfg new file +0 -0
new file mode 100644
index 0000000..e69de29
recipes-kernel/linux/linux-yocto/xen-guest.scc new file +5 -0
new file mode 100644
index 0000000..0edba0c
@@ -0,0 +1,5 @@
+define KFEATURE_DESCRIPTION "Xen Guest Kernel Support"
+define KFEATURE_COMPATIBILITY arch
+
+kconf non-hardware xen-common.cfg
+kconf non-hardware xen-guest.cfg
recipes-kernel/linux/linux-yocto/xen.cfg deleted +0 -54
deleted file mode 100644
index 4e796b9..0000000
@@ -1,54 +0,0 @@
-###
-# linux 3.4, 3.8
-CONFIG_PARAVIRT_GUEST=y
-###
-
-###
-# linux 3.10
-CONFIG_HYPERVISOR_GUEST=y
-###
-
-CONFIG_PARAVIRT=y
-CONFIG_XEN=y
-CONFIG_XEN_DOM0=y
-CONFIG_XEN_PRIVILEGED_GUEST=y
-CONFIG_XEN_PVHVM=y
-CONFIG_XEN_MAX_DOMAIN_MEMORY=500
-CONFIG_XEN_SAVE_RESTORE=y
-CONFIG_PARAVIRT_CLOCK=y
-CONFIG_HIBERNATE_CALLBACKS=y
-CONFIG_PCI_XEN=y
-CONFIG_XEN_PCIDEV_FRONTEND=y
-CONFIG_SYS_HYPERVISOR=y
-CONFIG_XEN_BLKDEV_FRONTEND=y
-CONFIG_XEN_BLKDEV_BACKEND=m
-CONFIG_XEN_NETDEV_FRONTEND=y
-CONFIG_XEN_NETDEV_BACKEND=m
-CONFIG_INPUT_MISC=y
-CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y
-CONFIG_HVC_IRQ=y
-CONFIG_HVC_XEN=y
-CONFIG_HVC_XEN_FRONTEND=y
-CONFIG_XEN_WDT=m
-CONFIG_FB_SYS_FILLRECT=y
-CONFIG_FB_SYS_COPYAREA=y
-CONFIG_FB_SYS_IMAGEBLIT=y
-CONFIG_FB_SYS_FOPS=y
-CONFIG_FB_DEFERRED_IO=y
-CONFIG_XEN_FBDEV_FRONTEND=y
-CONFIG_XEN_BALLOON=y
-CONFIG_XEN_SCRUB_PAGES=y
-CONFIG_XEN_DEV_EVTCHN=y
-CONFIG_XEN_BACKEND=y
-CONFIG_XENFS=y
-CONFIG_XEN_COMPAT_XENFS=y
-CONFIG_XEN_SYS_HYPERVISOR=y
-CONFIG_XEN_XENBUS_FRONTEND=y
-CONFIG_XEN_GNTDEV=m
-CONFIG_XEN_GRANT_DEV_ALLOC=m
-CONFIG_SWIOTLB_XEN=y
-CONFIG_XEN_PCIDEV_BACKEND=m
-CONFIG_XEN_PRIVCMD=y
-CONFIG_XEN_ACPI_PROCESSOR=m
-CONFIG_XEN_MCE_LOG=y
-CONFIG_XEN_HAVE_PVMMU=y
recipes-kernel/linux/linux-yocto/xen.scc deleted +0 -4
deleted file mode 100644
index b588e5d..0000000
@@ -1,4 +0,0 @@
-define KFEATURE_DESCRIPTION "Xen Kernel Support"
-define KFEATURE_COMPATIBILITY arch
-
-kconf non-hardware xen.cfg
recipes-kernel/linux/linux-yocto_3.10.bbappend +5 -2
index c029c05..e4ae462 100644
@@ -16,4 +16,8 @@ module_autoload_kvm-intel = "kvm-intel"
 KERNEL_FEATURES_append += "${@base_contains('DISTRO_FEATURES', 'aufs', ' features/aufs/aufs-enable.scc', '', d)}"
 
 # xen kernel support
-SRC_URI += "${@base_contains('DISTRO_FEATURES', 'xen', ' file://xen.scc', '', d)}"
+SRC_URI += " \
+    ${@base_contains('DISTRO_FEATURES', 'xen-dom0', ' file://xen-dom0.scc', '', d)} \
+    ${@base_contains('DISTRO_FEATURES', 'xen-guest', ' file://xen-guest.scc', '', d)} \
+"
+
--

1.7.10.4

_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

#4 lore raw

RFC 2/3 xen: Split Xen PCI kernel config into dom0 / guest VM.

In reply to Philip Tricca

Dom0 kernel builds the PCI backend drive in directly and omits the frontend driver (what would be its backend?). The guest kernel builds the frontend in and the backend gets built as a module.

recipes-kernel/linux/linux-yocto/xen-common.cfg +0 -3
index 4e796b9..56ab040 100644
@@ -17,8 +17,6 @@ CONFIG_XEN_MAX_DOMAIN_MEMORY=500
 CONFIG_XEN_SAVE_RESTORE=y
 CONFIG_PARAVIRT_CLOCK=y
 CONFIG_HIBERNATE_CALLBACKS=y
-CONFIG_PCI_XEN=y
-CONFIG_XEN_PCIDEV_FRONTEND=y
 CONFIG_SYS_HYPERVISOR=y
 CONFIG_XEN_BLKDEV_FRONTEND=y
 CONFIG_XEN_BLKDEV_BACKEND=m
@@ -47,7 +45,6 @@ CONFIG_XEN_XENBUS_FRONTEND=y
 CONFIG_XEN_GNTDEV=m
 CONFIG_XEN_GRANT_DEV_ALLOC=m
 CONFIG_SWIOTLB_XEN=y
-CONFIG_XEN_PCIDEV_BACKEND=m
 CONFIG_XEN_PRIVCMD=y
 CONFIG_XEN_ACPI_PROCESSOR=m
 CONFIG_XEN_MCE_LOG=y
recipes-kernel/linux/linux-yocto/xen-dom0.cfg +2 -0
index e69de29..422b769 100644
@@ -0,0 +1,2 @@
+CONFIG_XEN_PCIDEV_BACKEND=y
+CONFIG_XEN_PCIDEV_FRONTEND=n
recipes-kernel/linux/linux-yocto/xen-guest.cfg +2 -0
index e69de29..edf1748 100644
@@ -0,0 +1,2 @@
+CONFIG_XEN_PCIDEV_BACKEND=m
+CONFIG_XEN_PCIDEV_FRONTEND=y
Signature · 1 line
1.7.10.4
#5 lore raw

RFC 3/3 xen: Remove pciback kernel module from xen-image-minimal.

In reply to Philip Tricca

The expectation is that this image would be built with the xen-dom0 distro feature and the pciback driver would be built into the kernel as a result.

recipes-extended/images/xen-image-minimal.bb +0 -1
index 13917c5..81e40ed 100644
@@ -10,7 +10,6 @@ IMAGE_INSTALL += " \
     kernel-module-xen-gntalloc \
     kernel-module-xen-gntdev \
     kernel-module-xen-netback \
-    kernel-module-xen-pciback \
     kernel-module-xen-wdt \
     xen-base \
     xen-qemu \
Signature · 1 line
1.7.10.4