diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-11-25 18:19:15 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-11-26 16:48:11 +0100 |
commit | 2590f15b13cc57487518996b32bb7626b0d80909 (patch) | |
tree | 2ba9908a8dfde0ef600efa54228c70ce7436ea3c /scripts | |
parent | 49b69cbfcd6e32e2178d6ff7e5d60689c3f79c6e (diff) | |
download | qemu-2590f15b13cc57487518996b32bb7626b0d80909.zip qemu-2590f15b13cc57487518996b32bb7626b0d80909.tar.gz qemu-2590f15b13cc57487518996b32bb7626b0d80909.tar.bz2 |
target-i386: kvm: Use env->mcg_cap when setting up MCE
When setting up MCE, instead of using the MCE_*_DEF macros
directly, just filter the existing env->mcg_cap value.
As env->mcg_cap is already initialized as
MCE_CAP_DEF|MCE_BANKS_DEF at target-i386/cpu.c:mce_init(), this
doesn't change any behavior. But it will allow us to change
mce_init() in the future, to implement different defaults
depending on CPU model, machine-type or command-line parameters.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1448471956-66873-9-git-send-email-pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions