Searched hist:"6929586 d8eddad184f43526efe7bf0a8be4f18b2" (Results 1 – 2 of 2) sorted by relevance
/linux/arch/arm64/kvm/hyp/include/nvhe/ |
H A D | memory.h | diff 6929586d8eddad184f43526efe7bf0a8be4f18b2 Tue Jun 08 13:45:18 CEST 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
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | page_alloc.c | diff 6929586d8eddad184f43526efe7bf0a8be4f18b2 Tue Jun 08 13:45:18 CEST 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
|