direct-io.hg

changeset 10331:e913081f20f3

[LINUX] Correctly return the results of {event_channel_op,physdev_op}_compat

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian.Campbell@xensource.com
date Tue Jun 13 10:14:20 2006 +0100 (2006-06-13)
parents cede50ca1704
children 833d05bdb4a4
files linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h	Mon Jun 12 18:32:47 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h	Tue Jun 13 10:14:20 2006 +0100
     1.3 @@ -255,6 +255,7 @@ HYPERVISOR_event_channel_op(
     1.4  		op.cmd = cmd;
     1.5  		memcpy(&op.u, arg, sizeof(op.u));
     1.6  		rc = _hypercall1(int, event_channel_op_compat, &op);
     1.7 +		memcpy(arg, &op.u, sizeof(op.u));
     1.8  	}
     1.9  	return rc;
    1.10  }
    1.11 @@ -290,6 +291,7 @@ HYPERVISOR_physdev_op(
    1.12  		op.cmd = cmd;
    1.13  		memcpy(&op.u, arg, sizeof(op.u));
    1.14  		rc = _hypercall1(int, physdev_op_compat, &op);
    1.15 +		memcpy(arg, &op.u, sizeof(op.u));
    1.16  	}
    1.17  	return rc;
    1.18  }
     2.1 --- a/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h	Mon Jun 12 18:32:47 2006 +0100
     2.2 +++ b/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h	Tue Jun 13 10:14:20 2006 +0100
     2.3 @@ -253,6 +253,7 @@ HYPERVISOR_event_channel_op(
     2.4  		op.cmd = cmd;
     2.5  		memcpy(&op.u, arg, sizeof(op.u));
     2.6  		rc = _hypercall1(int, event_channel_op_compat, &op);
     2.7 +		memcpy(arg, &op.u, sizeof(op.u));
     2.8  	}
     2.9  	return rc;
    2.10  }
    2.11 @@ -288,6 +289,7 @@ HYPERVISOR_physdev_op(
    2.12  		op.cmd = cmd;
    2.13  		memcpy(&op.u, arg, sizeof(op.u));
    2.14  		rc = _hypercall1(int, physdev_op_compat, &op);
    2.15 +		memcpy(arg, &op.u, sizeof(op.u));
    2.16  	}
    2.17  	return rc;
    2.18  }