[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v9 07/20] x86/VPMU: Handle APIC_LVTPC accesses
>>> On 08.08.14 at 18:55, <boris.ostrovsky@xxxxxxxxxx> wrote: > @@ -734,8 +735,10 @@ static int vlapic_reg_write(struct vcpu *v, > vlapic_adjust_i8259_target(v->domain); > pt_may_unmask_irq(v->domain, NULL); > } > - if ( (offset == APIC_LVTT) && !(val & APIC_LVT_MASKED) ) > + else if ( (offset == APIC_LVTT) && !(val & APIC_LVT_MASKED) ) > pt_may_unmask_irq(NULL, &vlapic->pt); > + else if ( offset == APIC_LVTPC ) > + vpmu_lvtpc_update(val); Each time I review a version of this series I find myself verifying that the introduction of the "else" that wasn't previously there is benign. It is, yes, but the patch also doesn't win anything from that change. Hence please either drop _both_ "else"-s, or convert the whole construct to a small switch(). Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |