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

RE: [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


 


Rackspace

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