Re: [PATCH v2 1/3] KVM: s390: Add map/unmap ioctl and clean mappings post-guest

From: Christian Borntraeger

Date: Thu Mar 26 2026 - 07:47:30 EST


Am 26.03.26 um 02:42 schrieb Douglas Freimuth:
+static int kvm_s390_adapter_map(struct kvm *kvm, unsigned int id, __u64 addr)
+{
+ struct s390_io_adapter *adapter = get_io_adapter(kvm, id);
+ struct s390_map_info *map;
+ unsigned long flags;
+ int ret;
+
+ if (!adapter || !addr)
+ return -EINVAL;
+
+ map = kzalloc_obj(*map, GFP_KERNEL);

GFP_KERNEL_ACCOUNT certainly makes sense. Depending on other feedback can be
added when applying.