Skip to contentSkip to conversation

Fix compilation failure caused by GUEST_HANDLE

PATCH In review Tian, Kevin 2 participants 2 messages Apr 28, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation failure caused by GUEST_HANDLE

Recent GUEST_HANDLE related cset broke ia64 compilation on xen-unstable.hg. This patch fixes it.

Signed-off-by Kevin Tian <[email protected]>

Thanks,
Kevin

Recent GUEST_HANDLE related cset broke ia64 compilation on xen-unstable.hg. This patch fixes it.

Signed-off-by Kevin Tian <[email protected]>

linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h +3 -2
diff -r e0d986fc0978 linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h
@@ -101,13 +101,14 @@
 	evtchn_port_t *ports, unsigned int nr_ports, u64 timeout)
 {
 	struct sched_poll sched_poll = {
-		.ports = ports,
 		.nr_ports = nr_ports,
 		.timeout = jiffies_to_st(timeout)
 	};
 
-	int rc = HYPERVISOR_sched_op(SCHEDOP_poll, &sched_poll);
+	int rc;
 
+	SET_XEN_GUEST_HANDLE(sched_poll.ports, ports);
+	rc = HYPERVISOR_sched_op(SCHEDOP_poll, &sched_poll);
 	if (rc == -ENOSYS)
 		rc = HYPERVISOR_sched_op_compat(SCHEDOP_yield, 0);
 
tools/libxc/xc_ia64_stubs.c +2 -2
diff -r e0d986fc0978 tools/libxc/xc_ia64_stubs.c
@@ -75,7 +75,7 @@
         op.cmd = DOM0_GETMEMLIST;
         op.u.getmemlist.domain   = (domid_t)domid;
         op.u.getmemlist.max_pfns = max_pfns;
-        op.u.getmemlist.buffer   = __pfn_buf;
+        SET_XEN_GUEST_HANDLE(op.u.getmemlist.buffer, __pfn_buf);
 
         if ( (max_pfns != -1UL)
             && mlock(__pfn_buf, __nr_pages * sizeof(unsigned long)) != 0 )
@@ -729,7 +729,7 @@
 
     launch_op.u.setvcpucontext.domain = (domid_t)domid;
     launch_op.u.setvcpucontext.vcpu   = 0;
-    launch_op.u.setvcpucontext.ctxt   = ctxt;
+    SET_XEN_GUEST_HANDLE(launch_op.u.setvcpucontext.ctxt, ctxt);
 
     launch_op.cmd = DOM0_SETVCPUCONTEXT;
     rc = do_dom0_op(xc_handle, &launch_op);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 2 lines · Kevin

Recent GUEST_HANDLE related cset broke ia64 compilation on xen-unstable.hg. This patch fixes it.

I tried to keep everything working but I guess missed a couple spots; sorry about that.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center