/openbmc/qemu/hw/s390x/ |
H A D | meson.build | 3 'ap-bridge.c', 4 'ap-device.c', 5 'ccw-device.c', 6 'css-bridge.c', 8 'event-facility.c', 10 's390-ccw.c', 11 's390-pci-bus.c', 12 's390-pci-inst.c', 13 's390-skeys.c', 14 's390-stattrib.c', [all …]
|
H A D | trace-events | 13 # virtio-ccw.c 14 virtio_ccw_interpret_ccw(int cssid, int ssid, int schid, int cmd_code) "VIRTIO-CCW: %x.%x.%04x: int… 15 …int cssid, int ssid, int schid, int devno, const char *devno_mode) "VIRTIO-CCW: add subchannel %x.… 16 …int64_t ind_loc, uint8_t ind_old, uint8_t ind_new) "VIRTIO-CCW: indicator at %" PRIu64 ": 0x%x->0x… 18 # s390-pci-vfio.c 23 # s390-pci-bus.c 29 # s390-pci-inst.c 40 # s390-skeys.c
|
H A D | s390-virtio-ccw.c | 2 * virtio ccw machine 10 * your option) any later version. See the COPYING file in the top-level 17 #include "exec/confidential-guest-support.h" 19 #include "hw/s390x/s390-virtio-hcall.h" 24 #include "virtio-ccw.h" 25 #include "qemu/config-file.h" 27 #include "qemu/error-report.h" 29 #include "qemu/qemu-print.h" 31 #include "hw/s390x/s390-pci-bus.h" 33 #include "hw/s390x/storage-keys.h" [all …]
|
/openbmc/linux/Documentation/driver-api/ |
H A D | s390-drivers.rst | 2 Writing s390 channel device drivers 11 drive s390 based channel attached I/O devices. This includes interfaces 13 the common driver core. Those interfaces are provided by the s390 common 17 with the s390 channel I/O architecture. For a description of this 19 Operation", IBM publication no. SA22-7832. 21 While most I/O devices on a s390 system are typically driven through the 25 The s390 common I/O layer also provides access to some devices that are 30 Documentation/arch/s390/driver-model.rst. 39 device on the ccw bus and are described below. 40 * I/O subchannels bound to the vfio-ccw driver. See [all …]
|
/openbmc/linux/Documentation/arch/s390/ |
H A D | vfio-ccw.rst | 2 vfio-ccw: the basic infrastructure 6 ------------ 9 Linux/s390. Motivation for vfio-ccw is to passthrough subchannels to a 12 Different than other hardware architectures, s390 has defined a unified 16 - Channel programs run asynchronously on a separate (co)processor. 17 - The channel subsystem will access any memory designated by the caller 28 This document does not intend to explain the s390 I/O architecture in 31 - A good start to know Channel I/O in general: 33 - s390 architecture: 34 s390 Principles of Operation manual (IBM Form. No. SA22-7832) [all …]
|
/openbmc/qemu/docs/system/s390x/ |
H A D | bootdevices.rst | 5 -------------------------------- 9 in s390x-speak -- IPL means "Initial Program Load"). 15 qemu-system-s390x -drive if=none,id=dr1,file=guest.qcow2 \ 16 -device virtio-blk,drive=dr1,bootindex=1 23 For booting from a CD-ROM ISO image (which needs to include El-Torito boot 24 information in order to be bootable), it is recommended to specify a ``scsi-cd`` 27 qemu-system-s390x -blockdev file,node-name=c1,filename=... \ 28 -device virtio-scsi \ 29 -device scsi-cd,drive=c1,bootindex=1 32 boot device. The old-fashioned ``-boot order=...`` command of QEMU (and [all …]
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | dasd-ipl.c | 2 * S390 IPL (boot) from a real DASD device via vfio framework. 7 * your option) any later version. See the COPYING file in the top-level 13 #include "s390-ccw.h" 14 #include "s390-arch.h" 15 #include "dasd-ipl.h" 31 memcpy((void *)&lowcore->subchannel_id, prefix_page + 0xB8, 12); in disable_prefixing() 34 static bool is_read_tic_ccw_chain(Ccw0 *ccw) in is_read_tic_ccw_chain() argument 36 Ccw0 *next_ccw = ccw + 1; in is_read_tic_ccw_chain() 38 return ((ccw->cmd_code == CCW_CMD_DASD_READ || in is_read_tic_ccw_chain() 39 ccw->cmd_code == CCW_CMD_DASD_READ_MT) && in is_read_tic_ccw_chain() [all …]
|
H A D | menu.c | 2 * QEMU S390 Interactive Boot Menu 8 * your option) any later version. See the COPYING file in the top-level 16 #include "s390-ccw.h" 18 #include "s390-time.h" 98 buf[--idx] = 0; in read_prompt() 130 len = read_prompt(buf, sizeof(buf) - 1); in get_index() 142 return -1; in get_index() 198 uint16_t zipl_flag = *(uint16_t *)(menu_data - ZIPL_FLAG_OFFSET); in menu_get_zipl_boot_index() 199 uint16_t zipl_timeout = *(uint16_t *)(menu_data - ZIPL_TIMEOUT_OFFSET); in menu_get_zipl_boot_index() 210 puts("s390-ccw zIPL Boot Menu\n"); in menu_get_zipl_boot_index() [all …]
|
H A D | jump2ipl.c | 2 * QEMU s390-ccw firmware - jump to IPL code 5 * your option) any later version. See the COPYING file in the top-level 11 #include "s390-ccw.h" 12 #include "s390-arch.h" 43 * The IPLB for QEMU SCSI type devices must be rebuilt during re-ipl. The in jump_to_IPL_code() 56 * content of non-BIOS memory after we loaded the guest, so we in jump_to_IPL_code() 78 return -1; in jump_to_IPL_code() 85 * arch/s390/kernel/head.S here, then let's jump to the well-known Linux in jump_to_low_kernel() 86 * kernel start address (when jumping to the PSW-at-zero address instead, in jump_to_low_kernel()
|
H A D | main.c | 2 * S390 virtio-ccw loading program 7 * your option) any later version. See the COPYING file in the top-level 15 #include "s390-arch.h" 16 #include "s390-ccw.h" 19 #include "virtio-scsi.h" 20 #include "dasd-ipl.h" 35 * Principles of Operations (SA22-7832-09) chapter 17 requires that 36 * a subsystem-identification is at 184-187 and bytes 188-191 are zero 37 * after list-directed-IPL and ccw-IPL. 42 lowcore->subchannel_id = net_schid.sch_id; in write_subsystem_identification() [all …]
|
H A D | Makefile | 1 all: build-all 5 include config-host.mak 6 CFLAGS = -O2 -g -I $(SRC_PATH)/../../include/hw/s390x/ipl 8 MAKEFLAGS += -rR 16 quiet-@ = $(if $(V),,@$(if $1,printf "%s\n" "$(TARGET_PREFIX)$1" && )) 17 quiet-command = $(call quiet-@,$2 $@)$1 20 set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1))) 21 $(call set-vpath, $(SRC_PATH)) 24 QEMU_DGFLAGS = -MMD -MP -MT $@ -MF $(@D)/$(*F).d 27 $(call quiet-command,$(CC) $(EXTRA_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \ [all …]
|
/openbmc/linux/drivers/s390/char/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 3 depends on S390 8 depends on CCW && TTY 30 depends on CCW && TTY 32 Include support for IBM 3215 line-mode terminals. 39 Include support for using an IBM 3215 line-mode terminal as a 48 depends on S390 && TTY 50 Include support for IBM SCLP line-mode terminals. 57 Include support for using an IBM HWC line-mode terminal as the Linux 62 prompt "Support for SCLP VT220-compatible terminal" [all …]
|
H A D | tape.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * S390 and zSeries version 8 * Tuan Ngo-Anh <ngoanh@de.ibm.com> 41 * macros s390 debug feature (dbf) 112 /* tape_request->status can be: */ 122 /* Tape CCW request */ 127 void *cpdata; /* pointer to ccw data. */ 255 request->callback = (void *) tape_free_request; in tape_do_io_async_free() 256 request->callback_data = NULL; in tape_do_io_async_free() 303 tape_ccw_cc(struct ccw1 *ccw, __u8 cmd_code, __u16 memsize, void *cda) in tape_ccw_cc() argument [all …]
|
/openbmc/linux/Documentation/virt/kvm/s390/ |
H A D | s390-diag.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 The s390 DIAGNOSE call on KVM 7 KVM on s390 supports the DIAGNOSE call for making hypercalls, both for 8 native hypercalls and for selected hypercalls found on other s390 11 Note that bits are numbered as by the usual s390 convention (most significant 16 --------------- 22 All DIAGNOSE calls supported by KVM use the RS-a format:: 24 -------------------------------------- 26 -------------------------------------- 29 The second-operand address (obtained by the base/displacement calculation) [all …]
|
/openbmc/qemu/tests/functional/ |
H A D | test_s390x_topology.py | 11 # later. See the COPYING file in the top-level directory. 28 See: docs/system/s390x/cpu-topology.rst. 31 - implicitly from the '-smp' argument by completing each topology 34 - explicitly from the '-device' argument on the QEMU command line 35 - explicitly by hotplug of a new CPU using QMP or HMP 36 - it is modified by using QMP 'set-cpu-topology' 51 '/fedora-secondary/releases/35/Server/s390x/os' 57 '/fedora-secondary/releases/35/Server/s390x/os' 63 failure_message='Kernel panic - not syncing', 67 res = self.vm.qmp('query-cpus-fast') [all …]
|
H A D | test_s390x_ccw_virtio.py | 3 # Functional test that boots an s390x Linux guest with ccw and PCI devices 12 # later. See the COPYING file in the top-level directory. 29 '20201126T092837Z/dists/buster/main/installer-s390x/' 34 '20201126T092837Z/dists/buster/main/installer-s390x/' 40 '/fedora-secondary/releases/31/Server/s390x/os' 45 '/fedora-secondary/releases/31/Server/s390x/os' 51 failure_message='Kernel panic - not syncing', 56 'while ! (dmesg -c | grep CRW) ; do sleep 1 ; done', 61 exec_command_and_wait_for_pattern(self, 'dmesg -c > /dev/null; ' 67 self.set_machine('s390-ccw-virtio') [all …]
|
/openbmc/qemu/include/hw/s390x/ |
H A D | s390-ccw.h | 2 * s390 CCW Assignment Support 9 * your option) any later version. See the COPYING file in the top-level 16 #include "hw/s390x/ccw-device.h" 19 #define TYPE_S390_CCW "s390-ccw"
|
H A D | vfio-ccw.h | 10 * your option) any later version. See the COPYING file in the top-level 17 #include "hw/vfio/vfio-common.h" 18 #include "hw/s390x/s390-ccw.h" 19 #include "hw/s390x/ccw-device.h" 22 #define TYPE_VFIO_CCW "vfio-ccw"
|
/openbmc/qemu/docs/devel/ |
H A D | s390-dasd-ipl.rst | 1 Booting from real channel-attached devices on s390x 4 s390 hardware IPL 5 ----------------- 7 The s390 hardware IPL process consists of the following steps. 9 1. A READ IPL ccw is constructed in memory location ``0x0``. 10 This ccw, by definition, reads the IPL1 record which is located on the disk 11 at cylinder 0 track 0 record 1. Note that the chain flag is on in this ccw 12 so when it is complete another ccw will be fetched and executed from memory 15 2. Execute the Read IPL ccw at ``0x00``, thereby reading IPL1 data into ``0x00``. 17 information: ``[psw][read ccw][tic ccw]``. When the machine executes the Read [all …]
|
/openbmc/qemu/tests/tcg/s390x/ |
H A D | console.c | 3 * Reuses the pc-bios/s390-ccw implementation. 5 * SPDX-License-Identifier: GPL-2.0-or-later 8 #include "../../../pc-bios/s390-ccw/sclp.c"
|
H A D | head64.S | 3 * Reuses the pc-bios/s390-ccw implementation. 5 * SPDX-License-Identifier: GPL-2.0-or-later 8 #include "../../../pc-bios/s390-ccw/start.S" 14 aghi %r15,-160 /* reserve stack for C code */
|
/openbmc/linux/Documentation/bpf/ |
H A D | s390.rst | 2 Testing BPF on s390 9 year 1964. They are supported by the Linux kernel under the name "s390". This 10 document describes how to test BPF in an s390 QEMU guest. 12 2. One-time setup 17 * s390 GCC 18 * s390 development headers and libraries 20 * QEMU with s390 support 21 * Disk image with s390 rootfs 23 Debian supports installing compiler and libraries for s390 out of the box. 27 --variant=minbase \ [all …]
|
/openbmc/qemu/docs/system/ |
H A D | target-s390x.rst | 1 .. _s390x-System-emulator: 4 --------------------- 7 via the ``qemu-system-s390x`` binary. Only one machine type, 8 ``s390-ccw-virtio``, is supported (with versioning for compatibility 20 z/VM; virtio devices (especially using virtio-ccw) make up the bulk of 21 the available devices. Passthrough of host devices via vfio-pci, vfio-ccw, 22 or vfio-ap is also available. 25 s390x/vfio-ap 28 s390x/vfio-ccw 37 s390x/cpu-topology
|
/openbmc/linux/tools/testing/kunit/qemu_configs/ |
H A D | s390.py | 3 QEMU_ARCH = QemuArchParams(linux_arch='s390', 10 kernel_path='arch/s390/boot/bzImage', 13 '-machine', 's390-ccw-virtio', 14 '-cpu', 'qemu',])
|
/openbmc/qemu/target/s390x/kvm/ |
H A D | pv.h | 9 * your option) any later version. See the COPYING file in the top-level 17 #include "hw/s390x/s390-virtio-ccw.h" 24 static S390CcwMachineState *ccw; in s390_is_pv() local 27 if (ccw) { in s390_is_pv() 28 return ccw->pv; in s390_is_pv() 37 ccw = S390_CCW_MACHINE(obj); in s390_is_pv() 38 return ccw->pv; in s390_is_pv()
|