summaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorBen Serebrin <serebrin@google.com>2015-04-16 11:58:05 -0700
committerSasha Levin <sasha.levin@oracle.com>2015-06-28 13:39:27 -0400
commitac54513c498163cb043c2564d8062596a788f4a2 (patch)
treee40cbd398843fd4324a2f64b7b1a9feb8df65f23 /include/linux/compiler.h
parent63753fac67e11fb6bac3d5c6a48bd319d9e612c2 (diff)
KVM: VMX: Preserve host CR4.MCE value while in guest mode.
[ Upstream commit 085e68eeafbf76e21848ad5bafaecec88a11dd64 ] The host's decision to enable machine check exceptions should remain in force during non-root mode. KVM was writing 0 to cr4 on VCPU reset and passed a slightly-modified 0 to the vmcs.guest_cr4 value. Tested: Built. On earlier version, tested by injecting machine check while a guest is spinning. Before the change, if guest CR4.MCE==0, then the machine check is escalated to Catastrophic Error (CATERR) and the machine dies. If guest CR4.MCE==1, then the machine check causes VMEXIT and is handled normally by host Linux. After the change, injecting a machine check causes normal Linux machine check handling. Signed-off-by: Ben Serebrin <serebrin@google.com> Reviewed-by: Venkatesh Srinivas <venkateshs@google.com> Cc: stable@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'include/linux/compiler.h')
0 files changed, 0 insertions, 0 deletions