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

kvm: Passthrough host CPU in order to allow nesting #2555

Merged
merged 4 commits into from
Feb 22, 2018

Commits on Feb 16, 2018

  1. kvm: Passthrough host CPU in order to allow nesting

    Before this patch the virtual CPU was the stock qemu CPU, in the sense that
    the virtual CPU features were set according to the default qemu CPU.
    
    With this change the CPU features of the host will be copied at start to the
    domain definition. This includes features like svm and vmx, which in turn allow
    to run nested virtualization if the host is configured accordingly i.e.
    `kvm_intel nested=y` in `/etc/modprobe.d/kvm.conf`.
    
    To turn on nesting, a user has to specify `--kvm-cpu-model host-model` when
    creating the VM.
    
    Resolves kubernetes#2553
    
    Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
    fabiand committed Feb 16, 2018
    Configuration menu
    Copy the full SHA
    7a4babe View commit details
    Browse the repository at this point in the history
  2. iso: Enable KVM

    This patch enables KVM support inside the ISO to support nesting.
    
    Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
    fabiand committed Feb 16, 2018
    Configuration menu
    Copy the full SHA
    5c5120d View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2018

  1. Revert "kvm: Passthrough host CPU in order to allow nesting"

    This reverts commit 7a4babe.
    
    For now we just hard-code passthrough.
    
    Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
    fabiand committed Feb 21, 2018
    Configuration menu
    Copy the full SHA
    5b004de View commit details
    Browse the repository at this point in the history
  2. kvm2: Switch to CPU passthrough mode by default

    With passthrough mode we can enable KVM nesting for guests.
    
    Fixes kubernetes#2553
    
    Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
    fabiand committed Feb 21, 2018
    Configuration menu
    Copy the full SHA
    4bc479a View commit details
    Browse the repository at this point in the history