]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/include: define new handle param
authorLuca Miccio <206497@studenti.unimore.it>
Thu, 3 Oct 2019 17:01:08 +0000 (19:01 +0200)
committerLuca Miccio <206497@studenti.unimore.it>
Mon, 6 Jan 2020 13:59:40 +0000 (14:59 +0100)
During domU creation process the colors selection has to be passed to
the Xen hypercall. This selection is defined as an array. We need thus
to pass the pointer to Xen and make it accessible in its memory space.
This is generally done using what Xen calls GUEST_HANDLE_PARAMS. Add a
new parameter that allows us to pass both the colors array and the
number of elements in it.

Signed-off-by: Luca Miccio <206497@studenti.unimore.it>
Signed-off-by: Marco Solieri <marco.solieri@unimore.it>
xen/include/public/arch-arm.h

index c365b1b39eaa6238188aed4b3f4dd526ac482ece..66dde535a9a90957a4e606a79594755a593796b4 100644 (file)
@@ -299,6 +299,13 @@ struct vcpu_guest_context {
 typedef struct vcpu_guest_context vcpu_guest_context_t;
 DEFINE_XEN_GUEST_HANDLE(vcpu_guest_context_t);
 
+__DEFINE_XEN_GUEST_HANDLE(col, uint32_t);
+
+struct color_guest_config {
+    uint32_t max_colors;
+    XEN_GUEST_HANDLE(col) colors;
+};
+
 /*
  * struct xen_arch_domainconfig's ABI is covered by
  * XEN_DOMCTL_INTERFACE_VERSION.
@@ -331,6 +338,8 @@ struct xen_arch_domainconfig {
      *
      */
     uint32_t clock_frequency;
+
+    struct color_guest_config colors;
 };
 #endif /* __XEN__ || __XEN_TOOLS__ */