2 * This file is part of the Palacios Virtual Machine Monitor developed
3 * by the V3VEE Project with funding from the United States National
4 * Science Foundation and the Department of Energy.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
10 * Copyright (c) 2008, Jack Lange <jarusl@cs.northwestern.edu>
11 * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org>
12 * All rights reserved.
14 * Author: Jack Lange <jarusl@cs.northwestern.edu>
16 * This is free software. You are permitted to use,
17 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
25 #include <palacios/vmm_types.h>
26 #include <palacios/vmm_list.h>
27 #include <palacios/vmm_string.h>
35 struct list_head dev_list;
38 struct list_head io_hooks;
41 struct list_head mem_hooks;
44 struct list_head msr_hooks;
50 // Registration of devices
53 // The following device manager functions should only be called
54 // when the guest is stopped
57 int v3_attach_device(struct guest_info *vm, struct vm_device * dev);
58 int v3_unattach_device(struct vm_device *dev);
68 int (*read)(ushort_t port, void * dst, uint_t length, struct vm_device * dev);
69 int (*write)(ushort_t port, void * src, uint_t length, struct vm_device * dev);
71 struct vm_device * dev;
73 // Do not touch anything below this
75 struct list_head dev_list;
76 struct list_head mgr_list;
83 struct vm_device * dev;
85 // Do not touch anything below this
86 struct list_head dev_list;
87 struct list_head mgr_list;
91 int v3_init_dev_mgr(struct guest_info * info);
92 int v3_dev_mgr_deinit(struct guest_info * info);
94 void PrintDebugDevMgr(struct guest_info * info);
95 void PrintDebugDev(struct vm_device * dev);
96 void PrintDebugDevIO(struct vm_device * dev);
97 void PrintDebugDevMgrIO(struct vmm_dev_mgr * mgr);