Am 08.05.2015 um 14:07 schrieb Paolo Bonzini: > From: "Denis V. Lunev" <d...@openvz.org> > > Replace call of cpu_is_bsp(s->cpu) which really returns > !!(s->apicbase & MSR_IA32_APICBASE_BSP) > with directly collected value. Due to this the tracepoint > trace_cpu_get_apic_base((uint64_t)s->apicbase); > will not be hit anymore in apic_reset_common. > > Signed-off-by: Denis V. Lunev <d...@openvz.org> > CC: Andreas Färber <afaer...@suse.de>
I did provide a Reviewed-by for this one, and somehow my name got castrated here. Please check your tooling. Andreas > CC: Paolo Bonzini <pbonz...@redhat.com> > Message-Id: <1428414832-3104-1-git-send-email-...@openvz.org> > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > hw/intc/apic_common.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c > index d38d24b..d595d63 100644 > --- a/hw/intc/apic_common.c > +++ b/hw/intc/apic_common.c > @@ -233,11 +233,10 @@ static void apic_reset_common(DeviceState *dev) > { > APICCommonState *s = APIC_COMMON(dev); > APICCommonClass *info = APIC_COMMON_GET_CLASS(s); > - bool bsp; > + uint32_t bsp; > > - bsp = cpu_is_bsp(s->cpu); > - s->apicbase = APIC_DEFAULT_ADDRESS | > - (bsp ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE_ENABLE; > + bsp = s->apicbase & MSR_IA32_APICBASE_BSP; > + s->apicbase = APIC_DEFAULT_ADDRESS | bsp | MSR_IA32_APICBASE_ENABLE; > > s->vapic_paddr = 0; > info->vapic_base_update(s); > -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)