Skip to contentSkip to conversation

Libxl migration v2 support

RFC PATCH In review Andrew Cooper 2 participants 7 messages Sep 3, 2014 – Sep 4, 2014

lore
Share & tools
lore
#0 lore raw

cover Libxl migration v2 support

Presented here is a very RFC series (due to a lot of remaining TODOs) for libxl migration v2 support. It depends on the libxc migration v2 series.

Currently implemented:
* PV save/restore/migrate

Yet to implement
* HVM domains
* Conversion of legacy streams

It is presented here for preliminary review, mainly regarding the general approach. There are currently quite a few code hacks which should be resolved when Wei's domain json series is available. These areas are marked in the code.

 tools/libxl/libxl.c             |   13 +++
 tools/libxl/libxl.h             |   49 +++++++-
 tools/libxl/libxl_aoutils.c     |  118 ++++++++++++++++++++
 tools/libxl/libxl_create.c      |  234 +++++++++++++++++++++++++++++++++++++++
 tools/libxl/libxl_dom.c         |  160 +++++++++++++++++++++-----
 tools/libxl/libxl_internal.h    |   50 +++++++++
 tools/libxl/libxl_saverestore.h |   47 ++++++++
 tools/libxl/xl_cmdimpl.c        |   22 ++--
 8 files changed, 653 insertions(+), 40 deletions(-)
 create mode 100644 tools/libxl/libxl_saverestore.h

--
1.7.10.4

#1 lore raw

RFC PATCH 1/5 tools/libxl: Add support for writing a set of buffers asynchronously

From: Ross Lagerwall <[email protected]>

---
 tools/libxl/libxl_aoutils.c  |  118 ++++++++++++++++++++++++++++++++++++++++++
 tools/libxl/libxl_internal.h |   44 ++++++++++++++++
 2 files changed, 162 insertions(+)
tools/libxl/libxl_aoutils.c +118 -0
index b10d2e1..6027d05 100644
@@ -324,6 +324,124 @@ int libxl__datacopier_start(libxl__datacopier_state *dc)
     return rc;
 }
 
+
+/*----- writer -----*/
+
+void libxl__writer_kill(libxl__writer_state *dw)
+{
+    STATE_AO_GC(dw->ao);
+    libxl__writer_buf *buf, *tbuf;
+
+    libxl__ev_fd_deregister(gc, &dw->towrite);
+    LIBXL_TAILQ_FOREACH_SAFE(buf, &dw->bufs, entry, tbuf)
+        free(buf);
+    LIBXL_TAILQ_INIT(&dw->bufs);
+}
+
+void libxl__writer_append(libxl__egc *egc, libxl__writer_state *dw,
+                          const void *data, size_t len)
+{
+    EGC_GC;
+    libxl__writer_buf *buf;
+
+    assert(len < dw->maxsz - dw->used);
+
+    buf = libxl__zalloc(NOGC, sizeof(*buf));
+    buf->used = len;
+    memcpy(buf->buf, data, len);
+
+    dw->used += len;
+    LIBXL_TAILQ_INSERT_TAIL(&dw->bufs, buf, entry);
+}
+
+static int writer_pollhup_handled(libxl__egc *egc,
+                                  libxl__writer_state *dw,
+                                  short revents)
+{
+    STATE_AO_GC(dw->ao);
+
+    if (dw->callback_pollhup && (revents & POLLHUP)) {
+        LOG(DEBUG, "received POLLHUP on %s during writing of %s",
+            dw->towhat, dw->writewhat);
+        libxl__writer_kill(dw);
+        dw->callback_pollhup(egc, dw, 1, -1);
+        return 1;
+    }
+    return 0;
+}
+
+static void writer_writable(libxl__egc *egc, libxl__ev_fd *ev,
+                            int fd, short events, short revents) {
+    libxl__writer_state *dw = CONTAINER_OF(ev, *dw, towrite);
+    STATE_AO_GC(dw->ao);
+
+    if (writer_pollhup_handled(egc, dw, revents))
+        return;
+
+    if (revents & ~POLLOUT) {
+        LOG(ERROR, "unexpected poll event 0x%x (should be POLLOUT)"
+            " during writing %s to %s", revents, dw->writewhat, dw->towhat);
+        libxl__writer_kill(dw);
+        dw->callback(egc, dw, -1, 0);
+        return;
+    }
+    assert(revents & POLLOUT);
+    for (;;) {
+        libxl__writer_buf *buf = LIBXL_TAILQ_FIRST(&dw->bufs);
+        if (!buf) {
+            libxl__writer_kill(dw);
+            dw->callback(egc, dw, 0, 0);
+            break;
+        }
+        if (!buf->used) {
+            LIBXL_TAILQ_REMOVE(&dw->bufs, buf, entry);
+            free(buf);
+            continue;
+        }
+        int r = write(ev->fd, buf->buf, buf->used);
+        if (r < 0) {
+            if (errno == EINTR) continue;
+            if (errno == EWOULDBLOCK) break;
+            LOGE(ERROR, "error writing %s to %s",
+                 dw->writewhat, dw->towhat);
+            libxl__writer_kill(dw);
+            dw->callback(egc, dw, 1, errno);
+            return;
+        }
+        assert(r > 0);
+        assert(r <= buf->used);
+        buf->used -= r;
+        dw->used -= r;
+        assert(dw->used >= 0);
+        memmove(buf->buf, buf->buf+r, buf->used);
+    }
+}
+
+void libxl__writer_init(libxl__writer_state *dw)
+{
+    assert(dw->ao);
+    libxl__ev_fd_init(&dw->towrite);
+    LIBXL_TAILQ_INIT(&dw->bufs);
+}
+
+int libxl__writer_start(libxl__writer_state *dw)
+{
+    int rc;
+    STATE_AO_GC(dw->ao);
+
+    libxl__writer_init(dw);
+
+    rc = libxl__ev_fd_register(gc, &dw->towrite, writer_writable,
+                               dw->writefd, POLLOUT);
+    if (rc) goto out;
+
+    return 0;
+
+ out:
+    libxl__writer_kill(dw);
+    return rc;
+}
+
 /*----- openpty -----*/
 
 /* implementation */
