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/livepatch.h>
10 
11 #include <public/sysctl.h>
12 
13 static const char xen_replace_world_name[] = "xen_extra_version";
14 extern const char *xen_replace_world(void);
15 
16 struct livepatch_func __section(".livepatch.funcs") livepatch_xen_replace_world = {
17     .version = LIVEPATCH_PAYLOAD_VERSION,
18     .name = xen_replace_world_name,
19     .old_addr = 0, /* Forces the hypervisor to lookup .name */
20     .new_addr = xen_replace_world,
21     .new_size = NEW_CODE_SZ,
22     .old_size = OLD_CODE_SZ,
23 };
24 
25 /*
26  * Local variables:
27  * mode: C
28  * c-file-style: "BSD"
29  * c-basic-offset: 4
30  * tab-width: 4
31  * indent-tabs-mode: nil
32  * End:
33  */
34