From eab26d8a910f424a5f43eebf2d5e537015c7a0b4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 24 Oct 2007 14:10:01 +0100 Subject: [PATCH] x86/64: Fix the build. Signed-off-by: Keir Fraser --- xen/arch/x86/platform_hypercall.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/platform_hypercall.c b/xen/arch/x86/platform_hypercall.c index 4d155b0a98..f596368e14 100644 --- a/xen/arch/x86/platform_hypercall.c +++ b/xen/arch/x86/platform_hypercall.c @@ -298,15 +298,17 @@ ret_t do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op) struct vcpu *v; struct xenctl_cpumap ctlmap; cpumask_t cpumap; + XEN_GUEST_HANDLE(uint8_t) cpumap_bitmap; XEN_GUEST_HANDLE(uint64_t) idletimes; ret = -ENOSYS; if ( cpufreq_controller != FREQCTL_dom0_kernel ) break; - memset(&ctlmap, 0, sizeof(ctlmap)); ctlmap.nr_cpus = op->u.getidletime.cpumap_nr_cpus; - ctlmap.bitmap.p = op->u.getidletime.cpumap_bitmap.p; + guest_from_compat_handle(cpumap_bitmap, + op->u.getidletime.cpumap_bitmap); + ctlmap.bitmap.p = cpumap_bitmap.p; /* handle -> handle_64 conversion */ xenctl_cpumap_to_cpumask(&cpumap, &ctlmap); guest_from_compat_handle(idletimes, op->u.getidletime.idletime); -- 2.39.5