blob: eac8d1ad2b6320ab81c9e563fcd799404cbbcc97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file "COPYING" in the main directory of
* this archive for more details.
*
* Copyright (C) 2005 by Christian Limpach
*
*/
#include <err.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <xenguest.h>
int
main(int argc, char **argv)
{
unsigned int xc_fd, io_fd, domid, maxit, max_f, flags;
if (argc != 7)
errx(1, "usage: %s xcfd iofd domid maxit maxf flags", argv[0]);
xc_fd = atoi(argv[1]);
io_fd = atoi(argv[2]);
domid = atoi(argv[3]);
maxit = atoi(argv[4]);
max_f = atoi(argv[5]);
flags = atoi(argv[6]);
return xc_linux_save(xc_fd, io_fd, domid, maxit, max_f, flags);
}
|