 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 05/20] arm64/alternatives: Make it possible to patch outside of hypervisor.
 Hi Konrad, On 25/08/16 14:37, Konrad Rzeszutek Wilk wrote: With livepatching the alternatives that should be patched are outside the Xen hypervisor _start -> _end. As such having to use an alternative VA is not neccessary. In fact we s/neccessary/necessary/ I think this is quite fragile because __alt_instructions is part of the init section. So after runtime, those regions could be reallocated for other purposes. I thought a bit more about the issue, each alt_instr contains a relative offset. So it would be possible to re-map the region in __apply_alternatives_multi_stop and passed the re-map the region to __apply_alternatives.Furthermore, I think it is safe to mandate apply_alternatives to work only read-write region. So we could simplify the hacky code I wrote to workaround the Write permissions implies execute-never. Let me try to write a patch to see if my solution works. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |