#include <public/elfnote.h>
#include <xsm/xsm.h>
#include <xen/cpu.h>
+#include <xen/lu.h>
#ifdef CONFIG_COMPAT
#include <compat/kexec.h>
#endif
static long kexec_live_update(void *_image)
{
struct kexec_image *image = _image;
+ int ret;
+
+ ret = lu_save_all(image);
+ if (ret)
+ return ret;
kexecing = TRUE;
--- /dev/null
+
+#include <xen/types.h>
+#include <xen/vmap.h>
+#include <xen/lu.h>
+#include <xen/kimage.h>
+#include <xen/sched.h>
+
+int lu_save_global(struct lu_stream *stream)
+{
+ return 0;
+}
+
+
+int lu_save_domain(struct lu_stream *stream, struct domain *d)
+{
+ return 0;
+}
+
+int lu_save_all(struct kexec_image *image)
+{
+ struct lu_stream stream;
+ struct domain *d;
+ int ret;
+
+ memset(&stream, 0, sizeof(stream));
+
+ ret = lu_save_global(&stream);
+
+ for_each_domain ( d )
+ {
+ if (ret)
+ break;
+
+ ret = lu_save_domain(&stream, d);
+ }
+
+ if (!ret)
+ ret = kimage_add_live_update_data(image,
+ _mfn(virt_to_mfn(stream.pagelist)),
+ stream.nr_pages);
+
+ if (ret)
+ lu_stream_free(&stream);
+
+ return ret;
+}
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
int lu_stream_append(struct lu_stream *stream, const void *data, size_t size);
void lu_stream_free(struct lu_stream *stream);
+struct kexec_image;
+int lu_save_all(struct kexec_image *image);
+
#endif /* __XEN_LU_H__ */
/*