All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/Xen: don't report ancient LAPIC version
@ 2017-12-08 11:17 Jan Beulich
  2017-12-12 20:39 ` Boris Ostrovsky
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2017-12-08 11:17 UTC (permalink / raw)
  To: Boris Ostrovsky, Juergen Gross; +Cc: xen-devel

Unconditionally reporting a value seen on the P4 or older invokes
functionality like io_apic_get_unique_id() on 32-bit builds, resulting
in a panic() with sufficiently many CPUs and/or IO-APICs. Doing what
that function does would be the hypervisor's responsibility anyway, so
makes no sense to be used when running on Xen. Uniformly report a more
modern version; this shouldn't matter much as both LAPIC and IO-APIC are
being managed entirely / mostly by the hypervisor.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/arch/x86/xen/apic.c
+++ b/arch/x86/xen/apic.c
@@ -57,7 +57,7 @@ static u32 xen_apic_read(u32 reg)
 		return 0;
 
 	if (reg == APIC_LVR)
-		return 0x10;
+		return 0x14;
 #ifdef CONFIG_X86_32
 	if (reg == APIC_LDR)
 		return SET_APIC_LOGICAL_ID(1UL << smp_processor_id());




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86/Xen: don't report ancient LAPIC version
  2017-12-08 11:17 [PATCH] x86/Xen: don't report ancient LAPIC version Jan Beulich
@ 2017-12-12 20:39 ` Boris Ostrovsky
  0 siblings, 0 replies; 4+ messages in thread
From: Boris Ostrovsky @ 2017-12-12 20:39 UTC (permalink / raw)
  To: Jan Beulich, Juergen Gross; +Cc: xen-devel

On 12/08/2017 06:17 AM, Jan Beulich wrote:
> Unconditionally reporting a value seen on the P4 or older invokes
> functionality like io_apic_get_unique_id() on 32-bit builds, resulting
> in a panic() with sufficiently many CPUs and/or IO-APICs. Doing what
> that function does would be the hypervisor's responsibility anyway, so
> makes no sense to be used when running on Xen. Uniformly report a more
> modern version; this shouldn't matter much as both LAPIC and IO-APIC are
> being managed entirely / mostly by the hypervisor.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Committed to for-linus-4.15.

-boris

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86/Xen: don't report ancient LAPIC version
  2017-12-08 13:22 ` Juergen Gross
@ 2017-12-11  7:26   ` Jan Beulich
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2017-12-11  7:26 UTC (permalink / raw)
  To: Juergen Gross; +Cc: xen-devel, Boris Ostrovsky

>>> On 08.12.17 at 14:22, <jgross@suse.com> wrote:
> On 08/12/17 12:17, Jan Beulich wrote:
>> Unconditionally reporting a value seen on the P4 or older invokes
>> functionality like io_apic_get_unique_id() on 32-bit builds, resulting
>> in a panic() with sufficiently many CPUs and/or IO-APICs. Doing what
>> that function does would be the hypervisor's responsibility anyway, so
>> makes no sense to be used when running on Xen. Uniformly report a more
>> modern version; this shouldn't matter much as both LAPIC and IO-APIC are
>> being managed entirely / mostly by the hypervisor.
>> 
>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> 
> Reviewed-by: Juergen Gross <jgross@suse.com>

Thanks.

> BTW: Cc: stable?

Maybe - the issue not having bothered anybody for years made
me uncertain whether anyone other than me actually cared.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86/Xen: don't report ancient LAPIC version
       [not found] <5A2A82D80200007800195E0B@suse.com>
@ 2017-12-08 13:22 ` Juergen Gross
  2017-12-11  7:26   ` Jan Beulich
  0 siblings, 1 reply; 4+ messages in thread
From: Juergen Gross @ 2017-12-08 13:22 UTC (permalink / raw)
  To: Jan Beulich, Boris Ostrovsky; +Cc: xen-devel

On 08/12/17 12:17, Jan Beulich wrote:
> Unconditionally reporting a value seen on the P4 or older invokes
> functionality like io_apic_get_unique_id() on 32-bit builds, resulting
> in a panic() with sufficiently many CPUs and/or IO-APICs. Doing what
> that function does would be the hypervisor's responsibility anyway, so
> makes no sense to be used when running on Xen. Uniformly report a more
> modern version; this shouldn't matter much as both LAPIC and IO-APIC are
> being managed entirely / mostly by the hypervisor.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Juergen Gross <jgross@suse.com>

BTW: Cc: stable?


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-12 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-08 11:17 [PATCH] x86/Xen: don't report ancient LAPIC version Jan Beulich
2017-12-12 20:39 ` Boris Ostrovsky
     [not found] <5A2A82D80200007800195E0B@suse.com>
2017-12-08 13:22 ` Juergen Gross
2017-12-11  7:26   ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.