ia64/xen-unstable

view tools/libfsimage/common/fsimage_priv.h @ 19648:f0e2df69a8eb

x86 hvm: Allow cross-vendor migration

Intercept #UD and emulate SYSCALL/SYSENTER/SYSEXIT as necessary.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 26 15:01:36 2009 +0100 (2009-05-26)
parents 64f790e90d3d
children
line source
1 /*
2 * Permission is hereby granted, free of charge, to any person obtaining a copy
3 * of this software and associated documentation files (the "Software"), to
4 * deal in the Software without restriction, including without limitation the
5 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
6 * sell copies of the Software, and to permit persons to whom the Software is
7 * furnished to do so, subject to the following conditions:
8 *
9 * The above copyright notice and this permission notice shall be included in
10 * all copies or substantial portions of the Software.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18 * DEALINGS IN THE SOFTWARE.
19 *
20 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
21 * Use is subject to license terms.
22 */
24 #ifndef _FSIMAGE_PRIV_H
25 #define _FSIMAGE_PRIV_H
27 #ifdef __cplusplus
28 extern C {
29 #endif
31 #include <sys/types.h>
33 #include "fsimage.h"
34 #include "fsimage_plugin.h"
36 struct fsi_plugin {
37 const char *fp_name;
38 void *fp_dlh;
39 fsi_plugin_ops_t *fp_ops;
40 struct fsi_plugin *fp_next;
41 void *fp_data;
42 };
44 struct fsi {
45 int f_fd;
46 uint64_t f_off;
47 void *f_data;
48 fsi_plugin_t *f_plugin;
49 char *f_bootstring;
50 };
52 struct fsi_file {
53 fsi_t *ff_fsi;
54 void *ff_data;
55 };
57 int find_plugin(fsi_t *, const char *, const char *);
59 #ifdef __cplusplus
60 };
61 #endif
63 #endif /* _FSIMAGE_PRIV_H */