]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
plumb through libxl ex-processor-masks3
authorPaul Durrant <pdurrant@amazon.com>
Wed, 11 Nov 2020 17:51:13 +0000 (17:51 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Wed, 11 Nov 2020 17:51:13 +0000 (17:51 +0000)
Signed-off-by: Paul Durrant <pdurrant@amazon.com>
tools/include/libxl.h
tools/libs/light/libxl_types.idl
tools/libs/light/libxl_x86.c

index 1ea5b4f446e8f3447a9f223caed6b92b10d0cdb4..eaffccb30f37b0a00f8a23fe7a46a2d74d1cb247 100644 (file)
  */
 #define LIBXL_HAVE_DISK_SAFE_REMOVE 1
 
+/*
+ * LIBXL_HAVE_VIRIDIAN_EX_PROCESSOR_MASKS indicates that the
+ * 'ex_processor_masks' value is present in the viridian enlightenment
+ * enumeration.
+ */
+#define LIBXL_HAVE_VIRIDIAN_EX_PROCESSOR_MASKS 1
+
 /*
  * libxl ABI compatibility
  *
index 9d3f05f3997829b1e637f5d610b26a8276e948c1..05324736b744cc999231cc13c1fa35bfe5b6f4f1 100644 (file)
@@ -238,6 +238,7 @@ libxl_viridian_enlightenment = Enumeration("viridian_enlightenment", [
     (7, "synic"),
     (8, "stimer"),
     (9, "hcall_ipi"),
+    (10, "ex_processor_masks"),
     ])
 
 libxl_hdtype = Enumeration("hdtype", [
index e18274cc10e2b2d979c1be52ac712733ce92e965..86d272999d6778f9db7c88a73862ad89f9fa58e0 100644 (file)
@@ -366,6 +366,9 @@ static int hvm_set_viridian_features(libxl__gc *gc, uint32_t domid,
     if (libxl_bitmap_test(&enlightenments, LIBXL_VIRIDIAN_ENLIGHTENMENT_HCALL_IPI))
         mask |= HVMPV_hcall_ipi;
 
+    if (libxl_bitmap_test(&enlightenments, LIBXL_VIRIDIAN_ENLIGHTENMENT_EX_PROCESSOR_MASKS))
+        mask |= HVMPV_ex_processor_masks;
+
     if (mask != 0 &&
         xc_hvm_param_set(CTX->xch,
                          domid,