Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'for-linus-6.7a-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip

Pull xen fixes from Juergen Gross:

- A small cleanup patch for the Xen privcmd driver

- A fix for the swiotlb-xen driver which was missing the advertising of
the maximum mapping length

- A fix for Xen on Arm for a longstanding bug, which happened to occur
only recently: a structure in percpu memory crossed a page boundary,
which was rejected by the hypervisor

* tag 'for-linus-6.7a-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
arm/xen: fix xen_vcpu_info allocation alignment
xen: privcmd: Replace zero-length array with flex-array member and use __counted_by
swiotlb-xen: provide the "max_mapping_size" method

+4 -2
+2 -1
arch/arm/xen/enlighten.c
··· 484 484 * for secondary CPUs as they are brought up. 485 485 * For uniformity we use VCPUOP_register_vcpu_info even on cpu0. 486 486 */ 487 - xen_vcpu_info = alloc_percpu(struct vcpu_info); 487 + xen_vcpu_info = __alloc_percpu(sizeof(struct vcpu_info), 488 + 1 << fls(sizeof(struct vcpu_info) - 1)); 488 489 if (xen_vcpu_info == NULL) 489 490 return -ENOMEM; 490 491
+1 -1
drivers/xen/privcmd.c
··· 1115 1115 spinlock_t lock; /* Protects ioeventfds list */ 1116 1116 struct list_head ioeventfds; 1117 1117 struct list_head list; 1118 - struct ioreq_port ports[0]; 1118 + struct ioreq_port ports[] __counted_by(vcpus); 1119 1119 }; 1120 1120 1121 1121 static irqreturn_t ioeventfd_interrupt(int irq, void *dev_id)
+1
drivers/xen/swiotlb-xen.c
··· 405 405 .get_sgtable = dma_common_get_sgtable, 406 406 .alloc_pages = dma_common_alloc_pages, 407 407 .free_pages = dma_common_free_pages, 408 + .max_mapping_size = swiotlb_max_mapping_size, 408 409 };