lkml.org 
[lkml]   [2020]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 1/2] kvm: cosmetic: remove wrong braces in kvm_init_msr_list switch
    Date
    Maxim Levitsky <mlevitsk@redhat.com> writes:

    > I think these were added accidentally.
    >
    > Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
    > ---
    > arch/x86/kvm/x86.c | 3 +--
    > 1 file changed, 1 insertion(+), 2 deletions(-)
    >
    > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
    > index 471fccf7f8501..fe3a24fd6b263 100644
    > --- a/arch/x86/kvm/x86.c
    > +++ b/arch/x86/kvm/x86.c
    > @@ -5299,7 +5299,7 @@ static void kvm_init_msr_list(void)
    > !intel_pt_validate_hw_cap(PT_CAP_single_range_output)))
    > continue;
    > break;
    > - case MSR_IA32_RTIT_ADDR0_A ... MSR_IA32_RTIT_ADDR3_B: {
    > + case MSR_IA32_RTIT_ADDR0_A ... MSR_IA32_RTIT_ADDR3_B:
    > if (!kvm_cpu_cap_has(X86_FEATURE_INTEL_PT) ||
    > msrs_to_save_all[i] - MSR_IA32_RTIT_ADDR0_A >=
    > intel_pt_validate_hw_cap(PT_CAP_num_address_ranges) * 2)
    > @@ -5314,7 +5314,6 @@ static void kvm_init_msr_list(void)
    > if (msrs_to_save_all[i] - MSR_ARCH_PERFMON_EVENTSEL0 >=
    > min(INTEL_PMC_MAX_GENERIC, x86_pmu.num_counters_gp))
    > continue;
    > - }
    > default:
    > break;
    > }

    Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>

    --
    Vitaly

    \
     
     \ /
      Last update: 2020-05-20 18:25    [W:2.604 / U:26.864 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site