configure / meson: Move check for drm.h to meson.build
[qemu/ar7.git] / target / i386 / sev-stub.c
blobc1fecc2101ac7acc86c5bc06c038b037ff8ad7ff
1 /*
2 * QEMU SEV stub
4 * Copyright Advanced Micro Devices 2018
6 * Authors:
7 * Brijesh Singh <brijesh.singh@amd.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
14 #include "qemu/osdep.h"
15 #include "sev_i386.h"
17 SevInfo *sev_get_info(void)
19 return NULL;
22 bool sev_enabled(void)
24 return false;
27 uint64_t sev_get_me_mask(void)
29 return ~0;
32 uint32_t sev_get_cbit_position(void)
34 return 0;
37 uint32_t sev_get_reduced_phys_bits(void)
39 return 0;
42 char *sev_get_launch_measurement(void)
44 return NULL;
47 SevCapability *sev_get_capabilities(Error **errp)
49 error_setg(errp, "SEV is not available in this QEMU");
50 return NULL;
52 int sev_inject_launch_secret(const char *hdr, const char *secret,
53 uint64_t gpa, Error **errp)
55 return 1;