xen/dmop: Fix XEN_DMOP_nr_vcpus to actually return data
PATCH 1/2 xen/dmop: Fix XEN_DMOP_nr_vcpus to actually return data
The const_op boolean needs clobbering to cause data to be written back to the caller.
Fixes c4441ab1f1 ("dmop: Add XEN_DMOP_nr_vcpus")
Signed-off-by Andrew Cooper <[email protected]>
Reviewed-by Roger Pau Monné <[email protected]>
Release-Acked-by Ian Jackson <[email protected]>
--- xen/arch/arm/dm.c | 1 + xen/arch/x86/hvm/dm.c | 1 + 2 files changed, 2 insertions(+)
xen/arch/arm/dm.c +1 -0
@@ -128,6 +128,7 @@ int dm_op(const struct dmop_args *op_args)struct xen_dm_op_nr_vcpus *data = &op.u.nr_vcpus; data->vcpus = d->max_vcpus; + const_op = false; rc =0 ;break ; }
xen/arch/x86/hvm/dm.c +1 -0
@@ -612,6 +612,7 @@ int dm_op(const struct dmop_args *op_args)struct xen_dm_op_nr_vcpus *data = &op.u.nr_vcpus; data->vcpus = d->max_vcpus; + const_op = false; rc =0 ;break ; }
Signature · 1 line
2.11.0
Quoted 7 lines · Andrew Cooper
The
const_opboolean needs clobbering to cause data to be written back to the caller.Fixes c4441ab1f1 ("dmop: Add XEN_DMOP_nr_vcpus")Signed-off-by Andrew Cooper <[email protected]>Reviewed-by Roger Pau Monné <[email protected]>Release-Acked-by Ian Jackson <[email protected]>
Apologies - I made a mistake with git-send-email. No further action required.
~Andrew