instruction
stringlengths
82
202
input
stringclasses
1 value
output
stringlengths
73
23.9M
Linux kernel'inin 'arch/s390/kernel/sthyi' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * store hypervisor information instruction emulation functions. * * Copyright IBM Corp. 2016 * Author(s): Janosch Frank <frankja@linux.vnet.ibm.com> */ #include <linux/export.h> #include <linux/errno.h> #include <linux/pagemap.h> #include <linux/vmalloc.h> #include <lin...
Linux kernel'inin 'arch/s390/kernel/idle' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Idle functions for s390. * * Copyright IBM Corp. 2014 * * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/kernel.h> #include <linux/kernel_stat.h> #include <linux/notifier.h> #include <linux/init.h> #include <linux/cpu.h> #include <trace/eve...
Linux işletim sistemi çekirdeği için 'arch/s390/kernel/rethook' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __S390_RETHOOK_H #define __S390_RETHOOK_H unsigned long arch_rethook_trampoline_callback(struct pt_regs *regs); #endif ```
Linux kernel'inin 'arch/s390/kernel/stackprotector' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #ifndef pr_fmt #define pr_fmt(fmt) "stackprot: " fmt #endif #include <linux/export.h> #include <linux/hex.h> #include <linux/uaccess.h> #include <linux/printk.h> #include <asm/abs_lowcore.h> #include <asm/sections.h> #include <asm/machine.h> #include <asm/asm-offsets.h> #inclu...
Linux kernel'inin 'arch/s390/kernel/wti' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Support for warning track interruption * * Copyright IBM Corp. 2023 */ #include <linux/cpu.h> #include <linux/debugfs.h> #include <linux/kallsyms.h> #include <linux/smpboot.h> #include <linux/irq.h> #include <uapi/linux/sched/types.h> #include <asm/debug.h> #include <a...
Linux kernel'inin 'arch/s390/kernel/perf_cpum_sf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Performance event support for the System z CPU-measurement Sampling Facility * * Copyright IBM Corp. 2013, 2018 * Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "cpum_sf: " fmt #include <linux/kernel.h> #include <linux/kernel_stat.h...
Linux kernel'inin 'arch/s390/kernel/early' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2007, 2009 * Author(s): Hongjie Yang <hongjie@us.ibm.com>, */ #define pr_fmt(fmt) "setup: " fmt #include <linux/sched/debug.h> #include <linux/cpufeature.h> #include <linux/compiler.h> #include <linux/init.h> #include <linux/errno.h> #include ...
Linux kernel'inin 'arch/s390/kernel/kprobes' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Kernel Probes (KProbes) * * Copyright IBM Corp. 2002, 2006 * * s390 port, used ppc64 as template. Mike Grundy <grundym@us.ibm.com> */ #define pr_fmt(fmt) "kprobes: " fmt #include <linux/kprobes.h> #include <linux/ptrace.h> #include <linux/preempt.h> #include <linu...
Linux kernel'inin 'arch/s390/kernel/abs_lowcore' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/pgtable.h> #include <asm/abs_lowcore.h> #include <asm/sections.h> unsigned long __bootdata_preserved(__abs_lowcore); int abs_lowcore_map(int cpu, struct lowcore *lc, bool alloc) { unsigned long addr = __abs_lowcore + (cpu * sizeof(struct lowcore)); unsigned ...
Linux kernel'inde 'arch/s390/kernel/head' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 1999, 2010 * * Author(s): Hartmut Penner <hp@de.ibm.com> * Martin Schwidefsky <schwidefsky@de.ibm.com> * Rob van der Heij <rvdhei@iae.nl> * */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/lowcore.h> #include <asm...
Linux kernel'inin 'arch/s390/kernel/nospec-branch' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/module.h> #include <linux/device.h> #include <linux/cpu.h> #include <asm/nospec-branch.h> int nobp = IS_ENABLED(CONFIG_KERNEL_NOBP); static int __init nobp_setup_early(char *str) { bool enabled; int rc; rc = kstrtobool(str, &enabled); if (rc) return rc; ...
Linux kernel'inin 'arch/s390/kernel/lgr' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Linux Guest Relocation (LGR) detection * * Copyright IBM Corp. 2012 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/init.h> #include <linux/export.h> #include <linux/timer.h> #include <linux/slab.h> #include <asm/facility.h> #include <asm/...
Linux kernel'inin 'arch/s390/kernel/ftrace' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Dynamic function tracer architecture backend. * * Copyright IBM Corp. 2009,2014 * * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/hardirq.h> #include <linux/uaccess.h> #include <linux/ftrace.h> #include <linux/kernel.h> #include <linux/t...
Linux kernel'inin 'arch/s390/kernel/cert_store' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * DIAG 0x320 support and certificate store handling * * Copyright IBM Corp. 2023 * Author(s): Anastasia Eskova <anastasia.eskova@ibm.com> */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/delay.h> #include <linux/device.h> #include <linux/fs.h> #include <l...
Linux kernel'inin 'arch/s390/kernel/vdso' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * vdso setup for s390 * * Copyright IBM Corp. 2008 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) */ #include <linux/binfmts.h> #include <linux/elf.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #inclu...
Linux kernel'inin 'arch/s390/kernel/rethook' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0-or-later #include <linux/rethook.h> #include <linux/kprobes.h> #include "rethook.h" void arch_rethook_prepare(struct rethook_node *rh, struct pt_regs *regs, bool mcount) { rh->ret_addr = regs->gprs[14]; rh->frame = regs->gprs[15]; /* Replace the return addr with trampoline ...
Linux kernel'inin 'arch/s390/kernel/ipl' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ipl/reipl/dump support for Linux on s390. * * Copyright IBM Corp. 2005, 2012 * Author(s): Michael Holzheu <holzheu@de.ibm.com> * Volker Sameske <sameske@de.ibm.com> */ #include <linux/types.h> #include <linux/export.h> #include <linux/init.h> #include <lin...
Linux kernel'inin 'arch/s390/kernel/early_printk' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2017 */ #include <linux/console.h> #include <linux/kernel.h> #include <linux/init.h> #include <asm/setup.h> #include <asm/sclp.h> static void sclp_early_write(struct console *con, const char *s, unsigned int len) { __sclp_early_printk(s, len); } ...
Linux kernel'inin 'arch/s390/kernel/dis' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Disassemble s390 instructions. * * Copyright IBM Corp. 2007 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), */ #include <linux/sched.h> #include <linux/kernel.h> #include <linux/string.h> #include <linux/errno.h> #include <linux/ptrace.h> #include <linux/tim...
Linux kernel'inin 'arch/s390/kernel/ebcdic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * EBCDIC -> ASCII, ASCII -> EBCDIC, * upper to lower case (EBCDIC) conversion tables. * * S390 version * Copyright IBM Corp. 1999 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> * Martin Peschke <peschke@fh-brandenburg.de> */ #incl...
Linux kernel'inin 'arch/s390/kernel/time' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Time of day based timer functions. * * S390 version * Copyright IBM Corp. 1999, 2008 * Author(s): Hartmut Penner (hp@de.ibm.com), * Martin Schwidefsky (schwidefsky@de.ibm.com), * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj...
Linux kernel'inin 'arch/s390/kernel/signal' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 1999, 2006 * Author(s): Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com) * * Based on Intel version * * Copyright (C) 1991, 1992 Linus Torvalds * * 1997-11-28 Modified for POSIX.1b signals by Richard Henderson */ #inc...
Linux kernel'inin 'arch/s390/kernel/module' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Kernel module help for s390. * * S390 version * Copyright IBM Corp. 2002, 2003 * Author(s): Arnd Bergmann (arndb@de.ibm.com) * Martin Schwidefsky (schwidefsky@de.ibm.com) * * based on i386 version * Copyright (C) 2001 Rusty Russell. */ #include <lin...
Linux kernel'inin 'arch/s390/kernel/alternative' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #ifndef pr_fmt #define pr_fmt(fmt) "alt: " fmt #endif #include <linux/hex.h> #include <linux/uaccess.h> #include <linux/printk.h> #include <asm/nospec-branch.h> #include <asm/abs_lowcore.h> #include <asm/alternative.h> #include <asm/facility.h> #include <asm/sections.h> #inclu...
Linux kernel'inin 'arch/s390/kernel/machine_kexec_file' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * s390 code for kexec_file_load system call * * Copyright IBM Corp. 2018 * * Author(s): Philipp Rudo <prudo@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "kexec: " fmt #include <linux/elf.h> #include <linux/errno.h> #include <linux/kexec.h> #include <linux/module_signatu...
Linux kernel'inin 'arch/s390/kernel/perf_regs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/perf_event.h> #include <linux/perf_regs.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/bug.h> #include <asm/ptrace.h> #include <asm/fpu.h> u64 perf_reg_value(struct pt_regs *regs, int idx) { freg_t fp; if (idx >= PERF_REG_S390_R0 && idx...
Linux kernel'inin 'arch/s390/kernel/vtime' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Virtual cpu timer based timer functions. * * Copyright IBM Corp. 2004, 2012 * Author(s): Jan Glauber <jan.glauber@de.ibm.com> */ #include <linux/kernel_stat.h> #include <linux/export.h> #include <linux/kernel.h> #include <linux/timex.h> #include <linux/types....
Linux kernel'inin 'arch/s390/kernel/os_info' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * OS info memory interface * * Copyright IBM Corp. 2012 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "os_info: " fmt #include <linux/crash_dump.h> #include <linux/kernel.h> #include <linux/slab.h> #include <asm/checksum.h> #include <...
Linux kernel'inde 'arch/s390/kernel/text_amode31' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Code that needs to run below 2 GB. * * Copyright IBM Corp. 2019 */ #include <linux/linkage.h> #include <asm/asm-extable.h> #include <asm/errno.h> #include <asm/sigp.h> .section .amode31.text,"ax" /* * Simplified version of expoline thunk. The normal thunks...
Linux kernel'inin 'arch/s390/kernel/setup' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * S390 version * Copyright IBM Corp. 1999, 2012 * Author(s): Hartmut Penner (hp@de.ibm.com), * Martin Schwidefsky (schwidefsky@de.ibm.com) * * Derived from "arch/i386/kernel/setup.c" * Copyright (C) 1995, Linus Torvalds */ /* * This file han...
Linux işletim sistemi çekirdeği için 'arch/s390/kernel/entry' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ENTRY_H #define _ENTRY_H #include <linux/percpu.h> #include <linux/types.h> #include <linux/signal.h> #include <asm/extable.h> #include <asm/ptrace.h> #include <asm/idle.h> extern void *restart_stack; void system_call(void); void pgm_check_handler(void); void ext_...
Linux kernel'inin 'arch/s390/kernel/perf_cpum_cf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Performance event support for s390x - CPU-measurement Counter Facility * * Copyright IBM Corp. 2012, 2023 * Author(s): Hendrik Brueckner <brueckner@linux.ibm.com> * Thomas Richter <tmricht@linux.ibm.com> */ #define pr_fmt(fmt) "cpum_cf: " fmt #include <linux...
Linux kernel'inin 'arch/s390/kernel/smp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * SMP related functions * * Copyright IBM Corp. 1999, 2012 * Author(s): Denis Joseph Barrow, * Martin Schwidefsky <schwidefsky@de.ibm.com>, * * based on other smp stuff by * (c) 1995 Alan Cox, CymruNET Ltd <alan@cymru.net> * (c) 1998 Ingo Molnar * ...
Linux kernel'inin 'arch/s390/kernel/kexec_elf' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * ELF loader for kexec_file_load system call. * * Copyright IBM Corp. 2018 * * Author(s): Philipp Rudo <prudo@linux.vnet.ibm.com> */ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/kexec.h> #include <asm/ipl.h> #include <asm/setup.h> static int kexe...
Linux kernel'inin 'arch/s390/kernel/debug' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * S/390 debug facility * * Copyright IBM Corp. 1999, 2020 * * Author(s): Michael Holzheu (holzheu@de.ibm.com), * Holger Smolinski (Holger.Smolinski@de.ibm.com) * * Bugreports to: <Linux390@de.ibm.com> */ #define pr_fmt(fmt) "s390dbf: " fmt #include <li...
Linux kernel'inin 'arch/s390/kernel/perf_cpum_cf_events' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Perf PMU sysfs events attributes for available CPU-measurement counters * */ #include <linux/slab.h> #include <linux/perf_event.h> #include <asm/cpu_mf.h> /* BEGIN: CPUM_CF COUNTER DEFINITIONS =================================== */ CPUMF_EVENT_ATTR(cf_fvn1, CPU_CYCLE...
Linux kernel'inin 'arch/s390/kernel/dumpstack' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Stack dumping functions * * Copyright IBM Corp. 1999, 2013 */ #include <linux/kallsyms.h> #include <linux/hardirq.h> #include <linux/kprobes.h> #include <linux/utsname.h> #include <linux/export.h> #include <linux/kdebug.h> #include <linux/ptrace.h> #include <linux/mm....
Linux kernel'inin 'arch/s390/kernel/hiperdispatch' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2024 */ #define pr_fmt(fmt) "hd: " fmt /* * Hiperdispatch: * Dynamically calculates the optimum number of high capacity COREs * by considering the state the system is in. When hiperdispatch decides * that a capacity update is necessary, it schedu...
Linux kernel'inin 'arch/s390/kernel/cpufeature' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2022 */ #include <linux/cpufeature.h> #include <linux/export.h> #include <linux/bug.h> #include <asm/machine.h> #include <asm/elf.h> enum { TYPE_HWCAP, TYPE_FACILITY, TYPE_MACHINE, }; struct s390_cpu_feature { unsigned int type : 4; unsigned in...
Linux kernel'inin 'arch/s390/kernel/machine_kexec' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2005, 2011 * * Author(s): Rolf Adelsberger, * Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/device.h> #include <linux/mm.h> #include <linux/kexec.h> #include <linux/delay.h> #include <linux/reboot.h> #include <linux/ftrace.h...
Linux kernel'inin 'arch/s390/kernel/cache' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Extract CPU cache information and expose them via sysfs. * * Copyright IBM Corp. 2012 */ #include <linux/seq_file.h> #include <linux/cpu.h> #include <linux/cacheinfo.h> #include <asm/facility.h> enum { CACHE_SCOPE_NOTEXISTS, CACHE_SCOPE_PRIVATE, CACHE_SCOPE_SHAR...
Linux kernel'inin 'arch/s390/kernel/traps' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * S390 version * Copyright IBM Corp. 1999, 2000 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Denis Joseph Barrow (djbarrow@de.ibm.com,barrow_dj@yahoo.com), * * Derived from "arch/i386/kernel/traps.c" * Copyright (C) 1991, 1992 Linus Torvalds...
Linux kernel'inin 'arch/s390/kernel/facility' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2023 */ #include <linux/export.h> #include <asm/facility.h> unsigned int stfle_size(void) { static unsigned int size; unsigned int r; u64 dummy; r = READ_ONCE(size); if (!r) { r = __stfle_asm(&dummy, 1) + 1; WRITE_ONCE(size, r); } return ...
Linux kernel'inde 'arch/s390/kernel/relocate_kernel' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2005 * * Author(s): Rolf Adelsberger * */ #include <linux/linkage.h> #include <asm/page.h> #include <asm/sigp.h> /* * moves the new kernel to its destination... * %r2 = pointer to first kimage_entry_t * %r3 = start address - where to ...
Linux kernel'inin 'arch/s390/kernel/perf_event' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Performance event support for s390x * * Copyright IBM Corp. 2012, 2013 * Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "perf: " fmt #include <linux/kernel.h> #include <linux/perf_event.h> #include <linux/kvm_host.h> #include <lin...
Linux kernel'inin 'arch/s390/kernel/fpu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * In-kernel vector facility support functions * * Copyright IBM Corp. 2015 * Author(s): Hendrik Brueckner <brueckner@linux.vnet.ibm.com> */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/cpu.h> #include <linux/sched.h> #include <asm/fpu.h> void __k...
Linux kernel'inin 'arch/s390/kernel/kdebugfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <linux/debugfs.h> #include <linux/export.h> #include <linux/init.h> struct dentry *arch_debugfs_dir; EXPORT_SYMBOL(arch_debugfs_dir); static int __init arch_kdebugfs_init(void) { arch_debugfs_dir = debugfs_create_dir("s390", NULL); return 0; } postcore_initcall(arch...
Linux kernel'inin 'arch/s390/kernel/guarded_storage' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2016 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/cpufeature.h> #include <linux/kernel.h> #include <linux/syscalls.h> #include <linux/signal.h> #include <linux/mm.h> #include <linux/slab.h> #include <asm/guarded_storage...
Linux işletim sistemi çekirdeği için 'arch/s390/kernel/ftrace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _FTRACE_H #define _FTRACE_H #include <asm/types.h> struct ftrace_hotpatch_trampoline { u16 brasl_opc; s32 brasl_disp; s16: 16; u64 rest_of_intercepted_function; u64 interceptor; } __packed; extern struct ftrace_hotpatch_trampoline __ftrace_hotpatch_trampolines...
Linux kernel'inin 'arch/s390/kernel/process' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * This file handles the architecture dependent parts of process handling. * * Copyright IBM Corp. 1999, 2009 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>, * Hartmut Penner <hp@de.ibm.com>, * Denis Joseph Barrow, */ #include <linux/elf-randomize.h...
Linux kernel'inin 'arch/s390/kernel/jump_label' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Jump label s390 support * * Copyright IBM Corp. 2011 * Author(s): Jan Glauber <jang@linux.vnet.ibm.com> */ #include <linux/uaccess.h> #include <linux/jump_label.h> #include <linux/module.h> #include <asm/text-patching.h> #include <asm/ipl.h> struct insn { u16 opcode;...
Linux kernel'inde 'arch/s390/kernel/vdso/note' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text. * Here we can supply some information useful to userland. */ #include <linux/uts.h> #include <linux/version.h> #include <linux/elfnote.h> ELFNOTE_START(Linux, 0, "a") .long LINUX_VER...
Linux kernel'inde 'arch/s390/kernel/vdso/vdso_wrapper' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/page.h> __PAGE_ALIGNED_DATA .globl vdso_start, vdso_end .balign PAGE_SIZE vdso_start: .incbin "arch/s390/kernel/vdso/vdso.so" .balign PAGE_SIZE vdso_end: .previous ```
Linux kernel'inin 'arch/s390/kernel/vdso/vgetrandom' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include <asm/facility.h> #include <uapi/asm-generic/errno.h> #include "vdso.h" ssize_t __kernel_getrandom(void *buffer, size_t len, unsigned int flags, void *opaque_state, size_t opaque_len) { if (test_facility(129)) return __cvdso_getrandom(buffer, len, flags, opaque_stat...
Linux kernel'inin 'arch/s390/kernel/vdso/getcpu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* Copyright IBM Corp. 2020 */ #include <linux/compiler.h> #include <asm/timex.h> #include "vdso.h" int __s390_vdso_getcpu(unsigned *cpu, unsigned *node, void *unused) { union tod_clock clk; /* CPU number is stored in the programmable field of the TOD clock */ store_tod_cl...
Linux kernel'inin 'arch/s390/kernel/vdso/vdso_generic' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 #include "../../../../lib/vdso/gettimeofday.c" #include "vdso.h" int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) { return __cvdso_gettimeofday(tv, tz); } int __s390_vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) { ...
Linux kernel'inde 'arch/s390/kernel/vdso/vgetrandom-chacha' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/stringify.h> #include <linux/linkage.h> #include <asm/alternative.h> #include <asm/dwarf.h> #include <asm/fpu-insn.h> #define STATE0 %v0 #define STATE1 %v1 #define STATE2 %v2 #define STATE3 %v3 #define COPY0 %v4 #define COPY1 %v5 #define COPY2 %v6 #de...
Linux kernel'inde 'arch/s390/kernel/vdso/vdso.lds' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * This is the infamous ld script for the 64 bits vdso * library */ #include <asm/vdso/vsyscall.h> #include <asm/page.h> #include <asm/vdso.h> #include <asm-generic/vmlinux.lds.h> #include <vdso/datapage.h> OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390")...
Linux işletim sistemi çekirdeği için 'arch/s390/kernel/vdso/vdso' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ARCH_S390_KERNEL_VDSO_VDSO_H #define __ARCH_S390_KERNEL_VDSO_VDSO_H #include <vdso/datapage.h> int __s390_vdso_getcpu(unsigned *cpu, unsigned *node, void *unused); int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); int __s390_vdso_...
Linux kernel'inde 'arch/s390/kernel/vdso/vdso_user_wrapper' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> #include <asm/vdso.h> #include <asm/unistd.h> #include <asm/asm-offsets.h> #include <asm/dwarf.h> #include <asm/ptrace.h> /* * Older glibc version called vdso without allocating a stackframe. This wrapper * is just used to allocate a stack...
Linux kernel'inin 'arch/s390/kernel/diag/diag_misc' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Provide diagnose information via misc device /dev/diag. * * Copyright IBM Corp. 2024 */ #include <linux/fs.h> #include <linux/init.h> #include <linux/ioctl.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/types.h> #include <uapi/asm/diag.h> #...
Linux işletim sistemi çekirdeği için 'arch/s390/kernel/diag/diag_ioctl' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _DIAG_IOCTL_H #define _DIAG_IOCTL_H #include <linux/types.h> long diag324_pibbuf(unsigned long arg); long diag324_piblen(unsigned long arg); long diag310_memtop_stride(unsigned long arg); long diag310_memtop_len(unsigned long arg); long diag310_memtop_buf(unsigned ...
Linux kernel'inin 'arch/s390/kernel/diag/diag' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Implementation of s390 diagnose codes * * Copyright IBM Corp. 2007 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #include <linux/export.h> #include <linux/init.h> #include <linux/cpu.h> #include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/vmal...
Linux kernel'inin 'arch/s390/kernel/diag/diag324' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Request power readings for resources in a computing environment via * diag 0x324. diag 0x324 stores the power readings in the power information * block (pib). * * Copyright IBM Corp. 2024 */ #define pr_fmt(fmt) "diag324: " fmt #include <linux/fs.h> #include <linux/gf...
Linux kernel'inin 'arch/s390/kernel/diag/diag310' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Request memory topology information via diag0x310. * * Copyright IBM Corp. 2025 */ #include <linux/kernel.h> #include <linux/types.h> #include <linux/uaccess.h> #include <linux/vmalloc.h> #include <asm/diag.h> #include <asm/sclp.h> #include <uapi/asm/diag.h> #include "...
Linux kernel'inin 'arch/s390/net/bpf_jit_comp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * BPF Jit compiler for s390. * * Minimum build requirements: * * - HAVE_MARCH_Z196_FEATURES: laal, laalg * - HAVE_MARCH_Z10_FEATURES: msfi, cgrj, clgrj * - HAVE_MARCH_Z9_109_FEATURES: alfi, llilf, clfi, oilf, nilf * - 64BIT * * Copyright IBM Corp. 2012,2015 * ...
Linux kernel'inde 'arch/s390/net/bpf_timed_may_goto' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/nospec-insn.h> #define R2_OFF 0 #define R5_OFF (R2_OFF + (5 - 2 + 1) * 8) #define R14_OFF (R5_OFF + 8) #define RETADDR_OFF (R14_OFF + 8) #define R15_OFF (RETADDR_OFF + 8) ...
Linux kernel'inin 'arch/s390/net/pnet' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * IBM System z PNET ID Support * * Copyright IBM Corp. 2018 */ #include <linux/device.h> #include <linux/export.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/types.h> #include <asm/ccwgroup.h> #include <asm/ccwdev.h> #include <asm/pnet.h> #inclu...
Linux kernel'inin 'arch/s390/hypfs/hypfs_sprp' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Hypervisor filesystem for Linux on s390. * Set Partition-Resource Parameter interface. * * Copyright IBM Corp. 2013 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/errno.h> #include <linux/gfp.h> #include <linux/string.h> #incl...
Linux işletim sistemi çekirdeği için 'arch/s390/hypfs/hypfs_vm' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Hypervisor filesystem for Linux on s390. z/VM implementation. * * Copyright IBM Corp. 2006 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #ifndef _S390_HYPFS_VM_H_ #define _S390_HYPFS_VM_H_ #define DIAG2FC_NAME_LEN 8 struct diag2fc_data { __u32 ve...
Linux kernel'inin 'arch/s390/hypfs/hypfs_dbfs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Hypervisor filesystem for Linux on s390 - debugfs interface * * Copyright IBM Corp. 2010 * Author(s): Michael Holzheu <holzheu@linux.vnet.ibm.com> */ #include <linux/security.h> #include <linux/slab.h> #include "hypfs.h" static struct dentry *dbfs_dir; static struct...
Linux kernel'inin 'arch/s390/hypfs/hypfs_vm_fs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Hypervisor filesystem for Linux on s390. z/VM implementation. * * Copyright IBM Corp. 2006 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #include <linux/types.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/vmalloc.h> #include <as...
Linux işletim sistemi çekirdeği için 'arch/s390/hypfs/hypfs_diag' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Hypervisor filesystem for Linux on s390. Diag 204 and 224 * implementation. * * Copyright IBM Corp. 2006, 2008 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #ifndef _S390_HYPFS_DIAG_H_ #define _S390_HYPFS_DIAG_H_ #include <asm/diag.h> enum dia...
Linux kernel'inin 'arch/s390/hypfs/inode' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-1.0+ /* * Hypervisor filesystem for Linux on s390. * * Copyright IBM Corp. 2006, 2008 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #define pr_fmt(fmt) "hypfs: " fmt #include <linux/types.h> #include <linux/errno.h> #include <linux/fs.h> #include <linux/fs_con...
Linux kernel'inin 'arch/s390/hypfs/hypfs_diag_fs' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Hypervisor filesystem for Linux on s390. Diag 204 and 224 * implementation. * * Copyright IBM Corp. 2006, 2008 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #define pr_fmt(fmt) "hypfs: " fmt #include <linux/types.h> #include <linux/errno.h> #inclu...
Linux kernel'inin 'arch/s390/hypfs/hypfs_diag' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Hypervisor filesystem for Linux on s390. Diag 204 and 224 * implementation. * * Copyright IBM Corp. 2006, 2008 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #define pr_fmt(fmt) "hypfs: " fmt #include <linux/types.h> #include <linux/errno.h> #inclu...
Linux kernel'inin 'arch/s390/hypfs/hypfs_vm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Hypervisor filesystem for Linux on s390. z/VM implementation. * * Copyright IBM Corp. 2006 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #include <linux/types.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/vmalloc.h> #include <as...
Linux işletim sistemi çekirdeği için 'arch/s390/hypfs/hypfs' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Hypervisor filesystem for Linux on s390. * * Copyright IBM Corp. 2006 * Author(s): Michael Holzheu <holzheu@de.ibm.com> */ #ifndef _HYPFS_H_ #define _HYPFS_H_ #include <linux/fs.h> #include <linux/types.h> #include <linux/debugfs.h> #include <linux/workqu...
Linux kernel'inin 'arch/s390/hypfs/hypfs_diag0c' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Hypervisor filesystem for Linux on s390 * * Diag 0C implementation * * Copyright IBM Corp. 2014 */ #include <linux/slab.h> #include <linux/cpu.h> #include <asm/machine.h> #include <asm/diag.h> #include <asm/hypfs.h> #include "hypfs.h" #define DBFS_D0C_HDR_VERSION 0 ...
Linux kernel'inin 'arch/s390/crypto/hmac_s390' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright IBM Corp. 2024 * * s390 specific HMAC support. */ #define pr_fmt(fmt) "hmac_s390: " fmt #include <asm/cpacf.h> #include <crypto/internal/hash.h> #include <crypto/hmac.h> #include <crypto/sha2.h> #include <linux/cpufeature.h> #include <linux/errno.h> #includ...
Linux kernel'inin 'arch/s390/crypto/prng' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2006, 2015 * Author(s): Jan Glauber <jan.glauber@de.ibm.com> * Harald Freudenberger <freude@de.ibm.com> * Driver for the s390 pseudo random number generator */ #define pr_fmt(fmt) "prng: " fmt #include <linux/fs.h> #include <linux/fips.h> #i...
Linux kernel'inin 'arch/s390/crypto/aes_s390' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Cryptographic API. * * s390 implementation of the AES Cipher Algorithm. * * s390 Version: * Copyright IBM Corp. 2005, 2017 * Author(s): Jan Glauber (jang@de.ibm.com) * Sebastian Siewior (sebastian@breakpoint.cc> SW-Fallback * Patrick Steuer <patrick.steuer@d...
Linux kernel'inin 'arch/s390/crypto/arch_random' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * s390 arch random implementation. * * Copyright IBM Corp. 2017, 2020 * Author(s): Harald Freudenberger */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/atomic.h> #include <linux/random.h> #include <linux/static_key.h> #include <asm/archrandom.h> #...
Linux kernel'inin 'arch/s390/crypto/paes_s390' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Cryptographic API. * * s390 implementation of the AES Cipher Algorithm with protected keys. * * s390 Version: * Copyright IBM Corp. 2017, 2025 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> * Harald Freudenberger <freude@de.ibm.com> */ #define pr_fm...
Linux kernel'inin 'arch/s390/crypto/phmac_s390' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0+ /* * Copyright IBM Corp. 2025 * * s390 specific HMAC support for protected keys. */ #define pr_fmt(fmt) "phmac_s390: " fmt #include <asm/cpacf.h> #include <asm/pkey.h> #include <crypto/engine.h> #include <crypto/hash.h> #include <crypto/internal/hash.h> #include <crypto/s...
Linux kernel'inin 'arch/s390/purgatory/purgatory' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Purgatory code running between two kernels. * * Copyright IBM Corp. 2018 * * Author(s): Philipp Rudo <prudo@linux.vnet.ibm.com> */ #include <linux/kexec.h> #include <linux/string.h> #include <crypto/sha2.h> #include <asm/purgatory.h> int verify_sha256_digest(void) {...
Linux kernel'inde 'arch/s390/purgatory/head' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Purgatory setup code * * Copyright IBM Corp. 2018 * * Author(s): Philipp Rudo <prudo@linux.vnet.ibm.com> */ #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/page.h> #include <asm/sigp.h> #include <asm/ptrace.h> /* The purgatory is the ...
Linux kernel'inde 'arch/s390/purgatory/purgatory.lds' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <asm-generic/vmlinux.lds.h> OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390") OUTPUT_ARCH(s390:64-bit) ENTRY(purgatory_start) SECTIONS { . = 0; .head.text : { _head = . ; HEAD_TEXT _ehead = . ; } .text : { _text = .; /* Text */ *(.text)...
Linux kernel'inde 'arch/s390/purgatory/kexec-purgatory' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> .section .rodata, "a" .balign 8 SYM_DATA_START(kexec_purgatory) .incbin "arch/s390/purgatory/purgatory.ro" SYM_DATA_END_LABEL(kexec_purgatory, SYM_L_LOCAL, kexec_purgatory_end) .balign 8 SYM_DATA(kexec_purgatory_size, .quad kexec_purga...
Linux kernel'inin 'arch/loongarch/kvm/main' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/err.h> #include <linux/module.h> #include <linux/kvm_host.h> #include <asm/cacheflush.h> #include <asm/cpufeature.h> #include <asm/kvm_csr.h> #include <asm/kvm_eiointc.h> #include <asm/kvm...
Linux kernel'inin 'arch/loongarch/kvm/vcpu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/kvm_host.h> #include <asm/fpu.h> #include <asm/lbt.h> #include <asm/loongarch.h> #include <asm/setup.h> #include <asm/time.h> #include <asm/timex.h> #define CREATE_TRACE_POINTS #include "...
Linux kernel'inin 'arch/loongarch/kvm/exit' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/err.h> #include <linux/errno.h> #include <linux/kvm_host.h> #include <linux/module.h> #include <linux/preempt.h> #include <linux/vmalloc.h> #include <trace/events/kvm.h> #include <asm/fpu....
Linux kernel'inin 'arch/loongarch/kvm/vm' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/kvm_host.h> #include <asm/kvm_mmu.h> #include <asm/kvm_vcpu.h> #include <asm/kvm_csr.h> #include <asm/kvm_eiointc.h> #include <asm/kvm_pch_pic.h> const struct kvm_stats_desc kvm_vm_stats_...
Linux işletim sistemi çekirdeği için 'arch/loongarch/kvm/trace' yapılarının ve prototiplerinin bulunduğu C Header dosyasını yaz.
```c /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #if !defined(_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_H #include <linux/tracepoint.h> #include <asm/kvm_csr.h> #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm /* * Tracepoi...
Linux kernel'inde 'arch/loongarch/kvm/switch' modülü için gerekli Low-Level Assembly kodunu yaz.
```assembly /* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/linkage.h> #include <linux/kvm_types.h> #include <asm/asm.h> #include <asm/asmmacro.h> #include <asm/loongarch.h> #include <asm/page.h> #include <asm/regdef.h> #include <asm/unwi...
Linux kernel'inin 'arch/loongarch/kvm/tlb' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/kvm_host.h> #include <asm/tlb.h> #include <asm/kvm_csr.h> /* * kvm_flush_tlb_all() - Flush all root TLB entries for guests. * * Invalidate all entries including GVA-->GPA and GPA-->HPA...
Linux kernel'inin 'arch/loongarch/kvm/timer' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/kvm_host.h> #include <asm/delay.h> #include <asm/kvm_csr.h> #include <asm/kvm_vcpu.h> /* * ktime_to_tick() - Scale ktime_t to timer tick value. */ static inline u64 ktime_to_tick(struct...
Linux kernel'inin 'arch/loongarch/kvm/irqfd' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2024 Loongson Technology Corporation Limited */ #include <linux/kvm_host.h> #include <trace/events/kvm.h> #include <asm/kvm_pch_pic.h> static int kvm_set_pic_irq(struct kvm_kernel_irq_routing_entry *e, struct kvm *kvm, int irq_source_id, int level, bool ...
Linux kernel'inin 'arch/loongarch/kvm/mmu' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/highmem.h> #include <linux/hugetlb.h> #include <linux/kvm_host.h> #include <linux/page-flags.h> #include <linux/uaccess.h> #include <asm/mmu_context.h> #include <asm/pgalloc.h> #include <a...
Linux kernel'inin 'arch/loongarch/kvm/interrupt' alt sistemi için gerekli C kaynak kodunu implemente et.
```c // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2020-2023 Loongson Technology Corporation Limited */ #include <linux/err.h> #include <linux/errno.h> #include <asm/kvm_csr.h> #include <asm/kvm_vcpu.h> #include <asm/kvm_dmsintc.h> static unsigned int priority_to_irq[EXCCODE_INT_NUM] = { [INT_TI] = CPU_TI...