-
Notifications
You must be signed in to change notification settings - Fork 884
KVM: Hypervisor support for KVM flavor #2684
Conversation
ae4a187
to
8064dda
Compare
The reason of failing Travis-CI check is:
CC @alban |
Validator glitch, coreos/git-validation#5 should fix it. I just restarted this job on travis. |
I kickstarted the Travis build, should be good now |
Travis is still failing. |
@jellonek It's related to git validation, but Semaphore is green, so it should be safe to merge after a review |
8064dda
to
ff3e56b
Compare
What stops you? Did you added |
@jellonek I was expecting to directly use this branch |
Mentioned branch is based on |
93798b0
to
4c52578
Compare
) | ||
|
||
func StartCmd(wdPath, name, kernelPath string, nds []kvm.NetDescriber, cpu, mem int64, debug bool) ([]string, error) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
superfluous newline
8508957
to
40fc66f
Compare
All tests passing |
[AS_HELP_STRING([--with-stage1-kvm-hypervisor], | ||
[hypervisor used by 'kvm' flavor; default and only option for now: 'lkvm'])], | ||
[RKT_STAGE1_KVM_HV="${withval}"], | ||
[RKT_STAGE1_KVM_HV='lkvm']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there're tabs on these lines, please use only spaces
LGTM after the nits |
40fc66f
to
0919e07
Compare
KernelParams []string | ||
} | ||
|
||
// InitKernelParams sets debug and common parameters passed to kernel and debug parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last thing: please remove the trailing " and debug parameters" and s/to kernel/to the kernel/.
0919e07
to
a29797f
Compare
Tests passed before and the changes afterwards were just cosmetic. Merging. |
It's good to see this in master :) |
\o/ On 20 July 2016 at 13:10, Michał Stachowski notifications@github.com
|
Here's the first PR in our plan to put some focus on qemu as a KVM hypervisor. Whole code is based on Michał Stachowski's (@mstachowski) work in #2592 ,and it's taken by me, due to the other activities inside our company that Michał must handle. We're also closing #2592.
This code provides a generic mechanism to use different kvm hypervisors (such as lkvm, qemu-kvm), to set it by passing proper option to ./configure (New configure option --with-stage1-kvm-hypervisor). This PR covers only implementation of KvmHypervisor type and a small refactor of kvm's part of init.go to match the new KvmHypervisor interface (lkvm is the only option that could be passed to --with-stage1-kvm-hypervisor and it's also default)
I fixed most of the review suggestions from #2592