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".
26 #include <palacios/vmm_types.h>
27 #include <palacios/vmm_list.h>
39 } __attribute__((packed));
40 } __attribute__((packed));
41 } __attribute__((packed));
47 int (*read)(uint_t msr, struct v3_msr * dst, void * priv_data);
48 int (*write)(uint_t msr, struct v3_msr src, void * priv_data);
52 struct list_head link;
61 struct list_head hook_list;
65 void v3_init_msr_map(struct guest_info * info);
67 int v3_unhook_msr(struct guest_info * info, uint_t msr);
69 int v3_hook_msr(struct guest_info * info, uint_t msr,
70 int (*read)(uint_t msr, struct v3_msr * dst, void * priv_data),
71 int (*write)(uint_t msr, struct v3_msr src, void * priv_data),
75 struct v3_msr_hook * v3_get_msr_hook(struct guest_info * info, uint_t msr);
77 void v3_print_msr_map(struct guest_info * info);