]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: kvm: Add basic Intel LMCE support
authorAshok Raj <ashok.raj@intel.com>
Wed, 22 Jun 2016 06:56:21 +0000 (14:56 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 7 Jul 2016 18:25:16 +0000 (15:25 -0300)
commit87f8b626041ceaea9adcfdbd549359f0ca7b871d
treefb58c95574a63176221118f6e710a75ae5c6f1d5
parentc35bd19a5c9140bce8b913cc5cefe6f071135bdb
target-i386: kvm: Add basic Intel LMCE support

This patch adds the support to inject SRAR and SRAO as LMCE, i.e. they
are injected to only one VCPU rather than broadcast to all VCPUs. As KVM
reports LMCE support on Intel platforms, this features is only available
on Intel platforms.

LMCE is disabled by default and can be enabled/disabled by cpu option
'lmce=on/off'.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
[Haozhong: Enable LMCE only on Intel platforms
           Disable LMCE by default and add a cpu option 'lmce'
           Handle the error if LMCE is enabled w/o host support
           Remove MCG_LMCE_P from MCE_CAP_DEF
           Add migration support for LMCE
           Minor code style changes]
Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c
target-i386/cpu.h
target-i386/kvm.c
target-i386/machine.c