aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mce.h
diff options
context:
space:
mode:
authorLiu, Jinsong <jinsong.liu@intel.com>2012-09-26 12:05:55 +0200
committerLiu, Jinsong <jinsong.liu@intel.com>2012-09-26 12:05:55 +0200
commit19b03acdd1cdb8a6c35a30079ae6d6fb72caa285 (patch)
tree734c7cb2e579c64fae4183bb4201eb9d98f01e2b /xen/include/asm-x86/mce.h
parent513e591c04d9d4f9ffe9ec282daaba798c30c176 (diff)
downloadxen-19b03acdd1cdb8a6c35a30079ae6d6fb72caa285.tar.gz
xen-19b03acdd1cdb8a6c35a30079ae6d6fb72caa285.tar.bz2
xen-19b03acdd1cdb8a6c35a30079ae6d6fb72caa285.zip
x86: vMCE save and restore
This patch provides vMCE save/restore when migration. 1. MCG_CAP is well-defined. However, considering future cap extension, we keep save/restore logic that Jan implement at c/s 24887; 2. MCi_CTL2 initialized by guestos when booting, so need save/restore otherwise guest would surprise; 3. Other MSRs do not need save/restore since they are either error- related and pointless to save/restore, or, unified among all vMCE platform; Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com> - fix handling of partial data in XEN_DOMCTL_set_ext_vcpucontext - fix adjustment of xen_domctl_ext_vcpucontext Signed-off-by: Jan Beulich <jbeulich@suse.com> Committed-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/include/asm-x86/mce.h')
-rw-r--r--xen/include/asm-x86/mce.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/mce.h b/xen/include/asm-x86/mce.h
index a4eea47782..549bef3ebe 100644
--- a/xen/include/asm-x86/mce.h
+++ b/xen/include/asm-x86/mce.h
@@ -33,7 +33,7 @@ struct vmce {
/* Guest vMCE MSRs virtualization */
extern void vmce_init_vcpu(struct vcpu *);
-extern int vmce_restore_vcpu(struct vcpu *, uint64_t caps);
+extern int vmce_restore_vcpu(struct vcpu *, const struct hvm_vmce_vcpu *);
extern int vmce_wrmsr(uint32_t msr, uint64_t val);
extern int vmce_rdmsr(uint32_t msr, uint64_t *val);