]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
libxl: Offer API versions 0x040700 and 0x040800
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 4 Oct 2019 14:30:22 +0000 (15:30 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Thu, 24 Oct 2019 15:08:41 +0000 (16:08 +0100)
According to git log -G:

0x040700 was introduced in 304400459ef0 (aka 4.7.0-rc1~481)
  "tools/libxl: rename remus device to checkpoint device"

0x040800 was introduced in 57f8b13c7240 (aka 4.8.0-rc1~437)
  "libxl: memory size in kb requires 64 bit variable"

It is surprising that no-one noticed this.

Anyway, in the meantime, we should fix it.  Backporting this is
probably a good idea: it won't change the behaviour for existing
callers but it will avoid errors for some older correct uses.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
tools/libxl/libxl.h

index 2555e9cd3b01e036ff6c58d618334ec49fd63527..518fc9e47f9f1cd98678ace1a8db6e2c663fb870 100644 (file)
@@ -655,6 +655,7 @@ typedef struct libxl__ctx libxl_ctx;
 #ifdef LIBXL_API_VERSION
 #if LIBXL_API_VERSION != 0x040200 && LIBXL_API_VERSION != 0x040300 && \
     LIBXL_API_VERSION != 0x040400 && LIBXL_API_VERSION != 0x040500 && \
+    LIBXL_API_VERSION != 0x040700 && LIBXL_API_VERSION != 0x040800 && \
     LIBXL_API_VERSION != 0x041300
 #error Unknown LIBXL_API_VERSION
 #endif