direct-io.hg

view tools/xcutils/xc_save.c @ 7477:5a7baecb1c70

Fix an issue for passing arguement from control panel to deivce model
for some arguemnt like 'localtime', 'isa', device model need an argument
"-localtime", instead of "-localtime 1"
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun Oct 23 16:51:47 2005 +0100 (2005-10-23)
parents 06d84bf87159
children a51fcb5de470
line source
1 /*
2 * This file is subject to the terms and conditions of the GNU General
3 * Public License. See the file "COPYING" in the main directory of
4 * this archive for more details.
5 *
6 * Copyright (C) 2005 by Christian Limpach
7 *
8 */
10 #include <err.h>
11 #include <stdlib.h>
12 #include <stdint.h>
13 #include <stdio.h>
15 #include <xenguest.h>
17 int
18 main(int argc, char **argv)
19 {
20 unsigned int xc_fd, io_fd, domid, maxit, max_f, flags;
22 if (argc != 7)
23 errx(1, "usage: %s xcfd iofd domid maxit maxf flags", argv[0]);
25 xc_fd = atoi(argv[1]);
26 io_fd = atoi(argv[2]);
27 domid = atoi(argv[3]);
28 maxit = atoi(argv[4]);
29 max_f = atoi(argv[5]);
30 flags = atoi(argv[6]);
32 return xc_linux_save(xc_fd, io_fd, domid, maxit, max_f, flags);
33 }