ia64/xen-unstable

view tools/xenstore/xenstore_control.c @ 19731:01748ccc4da3

Intel VT-d: fix Stoakley boot issue with iommu=1

Signed-off-by: Weidong Han <Weidong.han@intel.com>
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 05 09:25:50 2009 +0100 (2009-06-05)
parents 1a1e3dcbbf19
children
line source
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 #include "xs.h"
8 int main(int argc, char **argv)
9 {
10 struct xs_handle * xsh;
12 if (argc < 2 ||
13 strcmp(argv[1], "check"))
14 {
15 fprintf(stderr,
16 "Usage:\n"
17 "\n"
18 " %s check\n"
19 "\n", argv[0]);
20 return 2;
21 }
23 xsh = xs_daemon_open();
25 if (xsh == NULL) {
26 fprintf(stderr, "Failed to contact Xenstored.\n");
27 return 1;
28 }
30 xs_debug_command(xsh, argv[1], NULL, 0);
32 xs_daemon_close(xsh);
34 return 0;
35 }