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-devel

RE: [Xen-devel] x86_64 SLES 9 SP2 build break

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>, "Ryan Harper" <ryanh@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] x86_64 SLES 9 SP2 build break
From: "Nakajima, Jun" <jun.nakajima@xxxxxxxxx>
Date: Fri, 19 Aug 2005 10:43:31 -0700
Cc: David F Barrera <dfbp@xxxxxxxxxx>
Delivery-date: Fri, 19 Aug 2005 17:41:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWkzyipthYk6y4gS0KtcLnlx8j0DAACnCDAAADdnvAAAPfTwAAAo1hgAABfQPA=
Thread-topic: [Xen-devel] x86_64 SLES 9 SP2 build break
Ian Pratt wrote:
>> If you are already working on it, I just add the missing
>> hypercall(s) to fix the build problems (and test reboot things).
> 
> I believe Steven has already done this.
> 
> Thanks,
> Ian

Actually that's wrong, and it does not build.
...
arch/xen/kernel/reboot.c: In function `__do_suspend':
include/asm-xen/asm/hypercall.h:511: error: can't find a register in
class `CREG' while reloading `asm'

You cannot just cut&paste the code there.

+static inline int
+HYPERVISOR_vcpu_pickle(
+    int vcpu, vcpu_guest_context_t *ctxt)
+{
+    int ret;
+    unsigned long ign1, ign2;
+    __asm__ __volatile__ (
+        TRAP_INSTR
+        : "=a" (ret), "=b" (ign1), "=c" (ign2)
+       : "0" (__HYPERVISOR_sched_op),
+         "1" (SCHEDOP_vcpu_pickle | (vcpu << SCHEDOP_vcpushift)),
+         "2" (ctxt)
+        : "memory" );
+
+    return ret;
+}
+

Jun
---
Intel Open Source Technology Center

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