v2
2026-09-06
s390 KVM 页分配改 kzalloc · v2
KVM/s390 将 STHYI/STSI/GIB/sie_page2/CMMA 等页分配从 get_zeroed_page() 改为 kzalloc(),清理旧页分配器用法。
原始补丁链接
子 Patch(4)
1/4
KVM: s390: Replace get_zeroed_page() with kzalloc() for the STHYI buffer
handle_sthyi() allocates the buffer that receives the STHYI response block before it is copied to the guest. This buffer can be allocated with kmalloc() as there’s nothing special about it to go dire
2/4
KVM: s390: Replace get_zeroed_page() with kzalloc() for the STSI buffer
handle_stsi() allocates the buffer that receives the STSI response block before it is copied to the guest. This buffer can be allocated with kmalloc() as there’s nothing special about it to go direct
3/4
KVM: s390: Replace get_zeroed_page() with kzalloc() for the GIB
kvm_s390_gib_init() allocates the guest information block (GIB). The GIB is passed to the hardware as a physical address and must be page aligned. kmalloc() guarantees that a power of two sized alloc
4/4
KVM: s390: Replace get_zeroed_page() with kzalloc() for sie_page2 and CMMA
kvm_arch_init_vm() allocates struct sie_page2 that holds the facility list and the crypto control block of a VM and kvm_s390_vcpu_setup_cmma() allocates the CMMA collaborative memory management block