tools/libxl/libxl_internal.h +44 -0

50 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#2 lore raw

Re: [PATCH VERY RFC 1/5] tools/libxl: Add support for writing a set of buffers asynchronously

At 09/04/2014 01:14 AM, Andrew Cooper Write:

Quoted 1 line

From: Ross Lagerwall <[email protected]>

If we allow datacopier's rfd is -1, we can use datacopier to implement it.

Quoted 192 lines
---
 tools/libxl/libxl_aoutils.c  |  118 ++++++++++++++++++++++++++++++++++++++++++
 tools/libxl/libxl_internal.h |   44 ++++++++++++++++
 2 files changed, 162 insertions(+)
tools/libxl/libxl_aoutils.c +118 -0
index b10d2e1..6027d05 100644
@@ -324,6 +324,124 @@ int libxl__datacopier_start(libxl__datacopier_state *dc)
     return rc;
 }
 
+
+/*----- writer -----*/
+
+void libxl__writer_kill(libxl__writer_state *dw)
+{
+    STATE_AO_GC(dw->ao);
+    libxl__writer_buf *buf, *tbuf;
+
+    libxl__ev_fd_deregister(gc, &dw->towrite);
+    LIBXL_TAILQ_FOREACH_SAFE(buf, &dw->bufs, entry, tbuf)
+        free(buf);
+    LIBXL_TAILQ_INIT(&dw->bufs);
+}
+
+void libxl__writer_append(libxl__egc *egc, libxl__writer_state *dw,
+                          const void *data, size_t len)
+{
+    EGC_GC;
+    libxl__writer_buf *buf;
+
+    assert(len < dw->maxsz - dw->used);
+
+    buf = libxl__zalloc(NOGC, sizeof(*buf));
+    buf->used = len;
+    memcpy(buf->buf, data, len);
+
+    dw->used += len;
+    LIBXL_TAILQ_INSERT_TAIL(&dw->bufs, buf, entry);
+}
+
+static int writer_pollhup_handled(libxl__egc *egc,
+                                  libxl__writer_state *dw,
+                                  short revents)
+{
+    STATE_AO_GC(dw->ao);
+
+    if (dw->callback_pollhup && (revents & POLLHUP)) {
+        LOG(DEBUG, "received POLLHUP on %s during writing of %s",
+            dw->towhat, dw->writewhat);
+        libxl__writer_kill(dw);
+        dw->callback_pollhup(egc, dw, 1, -1);
+        return 1;
+    }
+    return 0;
+}
+
+static void writer_writable(libxl__egc *egc, libxl__ev_fd *ev,
+                            int fd, short events, short revents) {
+    libxl__writer_state *dw = CONTAINER_OF(ev, *dw, towrite);
+    STATE_AO_GC(dw->ao);
+
+    if (writer_pollhup_handled(egc, dw, revents))
+        return;
+
+    if (revents & ~POLLOUT) {
+        LOG(ERROR, "unexpected poll event 0x%x (should be POLLOUT)"
+            " during writing %s to %s", revents, dw->writewhat, dw->towhat);
+        libxl__writer_kill(dw);
+        dw->callback(egc, dw, -1, 0);
+        return;
+    }
+    assert(revents & POLLOUT);
+    for (;;) {
+        libxl__writer_buf *buf = LIBXL_TAILQ_FIRST(&dw->bufs);
+        if (!buf) {
+            libxl__writer_kill(dw);
+            dw->callback(egc, dw, 0, 0);
+            break;
+        }
+        if (!buf->used) {
+            LIBXL_TAILQ_REMOVE(&dw->bufs, buf, entry);
+            free(buf);
+            continue;
+        }
+        int r = write(ev->fd, buf->buf, buf->used);
+        if (r < 0) {
+            if (errno == EINTR) continue;
+            if (errno == EWOULDBLOCK) break;
+            LOGE(ERROR, "error writing %s to %s",
+                 dw->writewhat, dw->towhat);
+            libxl__writer_kill(dw);
+            dw->callback(egc, dw, 1, errno);
+            return;
+        }
+        assert(r > 0);
+        assert(r <= buf->used);
+        buf->used -= r;
+        dw->used -= r;
+        assert(dw->used >= 0);
+        memmove(buf->buf, buf->buf+r, buf->used);
+    }
+}
+
+void libxl__writer_init(libxl__writer_state *dw)
+{
+    assert(dw->ao);
+    libxl__ev_fd_init(&dw->towrite);
+    LIBXL_TAILQ_INIT(&dw->bufs);
+}
+
+int libxl__writer_start(libxl__writer_state *dw)
+{
+    int rc;
+    STATE_AO_GC(dw->ao);
+
+    libxl__writer_init(dw);
+
+    rc = libxl__ev_fd_register(gc, &dw->towrite, writer_writable,
+                               dw->writefd, POLLOUT);
+    if (rc) goto out;
+
+    return 0;
+
+ out:
+    libxl__writer_kill(dw);
+    return rc;
+}
+
 /*----- openpty -----*/
 
 /* implementation */
