]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
xen/dmop: Fix XEN_DMOP_nr_vcpus to actually return data
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Mar 2021 10:36:21 +0000 (10:36 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 4 Mar 2021 15:54:25 +0000 (15:54 +0000)
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 <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/arm/dm.c
xen/arch/x86/hvm/dm.c

index d689e336fd4b6c4d0f6f21d123032ee33e6f26e1..1b3fd6bc7d5a87f58113e974d28043b1be4a9bd7 100644 (file)
@@ -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;
     }
index f4f091046398aff932944217ad00f8bdc9abec33..b60b9f3364a84de1d0ffb5f1906ad43952c9dc4d 100644 (file)
@@ -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;
     }