Skip to contentSkip to conversation

linux-yocto: added kernel configuration for KVM

PATCH In review Mihai Prica 2 participants 5 messages Jan 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 linux-yocto: added kernel configuration for KVM

---
 recipes-kernel/linux/linux-yocto_3.4.bbappend |    5 +++++
 1 file changed, 5 insertions(+)
recipes-kernel/linux/linux-yocto_3.4.bbappend +5 -0
index 5b163ff..bac7646 100644
@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \
 	    file://lxc.scc \
 	    "
 
+KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable"
+
+module_autoload_kvm = "kvm"
+module_autoload_kvm-amd = "kvm-amd"
+module_autoload_kvm-intel = "kvm-intel"
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v3 2/2 Created new target: kvm-image-minimal

---
 recipes-extended/images/kvm-image-minimal.bb |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 recipes-extended/images/kvm-image-minimal.bb
recipes-extended/images/kvm-image-minimal.bb new file +25 -0
new file mode 100644
index 0000000..abc0fee
@@ -0,0 +1,25 @@
+DESCRIPTION = "A minimal kvm image"
+
+IMAGE_INSTALL = " \
+    packagegroup-core-boot \
+    ${ROOTFS_PKGMANAGE_BOOTSTRAP} \
+    qemu \
+    libvirt \
+    libvirt-libvirtd \
+    libvirt-virsh \
+    kernel-module-kvm \
+    kernel-module-kvm-intel \
+    kernel-module-kvm-amd \
+    "
+
+IMAGE_FEATURES += "ssh-server-openssh"
+
+IMAGE_LINGUAS = " "
+
+LICENSE = "MIT"
+
+inherit core-image
+
+IMAGE_ROOTFS_SIZE = "8192"
+
+ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Mihai Prica
Quoted 12 lines · Mihai Prica
---
 recipes-kernel/linux/linux-yocto_3.4.bbappend |    5 +++++
 1 file changed, 5 insertions(+)
recipes-kernel/linux/linux-yocto_3.4.bbappend +0 -0
index 5b163ff..bac7646 100644

recipes-kernel/linux/linux-yocto_3.4.bbappend SRC_URI += "file://xt-checksum.scc \ · line 9

Quoted 4 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +1 -0
@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \
            file://lxc.scc \
            "
 
+KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable"

I can always change (and test this on merge), but I think if you double check the
last email on this patch, we want this to be:

KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"

No need for a v4, I can tweak it on the way in if you agree.

Cheers,

Bruce

Quoted 12 lines
recipes-kernel/linux/linux-yocto_3.4.bbappend +4 -1
+
+module_autoload_kvm = "kvm"
+module_autoload_kvm-amd = "kvm-amd"
+module_autoload_kvm-intel = "kvm-intel"
--

1.7.9.5

_______________________________________________
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

From: Bruce Ashfield [mailto:[email protected]]
Sent: Tuesday, January 29, 2013 3:50 PM
To: Prica, Mihai
Cc: [email protected]
Subject: Re: [meta-virtualization] [PATCH V3 1/2] linux-yocto: added kernel configuration for KVM

On Tue, Jan 29, 2013 at 7:55 AM, Mihai Prica <[email protected]<mailto:[email protected]>> wrote:

---
 recipes-kernel/linux/linux-yocto_3.4.bbappend |    5 +++++
 1 file changed, 5 insertions(+)
recipes-kernel/linux/linux-yocto_3.4.bbappend +1 -0
index 5b163ff..bac7646 100644
@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \
            file://lxc.scc \
            <file:///\\xt-checksum.scc%20\%0b %20 %20 %20 %20 %20 %20file:\lxc.scc%20\%0b %20 %20 %20 %20 %20 %20> "
 
+KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable"

I can always change (and test this on merge), but I think if you double check the last email on this patch, we want this to be:

KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"

No need for a v4, I can tweak it on the way in if you agree.

Yes, you're right. I don't know why I missed the scc, I copy-pasted the line from the v2 reply. If you could change it that would be great.

Thanks,
Mihai

Cheers,

Bruce

+
+module_autoload_kvm = "kvm"
+module_autoload_kvm-amd = "kvm-amd"
+module_autoload_kvm-intel = "kvm-intel"
--
1.7.9.5

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

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

#4 lore raw
Quoted 41 lines · Mihai

*From:* Bruce Ashfield [mailto:[email protected]]
*Sent:* Tuesday, January 29, 2013 3:50 PM
*To:* Prica, Mihai
*Cc:* [email protected]
*Subject:* Re: [meta-virtualization] [PATCH V3 1/2] linux-yocto: added kernel configuration for KVM****

** **

On Tue, Jan 29, 2013 at 7:55 AM, Mihai Prica <[email protected]> wrote:****

---
 recipes-kernel/linux/linux-yocto_3.4.bbappend |    5 +++++
 1 file changed, 5 insertions(+)
recipes-kernel/linux/linux-yocto_3.4.bbappend +1 -0
index 5b163ff..bac7646 100644
@@ -6,3 +6,8 @@ SRC_URI += "file://xt-checksum.scc \
            file://lxc.scc \
            "
 
+KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable"****

** **

I can always change (and test this on merge), but I think if you double check the****

last email on this patch, we want this to be: ****

** **

KERNEL_FEATURES_append = " features/kvm/qemu-kvm-enable.scc"****

** **

Quoted 9 lines

No need for a v4, I can tweak it on the way in if you agree.****

** **

Yes, you’re right. I don’t know why I missed the scc, I copy-pasted the line from the v2 reply. ****

If you could change it that would be great.

Done and merged. Much better response time on this version of the series :)

Bruce

Quoted 50 lines

****

** **

Thanks,****

Mihai****

** **

** **

Cheers,****

** **

Bruce****

****

recipes-kernel/linux/linux-yocto_3.4.bbappend +4 -1
+
+module_autoload_kvm = "kvm"
+module_autoload_kvm-amd = "kvm-amd"
+module_autoload_kvm-intel = "kvm-intel"
--

1.7.9.5

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

****

** **

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" ****

** **

** **

** **

** **

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