tools/libxl/libxl_internal.h +44 -0
index 04c9378..47fbf45 100644
@@ -2471,6 +2471,50 @@ typedef struct libxl__save_helper_state {
                       * marshalling and xc callback functions */
 } libxl__save_helper_state;
 
+/*----- writer: writes a set of buffers to an fd asynchronously -----*/
+
+typedef struct libxl__writer_state libxl__writer_state;
+typedef struct libxl__writer_buf libxl__writer_buf;
+
+/* onwrite==1 means failure happened when writing, logged, errnoval is valid
+ * onwrite==-1 means some other internal failure, errnoval not valid, logged
+ * If we get POLLHUP, we call callback_pollhup(..., 1, -1);
+ * or if callback_pollhup==0 this is an internal failure, as above.
+ * In all cases copier is killed before calling this callback */
+typedef void libxl__writer_callback(libxl__egc *egc,
+     libxl__writer_state *dw, int state, int errnoval);
+
+struct libxl__writer_buf {
+    /* private to writer */
+    LIBXL_TAILQ_ENTRY(libxl__writer_buf) entry;
+    int used;
+    char buf[1000];
+};
+
+struct libxl__writer_state {
+    /* caller must fill these in, and they must all remain valid */
+    libxl__ao *ao;
+    int writefd;
+    ssize_t maxsz;
+    const char *towhat, *writewhat; /* for error msgs */
+    libxl__writer_callback *callback;
+    libxl__writer_callback *callback_pollhup;
+    /* remaining fields are private to writer */
+    libxl__ev_fd towrite;
+    ssize_t used;
+    LIBXL_TAILQ_HEAD(libxl__writer_bufs, libxl__writer_buf) bufs;
+};
+
+_hidden void libxl__writer_init(libxl__writer_state *dc);
+_hidden void libxl__writer_kill(libxl__writer_state *dc);
+_hidden int libxl__writer_start(libxl__writer_state *dc);
+
+/* Inserts literal data into the output stream.  The data is copied.
+ * May safely be used only immediately after libxl__writer_start
+ * (before the ctx is unlocked).  But may be called multiple times.
+ * NB exceeding maxsz will fail an assertion! */
+_hidden void libxl__writer_append(libxl__egc*, libxl__writer_state*,
+                                  const void *data, size_t len);
 
 /*----- Domain suspend (save) state structure -----*/
 
