Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Xen PVH in Kernel #115182

Closed
clerie opened this issue Mar 5, 2021 · 0 comments
Closed

Enable Xen PVH in Kernel #115182

clerie opened this issue Mar 5, 2021 · 0 comments
Labels
6.topic: kernel The Linux kernel 6.topic: xen-project The Xen Project hypervisor

Comments

@clerie
Copy link
Member

clerie commented Mar 5, 2021

To optimize NixOS for running a bit tidier as a Xen guest, it would be nice to activate PVH.

Something like this should be enabled in the kernel config:

CONFIG_HYPERVISOR_GUEST=y
CONFIG_PARAVIRT=y
CONFIG_PARAVIRT_GUEST=y
CONFIG_PARAVIRT_SPINLOCKS=y
CONFIG_XEN=y
CONFIG_XEN_PVHVM=y
CONFIG_XEN_PVHVM_SMP=y
CONFIG_XEN_PVH=y

See https://wiki.xenproject.org/wiki/Linux_PVH

@veprbl veprbl added the 6.topic: kernel The Linux kernel label Mar 5, 2021
alyssais added a commit to alyssais/nixpkgs that referenced this issue Apr 4, 2021
I don't think there's any reason to have a seperate kernel variant
because of this, with all the maintenance burden that imposes.  Debian
and Fedora both enable all these options on their normal kernels.

Alias the Linux Xen attributes, so this change should be seemless for
people who were using the Xen kernels up to now.

All the Xen options are marked as optional anyway, so it should be
fine to try to enable them on non-x86 platforms as well.

Fixes: NixOS#115182
@FRidh FRidh closed this as completed in 5f24024 Apr 25, 2021
@SigmaSquadron SigmaSquadron added the 6.topic: xen-project The Xen Project hypervisor label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: kernel The Linux kernel 6.topic: xen-project The Xen Project hypervisor
Projects
None yet
Development

No branches or pull requests

3 participants