1 /* 2 * Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. 3 * 4 */ 5 6 #include "config.h" 7 #include <xen/lib.h> 8 #include <xen/types.h> 9 #include <xen/version.h> 10 #include <xen/livepatch.h> 11 12 #include <public/sysctl.h> 13 14 static const char bye_world_patch_this_fnc[] = "xen_extra_version"; 15 extern const char *xen_bye_world(void); 16 17 struct livepatch_func __section(".livepatch.funcs") livepatch_xen_bye_world = { 18 .version = LIVEPATCH_PAYLOAD_VERSION, 19 .name = bye_world_patch_this_fnc, 20 .new_addr = xen_bye_world, 21 .old_addr = xen_extra_version, 22 .new_size = NEW_CODE_SZ, 23 .old_size = OLD_CODE_SZ, 24 }; 25 26 /* 27 * Local variables: 28 * mode: C 29 * c-file-style: "BSD" 30 * c-basic-offset: 4 31 * tab-width: 4 32 * indent-tabs-mode: nil 33 * End: 34 */ 35