1 /*
2  * QEMU Confidential Guest support
3  *   This interface describes the common pieces between various
4  *   schemes for protecting guest memory or other state against a
5  *   compromised hypervisor.  This includes memory encryption (AMD's
6  *   SEV and Intel's MKTME) or special protection modes (PEF on POWER,
7  *   or PV on s390x).
8  *
9  * Copyright Red Hat.
10  *
11  * Authors:
12  *  David Gibson <david@gibson.dropbear.id.au>
13  *
14  * This work is licensed under the terms of the GNU GPL, version 2 or
15  * later.  See the COPYING file in the top-level directory.
16  *
17  */
18 #ifndef QEMU_CONFIDENTIAL_GUEST_SUPPORT_H
19 #define QEMU_CONFIDENTIAL_GUEST_SUPPORT_H
20 
21 #ifndef CONFIG_USER_ONLY
22 
23 #include "qom/object.h"
24 
25 #define TYPE_CONFIDENTIAL_GUEST_SUPPORT "confidential-guest-support"
26 OBJECT_DECLARE_SIMPLE_TYPE(ConfidentialGuestSupport, CONFIDENTIAL_GUEST_SUPPORT)
27 
28 struct ConfidentialGuestSupport {
29     Object parent;
30 };
31 
32 typedef struct ConfidentialGuestSupportClass {
33     ObjectClass parent;
34 } ConfidentialGuestSupportClass;
35 
36 #endif /* !CONFIG_USER_ONLY */
37 
38 #endif /* QEMU_CONFIDENTIAL_GUEST_SUPPORT_H */
39