Re: [PATCH v2 1/3] KVM: s390: Add map/unmap ioctl and clean mappings post-guest
From: Douglas Freimuth
Date: Fri Mar 27 2026 - 11:24:02 EST
On 3/26/26 7:46 AM, Christian Borntraeger wrote:
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.
I will make that change.