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

Re: [Xen-users] Attempt to apply xen-patches-2.6.34-4.tar.bz2 to 2.6.34.7 vanilla


  • To: Andrew Lyon <andrew.lyon@xxxxxxxxx>
  • From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
  • Date: Sun, 10 Oct 2010 07:35:55 -0700 (PDT)
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sun, 10 Oct 2010 07:37:15 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=sHrEu9VYP+IYIOKGFW02NOZzPyssBWuoli/OPeVlPJoeQaynL0srpkVUceWujIFmYPgOtuVGco2Vijs4tz5T5Wvo+y4354eve41zwX7uhXqQ/NGZyD+DRKxpTOUpRwsTowV09SLKupupoEor/kuiJb+tQtHD2kRZoh+tKEop6Ps=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Another way to disable this calls via include/linux/cpu.h , having CONFIG_HOTPLUG_CPU=y is to  change arch/x86/Kconfig :-

--- arch/x86/Kconfig.orig    2010-10-10 18:29:24.490068330 +0400
+++ arch/x86/Kconfig    2010-10-10 17:50:22.383715068 +0400
@@ -254,8 +254,8 @@
     def_bool X86_32
 
 config ARCH_CPU_PROBE_RELEASE
-    def_bool y
-    depends on HOTPLUG_CPU
+    def_bool n
+#    depends on HOTPLUG_CPU

Boris

--- On Sat, 10/9/10, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:

From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: [Xen-users] Attempt to apply xen-patches-2.6.34-4.tar.bz2 to 2.6.34.7 vanilla
To: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Saturday, October 9, 2010, 4:10 PM

. . . . . . . . . . . . . . .

  LD      drivers/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
drivers/built-in.o: In function `cpu_release_store':
/root/xenkernel/linux-2.6.34.7/drivers/base/cpu.c:96: undefined reference to `arch_cpu_release'
drivers/built-in.o: In function `cpu_probe_store':
/root/xenkernel/linux-2.6.34.7/drivers/base/cpu.c:88: undefined reference to `arch_cpu_probe'
drivers/built-in.o: In function `store_online':
/root/xenkernel/linux-2.6.34.7/drivers/base/cpu.c:42: undefined reference to `cpu_hotplug_driver_lock'
/root/xenkernel/linux-2.6.34.7/drivers/base/cpu.c:57: undefined reference to `cpu_hotplug_driver_unlock'
make: *** [.tmp_vmlinux1] Error 1


Commenting undefined references gives an option to build the 2.6.34.7 xenified aka Suse :-
--- cpu.c.orig    2010-10-09 23:31:26.641580071 +0400
+++ cpu.c    2010-10-10 00:02:40.913581011 +0400
@@ -39,7 +39,7 @@
     struct cpu *cpu = container_of(dev, struct cpu, sysdev);
     ssize_t ret;
 
-    cpu_hotplug_driver_lock();
+    /* cpu_hotplug_driver_lock(); */
     switch (buf[0]) {
     case '0':
         ret = cpu_down(cpu->sysdev.id);
@@ -54,7 +54,7 @@
     default:
         ret = -EINVAL;
     }
-    cpu_hotplug_driver_unlock();
+       /* cpu_hotplug_driver_unlock(); */
 
     if (ret >= 0)
         ret = count;
@@ -85,7 +85,8 @@
                    const char *buf,
                    size_t count)
 {
-    return arch_cpu_probe(buf, count);
+      /* return arch_cpu_probe(buf, count); */
+      return 0;
 }
 
 static ssize_t cpu_release_store(struct sysdev_class *class,
@@ -93,7 +94,8 @@
                  const char *buf,
                  size_t count)
 {
-    return arch_cpu_release(buf, count);
+      /* return arch_cpu_release(buf, count); */
+      return 0;
 }

Boris.





-----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.