Skip to content

Commit fc282d1

Browse files
committed
Merge tag 'uml-for-linux-6.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux
Pull uml updates from Johannes Berg: - minor preparations for SMP support - SPARSE_IRQ support for kunit - help output cleanups * tag 'uml-for-linux-6.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux: um: Remove unused ipi_pipe field from cpuinfo_um um: Remove unused cpu_data and current_cpu_data macros um: Stop tracking virtual CPUs via mm_cpumask() um: Centralize stub size calculations um: Remove outdated comment about STUB_DATA_PAGES um: Remove unused offset and child_err fields from stub_data um: Indent time-travel help messages um: Fix help message for ssl-non-raw um: vector: Fix indentation for help message um: Add missing trailing newline to help messages um: virtio-pci: implement .shutdown() um: Support SPARSE_IRQ
2 parents ba9dac9 + e66ae37 commit fc282d1

File tree

16 files changed

+46
-49
lines changed

16 files changed

+46
-49
lines changed

arch/um/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ config UML
3939
select HAVE_ARCH_TRACEHOOK
4040
select HAVE_SYSCALL_TRACEPOINTS
4141
select THREAD_INFO_IN_TASK
42+
select SPARSE_IRQ
4243

4344
config MMU
4445
bool

arch/um/drivers/ssl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,7 @@ static int ssl_non_raw_setup(char *str)
199199
return 1;
200200
}
201201
__setup("ssl-non-raw", ssl_non_raw_setup);
202-
__channel_help(ssl_non_raw_setup, "set serial lines to non-raw mode");
202+
__uml_help(ssl_non_raw_setup,
203+
"ssl-non-raw\n"
204+
" Set serial lines to non-raw mode.\n\n"
205+
);

arch/um/drivers/ubd_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ __uml_help(ubd_setup,
370370
" useful when a unique number should be given to the device. Note when\n"
371371
" specifying a label, the filename2 must be also presented. It can be\n"
372372
" an empty string, in which case the backing file is not used:\n"
373-
" ubd0=File,,Serial\n"
373+
" ubd0=File,,Serial\n\n"
374374
);
375375

376376
static int udb_setup(char *str)

arch/um/drivers/vector_kern.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ static int __init vector_setup(char *str)
17211721
__setup("vec", vector_setup);
17221722
__uml_help(vector_setup,
17231723
"vec[0-9]+:<option>=<value>,<option>=<value>\n"
1724-
" Configure a vector io network device.\n\n"
1724+
" Configure a vector io network device.\n\n"
17251725
);
17261726

17271727
late_initcall(vector_init);

arch/um/drivers/virtio_pcidev.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,11 @@ static void virtio_pcidev_virtio_remove(struct virtio_device *vdev)
598598
kfree(dev);
599599
}
600600

601+
static void virtio_pcidev_virtio_shutdown(struct virtio_device *vdev)
602+
{
603+
/* nothing to do, we just don't want queue shutdown */
604+
}
605+
601606
static struct virtio_device_id id_table[] = {
602607
{ CONFIG_UML_PCI_OVER_VIRTIO_DEVICE_ID, VIRTIO_DEV_ANY_ID },
603608
{ 0 },
@@ -609,6 +614,7 @@ static struct virtio_driver virtio_pcidev_virtio_driver = {
609614
.id_table = id_table,
610615
.probe = virtio_pcidev_virtio_probe,
611616
.remove = virtio_pcidev_virtio_remove,
617+
.shutdown = virtio_pcidev_virtio_shutdown,
612618
};
613619

614620
static int __init virtio_pcidev_init(void)

arch/um/include/asm/mmu_context.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,9 @@
1313
#include <asm/mm_hooks.h>
1414
#include <asm/mmu.h>
1515

16-
#define activate_mm activate_mm
17-
static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
18-
{
19-
}
20-
2116
static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
2217
struct task_struct *tsk)
2318
{
24-
unsigned cpu = smp_processor_id();
25-
26-
if (prev != next) {
27-
cpumask_clear_cpu(cpu, mm_cpumask(prev));
28-
cpumask_set_cpu(cpu, mm_cpumask(next));
29-
}
3019
}
3120

3221
#define init_new_context init_new_context

arch/um/include/asm/processor-generic.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ extern void start_thread(struct pt_regs *regs, unsigned long entry,
7171

7272
struct cpuinfo_um {
7373
unsigned long loops_per_jiffy;
74-
int ipi_pipe[2];
7574
int cache_alignment;
7675
union {
7776
__u32 x86_capability[NCAPINTS + NBUGINTS];
@@ -81,8 +80,6 @@ struct cpuinfo_um {
8180

8281
extern struct cpuinfo_um boot_cpu_data;
8382

84-
#define cpu_data(cpu) boot_cpu_data
85-
#define current_cpu_data boot_cpu_data
8683
#define cache_line_size() (boot_cpu_data.cache_alignment)
8784

8885
#define KSTK_REG(tsk, reg) get_thread_reg(reg, &tsk->thread.switch_buf)

arch/um/include/shared/as-layout.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
#define STUB_START stub_start
2424
#define STUB_CODE STUB_START
2525
#define STUB_DATA (STUB_CODE + UM_KERN_PAGE_SIZE)
26-
#define STUB_DATA_PAGES 2 /* must be a power of two */
27-
#define STUB_END (STUB_DATA + STUB_DATA_PAGES * UM_KERN_PAGE_SIZE)
26+
#define STUB_DATA_PAGES 2
27+
#define STUB_SIZE ((1 + STUB_DATA_PAGES) * UM_KERN_PAGE_SIZE)
28+
#define STUB_END (STUB_START + STUB_SIZE)
2829

2930
#ifndef __ASSEMBLER__
3031

arch/um/include/shared/skas/stub-data.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ struct stub_syscall {
5353
};
5454

5555
struct stub_data {
56-
unsigned long offset;
57-
long err, child_err;
56+
long err;
5857

5958
int syscall_data_len;
6059
/* 128 leaves enough room for additional fields in the struct */

arch/um/kernel/dtb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ static int __init uml_dtb_setup(char *line, int *add)
3838

3939
__uml_setup("dtb=", uml_dtb_setup,
4040
"dtb=<file>\n"
41-
" Boot the kernel with the devicetree blob from the specified file.\n"
41+
" Boot the kernel with the devicetree blob from the specified file.\n\n"
4242
);

0 commit comments

Comments
 (0)