[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Another questions about qemu for armhf



Hi folks,

just another question about the qemu binary package included in the
current/latest distribution of debian jessie for armhf.

In this blog post

http://blog.flexvdi.com/2015/03/17/enabling-kvm-virtualization-on-the-raspberry-pi-2/

I read about a patch for qemu which should ensure qemu runs my guest in
the core I isolated with option isolcpus. The related patch is based on
qemu-2.2.0.tar.bz2 which can be downloaded form here

   http://wiki.qemu-project.org/download/qemu-2.2.0.tar.bz2

The patch itself contains this content:

------------------------------------------------------------------------

--- qemu-2.2.0/kvm-all.c    2014-12-09 14:45:42.000000000 +0000
+++ qemu-2.2.0.bak/kvm-all.c    2015-03-17 16:44:26.090954294 +0000
@@ -1739,9 +1739,14 @@
 {
     struct kvm_run *run = cpu->kvm_run;
     int ret, run_ret;
+    cpu_set_t kvm_set;

     DPRINTF("kvm_cpu_exec()\n");

+    CPU_ZERO(&kvm_set);
+    CPU_SET(3, &kvm_set);
+    sched_setaffinity(0, sizeof(cpu_set_t), &kvm_set);
+
     if (kvm_arch_process_async_events(cpu)) {
         cpu->exit_request = 0;
         return EXCP_HLT;

------------------------------------------------------------------------

I think the author of the blog post mentioned above is using qemu 2.2
sources. But, as I figured out, the current/latest binary of qemu for
debian jessie on armhf architecture is 1:2.1+dfsg-12+deb8u1 i.e. it's
based on qemu 2.1 sources.

- How can I figure out if it's really necessary to patch the debian
  qemu 1:2.1+dfsg-12+deb8u1 source code with the patch mentioned above?

- If so, how can I figure out if the patch code fit's to the source
  of qemu ver. 2.1 used as base for latest debian qemu binary package?

- Are these tasks which would be done by the package maintainer usually
  and if so, how can I ask/notify her/him?

Please, keep in mind I want to stay as possible to the binaries
distributed by the debian community and want to patch my only if it's
totally necessary.

Again, thanks for any feedback in advance. I hope my questions are not
to stupid for you experienced guys here on the lists.

Greetinx

Guido


Reply to: