Home
last modified time | relevance | path

Searched hist:"6929586 d" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/arm64/kvm/hyp/include/nvhe/
H A Dmemory.h6929586d Tue Jun 08 06:45:18 CDT 2021 Quentin Perret <qperret@google.com> KVM: arm64: Use less bits for hyp_page refcount

The hyp_page refcount is currently encoded on 4 bytes even though we
never need to count that many objects in a page. Make it 2 bytes to save
some space in the vmemmap.

As overflows are more likely to happen as well, make sure to catch those
with a BUG in the increment function.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210608114518.748712-8-qperret@google.com
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpage_alloc.c6929586d Tue Jun 08 06:45:18 CDT 2021 Quentin Perret <qperret@google.com> KVM: arm64: Use less bits for hyp_page refcount

The hyp_page refcount is currently encoded on 4 bytes even though we
never need to count that many objects in a page. Make it 2 bytes to save
some space in the vmemmap.

As overflows are more likely to happen as well, make sure to catch those
with a BUG in the increment function.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210608114518.748712-8-qperret@google.com