This pair of patches is long overdue being posted upstream. For several years
now, XenServer has shipped the 2nd patch as a safety check (seeing as we have
both livepatching and introspection), implemented with some return address
manipulation to turn a void load hook into one which can return -EBUSY.
Andrew Cooper (2):
xen/livepatch: Add a return value to load hooks
x86/livepatch: Prevent patching with active waitqueues
xen/arch/arm/livepatch.c | 5 +++++
xen/arch/x86/livepatch.c | 39 ++++++++++++++++++++++++++++++++++++
xen/common/livepatch.c | 37 ++++++++++++++++++++++++----------
xen/include/xen/livepatch.h | 1 +
xen/include/xen/livepatch_payload.h | 2 +-
xen/test/livepatch/xen_hello_world.c | 12 ++++++++---
6 files changed, 81 insertions(+), 15 deletions(-)
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel