WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

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

To: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Subject: [Xen-users] Attempt to apply xen-patches-2.6.34-4.tar.bz2 to 2.6.34.7 vanilla
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Sat, 9 Oct 2010 13:10:19 -0700 (PDT)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 09 Oct 2010 13:11:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1286655020; bh=hhXK4sFdPmaDycIXBgMSDSXke0jNgkBosngHofG3Yb4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=m9rZoCwht3URp+2Zl9mdG0gBHJz4j2h+48/yK9Z5HPE+c97pO9ZBRyU3irgSFRqAtmeGU/swQ7QzLq10/nuWQ2dU6ABMb0SZEk26T8a+YBwXCTDDG2ThuXCXNit7dTf8e8L8ZzZ7P42JCON7Wh2/r+Mx6Tl6eZRpfV5hAsgbm+M=
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=coRAjYVT8fxeF4Y1EutmeiITxMgHauhfwg+LXxnkwDEM/9SXYSiqdlTXEHLPiKAKAEGfIXxMcC1YVp+UdhXj4LoekQOULF5yUjCtPanoQicvksFhcwSaZZXBy0J6wTBUgIvlQwrk1qTwox2kMURuclCnePLpyZGCDE5vCqnNeY0=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f4527be0911130539g4c95afa1q93679d3b73255a6b@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
. . . . . . . . . . . . . . .

  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.




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