kvm: x86: Clean up kvm_setup_mce
commit32a420243cd1d6d83bd3a248eebeb9a5ebb5101e
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 2 Mar 2011 07:56:17 +0000 (2 08:56 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 15 Mar 2011 04:19:06 +0000 (15 01:19 -0300)
treec84707cd92e3c700bb211ed8a5220f9b5368c65f
parentc34d440a728fd3b5099d11dec122d440ef092c23
kvm: x86: Clean up kvm_setup_mce

There is nothing to abstract here. Fold kvm_setup_mce into its caller
and fix up the error reporting (return code of kvm_vcpu_ioctl holds the
error value).

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
CC: Huang Ying <ying.huang@intel.com>
CC: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
CC: Jin Dongming <jin.dongming@np.css.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
target-i386/kvm.c