args.preempted is meaningless here as it doesn't signal whether the
hypercall was preempted before. Use start_extent instead which is
correct (as long as the hypercall was invoked in a "normal" way).
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
master commit:
76dbabb59eeaa78e9f57407e5b15a6606488333e
master date: 2020-03-18 12:55:54 +0100
}
#ifdef CONFIG_X86
- if ( pv_shim && op != XENMEM_decrease_reservation && !args.preempted )
- /* Avoid calling pv_shim_online_memory when preempted. */
+ if ( pv_shim && op != XENMEM_decrease_reservation && !start_extent )
+ /* Avoid calling pv_shim_online_memory when in a continuation. */
pv_shim_online_memory(args.nr_extents, args.extent_order);
#endif