On 01/08/18 14:50, Roger Pau Monné wrote:
> On Wed, Aug 01, 2018 at 02:29:35PM +0100, Andrew Cooper wrote:
>> domain_crash_synchronous() is unsafe to use in general as it may leave
>> spinlocks held, temporary memory allocated, etc.
>>
>> With domain_crash_synchronous() removed from the ARM code in 4.11, take the
>> opportunity to remove the infrastructure completely by opencoding the softirq
>> loop in the remaining callsites, all of which are destined for deletion.
>>
>> None of these sites are at risk of having a pending ioreq to qemu, which 
>> means
>> that the vcpu_end_shutdown_deferral() isn't necessary.
>>
>> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
> Reviewed-by: Roger Pau Monné <roger....@citrix.com>
>
> This however removes the printk with the file an line number from
> where the domain_crash was called. I don't think it's a big issue
> because each call site already has a message.

Removing the line number was the basis of this work originally.  It is a
problem for livepatching, as it causes excessively large binary deltas.

A followup which I've yet to refresh from its previous posting changes
domain_crash() to take a string to force all users to provide an
intelligent error, and swaps __LINE__ for __file__

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to