X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_msr.h;h=00e1425a2fcffdd41c7088e2c95770707f9aab51;hb=5bc39eb312c57576e5d388594563df7dce5aaa2d;hp=56a1b30ed13b4a2bf3443eb9862c9866ee02e67e;hpb=5b6278751429f59297ce74e614d50632daea3748;p=palacios.git diff --git a/palacios/include/palacios/vmm_msr.h b/palacios/include/palacios/vmm_msr.h index 56a1b30..00e1425 100644 --- a/palacios/include/palacios/vmm_msr.h +++ b/palacios/include/palacios/vmm_msr.h @@ -30,27 +30,29 @@ struct guest_info; struct v3_msr { - union { - ullong_t value; + union { + ullong_t value; + + struct { + uint_t lo; + uint_t hi; + } __attribute__((packed)); + } __attribute__((packed)); +} __attribute__((packed)); - struct { - uint_t lo; - uint_t hi; - } ; - }; -}; +typedef struct v3_msr v3_msr_t; struct v3_msr_hook { - uint_t msr; + uint_t msr; - int (*read)(uint_t msr, struct v3_msr * dst, void * priv_data); - int (*write)(uint_t msr, struct v3_msr src, void * priv_data); + int (*read)(uint_t msr, struct v3_msr * dst, void * priv_data); + int (*write)(uint_t msr, struct v3_msr src, void * priv_data); - void * priv_data; + void * priv_data; - struct list_head link; + struct list_head link; }; @@ -58,8 +60,8 @@ struct v3_msr_hook { struct v3_msr_hook; struct v3_msr_map { - uint_t num_hooks; - struct list_head hook_list; + uint_t num_hooks; + struct list_head hook_list; };