qemu-arm.nongnu.org archive mirror
 help / color / mirror / Atom feed
* MPIDR Aff0 question
@ 2016-02-04 18:38 Andrew Jones
  2016-02-04 18:51 ` Marc Zyngier
  0 siblings, 1 reply; 8+ messages in thread
From: Andrew Jones @ 2016-02-04 18:38 UTC (permalink / raw)
  To: marc.zyngier, andre.przywara; +Cc: qemu-arm, kvmarm


Hi Marc and Andre,

I completely understand why reset_mpidr() limits Aff0 to 16, thanks
to Andre's nice comment about ICC_SGIxR. Now, here's my question;
it seems that the Cortex-A{53,57,72} manuals want to further limit
Aff0 to 4, going so far as to say bits 7:2 are RES0. I'm looking
at userspace dictating the MPIDR for KVM. QEMU tries to model the
A57 right now, so to be true to the manual, Aff0 should only address
four PEs, but that would generate a higher trap cost for SGI broadcasts
when using KVM. Sigh... what to do?

Additionally I'm looking at adding support to represent more complex
topologies in the guest MPIDR (sockets/cores/threads). I see Linux
currently expects Aff2:socket, Aff1:core, Aff0:thread when threads
are in use, and Aff1:socket, Aff0:core, when they're not. Assuming
there are never more than 4 threads to a core makes the first
expectation fine, but the second one would easily blow the 2 Aff0
bits alloted, and maybe even a 4 Aff0 bit allotment.

So my current thinking is that always using Aff2:socket, Aff1:cluster,
Aff0:core (no threads allowed) would be nice for KVM, and allowing up
to 16 cores to be addressed in Aff0. As it seems there's no standard
for MPIDR, then that could be the KVM guest "standard".

TCG note: I suppose threads could be allowed there, using
Aff2:socket, Aff1:core, Aff0:thread (no more than 4 threads)

Thanks,
drew
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

end of thread, other threads:[~2016-02-05 13:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 18:38 MPIDR Aff0 question Andrew Jones
2016-02-04 18:51 ` Marc Zyngier
2016-02-05  9:23   ` Andrew Jones
2016-02-05 10:37     ` Marc Zyngier
2016-02-05 12:03       ` [Qemu-arm] " Andrew Jones
2016-02-05 13:02         ` Marc Zyngier
2016-02-05 11:00     ` Mark Rutland
2016-02-05 12:08       ` Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).