Add Gunyah-specific distro configuration#306
Conversation
|
At present, KVM is a
Given that this is effectively an If conditionally enabling |
Well, you didn't write any of this in the commit message. That's why we are always asking to start the commit message from the description of the issue or the problem that is being solved.
Here you have two different items:
Those two items (ideally) should be independent. The first one is (correctly) controlled by the
I think, the correct way to fix your problem would be to make machines use MACHINE_FEATURES to control kvm vs gunyah XBL config, enable |
|
There is only one place in image_types_qcom.bbclass where the KVM distro feature is checked. |
|
@vkraleti if you are switching to MACHINE_FEATURES, there is no need to check for DISTRO_FEATURES anymore. |
Agreed. Check of both MACHINE_FEATURES & DISTRO_FEATURES is needed in short term for transition till all KLMT boards are ready to switch to default KVM. Post that qcom-disto-kvm can be completely dropped. |
No. We can drop it now. Enable KVM parts of the distro by default and let machines dictate if Gunyah or KVM XBL config is installed by default. |
…ation Enable selection of Gunyah-based virtualization as an alternative to KVM for platform validation across boards. Define qcom-distro-gunyah.conf modeled after the KVM variant. It enables the 'gunyah' as part of DISTRO_FEATURES and provides a dedicated configuration for Gunyah-based builds. Declare mutual exclusion between KVM and Gunyah using CONFLICT_DISTRO_FEATURES to prevent invalid configurations. Signed-off-by: Viswanath Kraleti <viswanath.kraleti@oss.qualcomm.com>
| DISTRO_NAME:append = " (KVM-enabled)" | ||
|
|
||
| # Gunyah and KVM are mutually exclusive | ||
| DISTRO_FEATURES:remove = "gunyah" |
There was a problem hiding this comment.
Why do we need :remove here? What is going to add those?
There was a problem hiding this comment.
Not at this point. But when kvm is enabled by default in #314, both kvm and gunyah may endup in distro - - features. Moved :remove to PR#314 for better alignment.
Enable selection of Gunyah-based virtualization as an alternative to KVM for platform validation across boards. Define qcom-distro-gunyah.conf modeled after the KVM variant. It enables the 'gunyah' as part of DISTRO_FEATURES and provides a dedicated configuration for Gunyah-based builds. Declare mutual exclusion between KVM and Gunyah using CONFLICT_DISTRO_FEATURES to prevent invalid configurations. Signed-off-by: Viswanath Kraleti <viswanath.kraleti@oss.qualcomm.com>
| @@ -0,0 +1,8 @@ | |||
| DISTRO_FEATURES:append = " \ | |||
| gunyah \ | |||
There was a problem hiding this comment.
I don't see why this is needed yet, nothing else depend on it.
There was a problem hiding this comment.
POR is still to support both hypervisors. Once kvm is default, builds with gunyah are still needed for interested users. Thus this DISTRO_FEATURE is defined. A refrence usage is in qualcomm-linux/meta-qcom@4f52095
|
@ricardosalveti @lumag Thank you for the offline discussion. As suggested, we will hold this PR for now. I’ve updated #314 to make |
|
Will move to draft then! |
Define qcom-distro-gunyah modeled after the KVM variant. It enables the 'gunyah' DISTRO_FEATURE and provides a dedicated configuration for Gunyah-based builds.