blob: c8175a458b3c24ed96aeb71564f7b72eda25a2c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
* Copyright (c) 2019 Amazon.com, Inc. or its affiliates. All rights reserved.
*
*/
#include "expect_config.h"
#include <xen/lib.h>
#include <xen/types.h>
#include <xen/version.h>
#include <xen/livepatch.h>
#include <xen/livepatch_payload.h>
#include <public/sysctl.h>
static const char livepatch_exceptions_str[] = "xen_extra_version";
extern const char *xen_hello_world(void);
struct livepatch_func __section(".livepatch.funcs") livepatch_exceptions = {
.version = LIVEPATCH_PAYLOAD_VERSION,
.name = livepatch_exceptions_str,
.new_addr = xen_hello_world,
.old_addr = xen_extra_version,
.new_size = EXPECT_BYTES_COUNT,
.old_size = EXPECT_BYTES_COUNT,
.expect = {
.enabled = 1,
.len = EXPECT_BYTES_COUNT,
.data = EXPECT_BYTES
},
};
/*
* Local variables:
* mode: C
* c-file-style: "BSD"
* c-basic-offset: 4
* tab-width: 4
* indent-tabs-mode: nil
* End:
*/
|