lkml.org 
[lkml]   [2021]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [RFC PATCH v3 17/59] KVM: x86: Add flag to disallow #MC injection / KVM_X86_SETUP_MCE
    Date
    On Wed, Nov 24 2021 at 16:20, isaku yamahata wrote:
    > static int kvm_vcpu_ioctl_x86_setup_mce(struct kvm_vcpu *vcpu,
    > u64 mcg_cap)
    > {
    > - int r;
    > unsigned bank_num = mcg_cap & 0xff, bank;
    >
    > - r = -EINVAL;
    > + if (vcpu->kvm->arch.mce_injection_disallowed)
    > + return -EINVAL;

    Yet another flag because the copy & pasta orgy did not cover that
    ioctl. What for?

    \
     
     \ /
      Last update: 2021-11-25 20:35    [W:4.129 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site