Lines Matching refs:mce
2580 struct kvm_x86_mce *mce) in kvm_vcpu_ioctl_x86_set_mce() argument
2586 if (mce->bank >= bank_num || !(mce->status & MCI_STATUS_VAL)) in kvm_vcpu_ioctl_x86_set_mce()
2592 if ((mce->status & MCI_STATUS_UC) && (mcg_cap & MCG_CTL_P) && in kvm_vcpu_ioctl_x86_set_mce()
2595 banks += 4 * mce->bank; in kvm_vcpu_ioctl_x86_set_mce()
2600 if ((mce->status & MCI_STATUS_UC) && banks[0] != ~(u64)0) in kvm_vcpu_ioctl_x86_set_mce()
2602 if (mce->status & MCI_STATUS_UC) { in kvm_vcpu_ioctl_x86_set_mce()
2609 mce->status |= MCI_STATUS_OVER; in kvm_vcpu_ioctl_x86_set_mce()
2610 banks[2] = mce->addr; in kvm_vcpu_ioctl_x86_set_mce()
2611 banks[3] = mce->misc; in kvm_vcpu_ioctl_x86_set_mce()
2612 vcpu->arch.mcg_status = mce->mcg_status; in kvm_vcpu_ioctl_x86_set_mce()
2613 banks[1] = mce->status; in kvm_vcpu_ioctl_x86_set_mce()
2618 mce->status |= MCI_STATUS_OVER; in kvm_vcpu_ioctl_x86_set_mce()
2619 banks[2] = mce->addr; in kvm_vcpu_ioctl_x86_set_mce()
2620 banks[3] = mce->misc; in kvm_vcpu_ioctl_x86_set_mce()
2621 banks[1] = mce->status; in kvm_vcpu_ioctl_x86_set_mce()
2941 struct kvm_x86_mce mce; in kvm_arch_vcpu_ioctl() local
2944 if (copy_from_user(&mce, argp, sizeof mce)) in kvm_arch_vcpu_ioctl()
2946 r = kvm_vcpu_ioctl_x86_set_mce(vcpu, &mce); in kvm_arch_vcpu_ioctl()