#3 lore raw

RFC PATCH 2/5 tools/libxl: Stream v2 format

In reply to Andrew Cooper

From: Ross Lagerwall <[email protected]>

TODO: Namespacing

---
 tools/libxl/libxl_saverestore.h |   47 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 tools/libxl/libxl_saverestore.h
tools/libxl/libxl_saverestore.h new file +47 -0
new file mode 100644
index 0000000..31a22d6
@@ -0,0 +1,47 @@
+#ifndef LIBXL_SAVERESTORE_H
+#define LIBXL_SAVERESTORE_H
+
+#include <stdint.h>
+
+/* Definitions for LibXenLight Domain Image Format version 2 */
+struct restore_hdr
+{
+    uint64_t ident;
+    uint32_t version;
+    uint32_t options;
+};
+
+struct restore_rec_hdr
+{
+    uint32_t type;
+    uint32_t length;
+};
+
+struct restore_emulator_hdr
+{
+    uint32_t id;
+    uint32_t index;
+};
+
+#define REC_TYPE_END                 0x00000000U
+#define REC_TYPE_DOMAIN_JSON         0x00000001U
+#define REC_TYPE_LIBXC_CONTEXT       0x00000002U
+#define REC_TYPE_XENSTORE_DATA       0x00000003U
+#define REC_TYPE_EMULATOR_CONTEXT    0x00000004U
+
+/* All records must be aligned up to an 8 octet boundary */
+#define REC_ALIGN_ORDER              3U
+
+#define ROUNDUP(_x,_w) (((unsigned long)(_x)+(1UL<<(_w))-1) & ~((1UL<<(_w))-1))
+
+#define EMULATOR_UNKNOWN             0x00000000U
+#define EMULATOR_QEMU_TRADITIONAL    0x00000001U
+#define EMULATOR_QEMU_UPSTREAM       0x00000002U
+
+#define RESTORE_STREAM_IDENT         0x4c6962786c466d74UL
+#define RESTORE_STREAM_VERSION       0x00000002U
+
+#define RESTORE_OPT_BIG_ENDIAN       (1 << 0)
+#define RESTORE_OPT_LEGACY           (1 << 1)
+
+#endif
Signature · 1 line
1.7.10.4
#4 lore raw

RFC PATCH 3/5 tools/libxl: Implement libxl_domain_restore() for v2 streams

In reply to Andrew Cooper

TODO:
* Make it asynchronous
* Integrate with the json series
* Support for HVM elements

---
 tools/libxl/libxl.c          |   13 +++
 tools/libxl/libxl.h          |   12 +++
 tools/libxl/libxl_create.c   |  234 ++++++++++++++++++++++++++++++++++++++++++
 tools/libxl/libxl_internal.h |    5 +
 4 files changed, 264 insertions(+)
tools/libxl/libxl.c +13 -0
index 2ae5fca..209d56a 100644
@@ -878,6 +878,19 @@ int libxl_domain_suspend(libxl_ctx *ctx, uint32_t domid, int fd, int flags,
     return AO_ABORT(rc);
 }
 
