Thread (88 messages) flat view 88 messages, 8 authors, 2018-07-11

[PATCH v3 10/20] kvm: arm64: Dynamic configuration of VTTBR mask

From: suzuki.poulose@arm.com (Suzuki K Poulose)
Date: 2018-07-04 08:28:54
Also in: kvm, kvmarm, lkml, qemu-devel

On 07/04/2018 09:24 AM, Auger Eric wrote:
quoted
quoted
quoted
+ *
+ * We have a magic formula for the Magic_N below.
+ *
+ *  Magic_N(PAGE_SIZE, Entry_Level) = 64 - ((PAGE_SHIFT - 3) *
Number of levels)
[0] ^^^


quoted
quoted
+ *
+ * where number of levels = (4 - Entry_Level).
^^^ Doesn't this help make it clear ? Using the expansion makes it a bit
more
unreadable below.
I just wanted to mention the tables you refer (D4-23 and D4-25) give
Magic_N for a larger scope as they deal with any lookup level while we
only care about the entry level for BADDR. So I was a little bit
confused when reading the explanation but that's not a big deal.
Ah, ok. I will try to clarify it.

Cheers
Suzuki
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help