Lines Matching refs:mcg_cap
2548 u64 mcg_cap = vcpu->arch.mcg_cap; in set_msr_mce() local
2549 unsigned bank_num = mcg_cap & 0xff; in set_msr_mce()
2558 if (!(mcg_cap & MCG_CTL_P) && in set_msr_mce()
2978 u64 mcg_cap = vcpu->arch.mcg_cap; in get_msr_mce() local
2979 unsigned bank_num = mcg_cap & 0xff; in get_msr_mce()
2987 data = vcpu->arch.mcg_cap; in get_msr_mce()
2990 if (!(mcg_cap & MCG_CTL_P) && !host) in get_msr_mce()
3741 u64 mcg_cap) in kvm_vcpu_ioctl_x86_setup_mce() argument
3744 unsigned bank_num = mcg_cap & 0xff, bank; in kvm_vcpu_ioctl_x86_setup_mce()
3749 if (mcg_cap & ~(kvm_mce_cap_supported | 0xff | 0xff0000)) in kvm_vcpu_ioctl_x86_setup_mce()
3752 vcpu->arch.mcg_cap = mcg_cap; in kvm_vcpu_ioctl_x86_setup_mce()
3754 if (mcg_cap & MCG_CTL_P) in kvm_vcpu_ioctl_x86_setup_mce()
3768 u64 mcg_cap = vcpu->arch.mcg_cap; in kvm_vcpu_ioctl_x86_set_mce() local
3769 unsigned bank_num = mcg_cap & 0xff; in kvm_vcpu_ioctl_x86_set_mce()
3778 if ((mce->status & MCI_STATUS_UC) && (mcg_cap & MCG_CTL_P) && in kvm_vcpu_ioctl_x86_set_mce()
4371 u64 mcg_cap; in kvm_arch_vcpu_ioctl() local
4374 if (copy_from_user(&mcg_cap, argp, sizeof(mcg_cap))) in kvm_arch_vcpu_ioctl()
4376 r = kvm_vcpu_ioctl_x86_setup_mce(vcpu, mcg_cap); in kvm_arch_vcpu_ioctl()
9567 vcpu->arch.mcg_cap = KVM_MAX_MCE_BANKS; in kvm_arch_vcpu_init()