+/*
+ * Restore a domain from an fd using the LibXenLight Domain Image Format v2.
+ * Returns 0 on success, non-zero otherwise.
+ */
+int libxl_domain_restore(libxl_ctx *ctx,
+                         libxl_domain_config *d_config, /* TMP until json is sorted */
+                         int restore_fd, uint32_t *domid,
+                         const libxl_asyncop_how *ao_how,
+                         const libxl_asyncprogress_how *aop_console_how)
+{
+    return libxl__domain_restore(ctx, restore_fd, domid, d_config);
+}
+
 int libxl_domain_pause(libxl_ctx *ctx, uint32_t domid)
 {
     int ret;
tools/libxl/libxl.h +12 -0
index 460207b..fb14a91 100644
@@ -857,6 +857,18 @@ int static inline libxl_domain_create_restore_0x040200(
 
 #endif
 
+/* Restore from a v2 stream
+ *
+ * TODO - Make this function properly asynchronous, and remove d_config
+ * parameter.
+ */
+int libxl_domain_restore(libxl_ctx *ctx,
+                         libxl_domain_config *d_config, /* TMP until json is sorted */
+                         int restore_fd, uint32_t *domid,
+                         const libxl_asyncop_how *ao_how,
+                         const libxl_asyncprogress_how *aop_console_how)
+                         LIBXL_EXTERNAL_CALLERS_ONLY;
+
   /* A progress report will be made via ao_console_how, of type
    * domain_create_console_available, when the domain's primary
    * console is available and can be connected to.
tools/libxl/libxl_create.c +234 -0

246 lines not on this page · raw message

tools/libxl/libxl_internal.h +5 -0
index 47fbf45..4128373 100644
@@ -2876,6 +2876,11 @@ _hidden void libxl__domain_save_device_model(libxl__egc *egc,
 
 _hidden const char *libxl__device_model_savefile(libxl__gc *gc, uint32_t domid);
 
+/*----- Domain restore functions -----*/
+/* TODO - make this asychronous */
+_hidden int libxl__domain_restore(libxl_ctx *ctx, int fd, uint32_t *domid,
+                                  libxl_domain_config *d_config /* TMP until json is sorted */
+    );
 
 /*
  * Convenience macros.
Signature · 1 line
1.7.10.4
#5 lore raw

RFC PATCH 4/5 tools/xl: Restore v2 streams using new libxl_domain_restore() interface

In reply to Andrew Cooper
---
 tools/libxl/xl_cmdimpl.c |   21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)
tools/libxl/xl_cmdimpl.c +14 -7
index e6b9615..8e0a6bb 100644
@@ -136,6 +136,8 @@ static const char *action_on_shutdown_names[] = {
 
 #define SAVEFILE_BYTEORDER_VALUE ((uint32_t)0x01020304UL)
 
+#define SAVEFILE_MANDATORY_STREAMV2 (1 << 0)
+
 struct domain_create {
     int debug;
     int daemonize;
@@ -2115,7 +2117,7 @@ static uint32_t create_domain(struct domain_create *dom_info)
                 restore_source, hdr.mandatory_flags, hdr.optional_flags,
                 hdr.optional_data_len);
 
-        badflags = hdr.mandatory_flags & ~( 0 /* none understood yet */ );
+        badflags = hdr.mandatory_flags & ~SAVEFILE_MANDATORY_STREAMV2;
         if (badflags) {
             fprintf(stderr, "Savefile has mandatory flag(s) 0x%"PRIx32" "
                     "which are not supported; need newer xl\n",
@@ -2245,12 +2247,17 @@ start:
     }
 
     if ( restoring ) {
-        libxl_domain_restore_params params;
-        params.checkpointed_stream = dom_info->checkpointed_stream;
-        ret = libxl_domain_create_restore(ctx, &d_config,
-                                          &domid, restore_fd,
-                                          &params,
-                                          0, autoconnect_console_how);
+        if ( hdr.mandatory_flags & SAVEFILE_MANDATORY_STREAMV2 ) {
+            ret = libxl_domain_restore(ctx, &d_config, restore_fd, &domid,
+                                       0, autoconnect_console_how);
+        } else {
+            libxl_domain_restore_params params;
+            params.checkpointed_stream = dom_info->checkpointed_stream;
+            ret = libxl_domain_create_restore(ctx, &d_config,
+                                              &domid, restore_fd,
+                                              &params,
+                                              0, autoconnect_console_how);
+        }
         /*
          * On subsequent reboot etc we should create the domain, not
          * restore/migrate-receive it again.
Signature · 1 line
1.7.10.4
#6 lore raw

RFC PATCH 5/5 tools/[lib]xl: Alter libxl_domain_suspend() to write a v2 stream

In reply to Andrew Cooper

From: Ross Lagerwall <[email protected]>

Note that for now, the xl header and device config blob at the beginning of the stream is still written out since we don't have any domain JSON yet.

Note that because of the removal of legacy xc_domain_save() from libxc, there is no possible way to support the legacy behaviour of libxl_domain_save() with older LIBXL_API versions. Bail with a clear error instead of substituing a legacy stream with a v2 stream under the feet of an unsuspecting application.

---
 tools/libxl/libxl.h          |   37 ++++++++--
 tools/libxl/libxl_dom.c      |  160 +++++++++++++++++++++++++++++++++++-------
 tools/libxl/libxl_internal.h |    1 +
 tools/libxl/xl_cmdimpl.c     |    1 +
 4 files changed, 166 insertions(+), 33 deletions(-)
tools/libxl/libxl.h +31 -6
index fb14a91..98f586e 100644
@@ -837,7 +837,15 @@ int libxl_domain_create_restore(libxl_ctx *ctx, libxl_domain_config *d_config,
                                 const libxl_asyncprogress_how *aop_console_how)
                                 LIBXL_EXTERNAL_CALLERS_ONLY;
 
-#if defined(LIBXL_API_VERSION) && LIBXL_API_VERSION < 0x040400
+#if defined(LIBXL_API_VERSION)
+
+/*
+ * The legacy xc_domain_restore() has disappeared, as it was completely unfit
+ * for purpose.  Instead of leaving a subtle surprise for libxl consumers using
+ * older API versions, fail early with a clear error.
+ */
+
+#if LIBXL_API_VERSION < 0x040400
 
 int static inline libxl_domain_create_restore_0x040200(
     libxl_ctx *ctx, libxl_domain_config *d_config,
@@ -846,15 +854,32 @@ int static inline libxl_domain_create_restore_0x040200(
     const libxl_asyncprogress_how *aop_console_how)
     LIBXL_EXTERNAL_CALLERS_ONLY
 {
-    libxl_domain_restore_params params;
-    params.checkpointed_stream = 0;
-
-    return libxl_domain_create_restore(
-        ctx, d_config, domid, restore_fd, &params, ao_how, aop_console_how);
+    LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
+               "The legacy save/restore format is not supported. "
+               "Please update to the v2 interface");
+    return ERROR_FAIL;
 }
 
 #define libxl_domain_create_restore libxl_domain_create_restore_0x040200
 
+#elif LIBXL_API_VERSION < 0x040500
+
+int static inline libxl_domain_create_restore(
+    libxl_ctx *ctx, libxl_domain_config *d_config,
+    uint32_t *domid, int restore_fd,
+    const libxl_domain_restore_params *params,
+    const libxl_asyncop_how *ao_how,
+    const libxl_asyncprogress_how *aop_console_how)
+    LIBXL_EXTERNAL_CALLERS_ONLY
+{
+    LIBXL__LOG(ctx, LIBXL__LOG_ERROR,
+               "The legacy save/restore format is not supported. "
+               "Please update to the v2 interface");
+    return ERROR_FAIL;
+}
+
+#endif
+
 #endif
 
 /* Restore from a v2 stream
tools/libxl/libxl_dom.c +133 -27

201 lines not on this page · raw message

tools/libxl/libxl_internal.h +1 -0
index 4128373..29ba2ac 100644
@@ -2562,6 +2562,7 @@ struct libxl__domain_suspend_state {
     /* private for libxl__domain_save_device_model */
     libxl__save_device_model_cb *save_dm_callback;
     libxl__datacopier_state save_dm_datacopier;
+    libxl__writer_state writer;
 };
 
 
tools/libxl/xl_cmdimpl.c +1 -0
index 8e0a6bb..691a2a0 100644
@@ -3410,6 +3410,7 @@ static void save_domain_core_writeconfig(int fd, const char *source,
     memset(&hdr, 0, sizeof(hdr));
     memcpy(hdr.magic, savefileheader_magic, sizeof(hdr.magic));
     hdr.byteorder = SAVEFILE_BYTEORDER_VALUE;
+    hdr.mandatory_flags = SAVEFILE_MANDATORY_STREAMV2;
 
     optdata_begin= 0;
 
Signature · 1 line
1.7.10.4