debuggers.hg

view xen/include/asm-x86/mce.h @ 22855:1d1eec7e1fb4

xl: Perform minimal validation of virtual disk file while parsing config file

This patch performs some very basic validation on the virtual disk
file passed through the config file. This validation ensures that we
don't go too far with the initialization like spawn qemu and more
while there could be some potentially fundamental issues.

[ Patch fixed up to work with PHYSTYPE_EMPTY 22808:6ec61438713a -iwj ]

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Kamala Narasimhan <kamala.narasimhan@gmail.com>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents b04b81248078
children
line source
1 #include <xen/types.h>
2 #include <public/arch-x86/xen-mca.h>
3 #ifndef _XEN_X86_MCE_H
4 #define _XEN_X86_MCE_H
6 /* This entry is for recording bank nodes for the impacted domain,
7 * put into impact_header list. */
8 struct bank_entry {
9 struct list_head list;
10 uint16_t bank;
11 uint64_t mci_status;
12 uint64_t mci_addr;
13 uint64_t mci_misc;
14 };
16 struct domain_mca_msrs
17 {
18 /* Guest should not change below values after DOM boot up */
19 uint64_t mcg_cap;
20 uint64_t mcg_ctl;
21 uint64_t mcg_status;
22 uint64_t *mci_ctl;
23 uint16_t nr_injection;
24 struct list_head impact_header;
25 spinlock_t lock;
26 };
28 /* Guest vMCE MSRs virtualization */
29 extern int vmce_init_msr(struct domain *d);
30 extern void vmce_destroy_msr(struct domain *d);
31 extern int vmce_wrmsr(uint32_t msr, uint64_t val);
32 extern int vmce_rdmsr(uint32_t msr, uint64_t *val);
33 #endif