public: restrict xen_arch_domainconfig visibility
authorJan Beulich <jbeulich@suse.com>
Fri, 22 May 2015 08:10:28 +0000 (10:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 May 2015 08:10:28 +0000 (10:10 +0200)
As an extension to 931f5777c7 ("public: clarify xen_arch_domainconfig
ABI statement") limit the respective definitions' visibility to
hypervisor and tools.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/public/arch-arm.h
xen/include/public/arch-x86/xen.h

index 2cbd3233870a1e143a64b093c69708c0836fbcb8..6f24c5f14f57381257860fa8c129177d659d8f91 100644 (file)
@@ -298,16 +298,6 @@ struct vcpu_guest_context {
 };
 typedef struct vcpu_guest_context vcpu_guest_context_t;
 DEFINE_XEN_GUEST_HANDLE(vcpu_guest_context_t);
-#endif
-
-struct arch_vcpu_info {
-};
-typedef struct arch_vcpu_info arch_vcpu_info_t;
-
-struct arch_shared_info {
-};
-typedef struct arch_shared_info arch_shared_info_t;
-typedef uint64_t xen_callback_t;
 
 /*
  * struct xen_arch_domainconfig's ABI is covered by
@@ -322,6 +312,16 @@ struct xen_arch_domainconfig {
     /* IN */
     uint32_t nr_spis;
 };
+#endif /* __XEN__ || __XEN_TOOLS__ */
+
+struct arch_vcpu_info {
+};
+typedef struct arch_vcpu_info arch_vcpu_info_t;
+
+struct arch_shared_info {
+};
+typedef struct arch_shared_info arch_shared_info_t;
+typedef uint64_t xen_callback_t;
 
 #endif
 
index 8a52c04c45b8a5199879816ba51a32e1c4c3c951..2ecc9c9199f31fc1173954e530732a6ff66290eb 100644 (file)
@@ -262,6 +262,7 @@ struct arch_shared_info {
 };
 typedef struct arch_shared_info arch_shared_info_t;
 
+#if defined(__XEN__) || defined(__XEN_TOOLS__)
 /*
  * struct xen_arch_domainconfig's ABI is covered by
  * XEN_DOMCTL_INTERFACE_VERSION.
@@ -269,6 +270,7 @@ typedef struct arch_shared_info arch_shared_info_t;
 struct xen_arch_domainconfig {
     char dummy;
 };
+#endif
 
 #endif /* !__ASSEMBLY__ */