Home
last modified time | relevance | path

Searched +full:s390 +full:- +full:ccw (Results 1 – 25 of 73) sorted by relevance

123

/qemu/hw/s390x/
H A Dmeson.build3 '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 Dtrace-events13 # 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 Ds390-hypercall.c2 * Support for QEMU/KVM hypercalls on s390
8 * your option) any later version. See the COPYING file in the top-level
14 #include "hw/s390x/s390-virtio-ccw.h"
15 #include "hw/s390x/s390-hypercall.h"
18 #include "virtio-ccw.h"
24 if (mem < ms->ram_size) { in handle_virtio_notify()
28 return -EINVAL; in handle_virtio_notify()
39 return -EINVAL; in handle_virtio_ccw_notify()
43 return -EINVAL; in handle_virtio_ccw_notify()
48 return -EINVAL; in handle_virtio_ccw_notify()
[all …]
H A Ds390-virtio-ccw.c2 * virtio ccw machine
10 * your option) any later version. See the COPYING file in the top-level
17 #include "system/confidential-guest-support.h"
21 #include "virtio-ccw.h"
22 #include "qemu/config-file.h"
24 #include "qemu/error-report.h"
26 #include "qemu/qemu-print.h"
28 #include "hw/s390x/s390-pci-bus.h"
30 #include "hw/s390x/storage-keys.h"
31 #include "hw/s390x/storage-attributes.h"
[all …]
H A Ds390-ccw.c2 * s390 CCW Assignment Support
11 * top-level directory.
19 #include "hw/s390x/css-bridge.h"
20 #include "hw/s390x/s390-ccw.h"
25 S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(sch->driver_data); in s390_ccw_cmd_request()
27 if (!cdc->handle_request) { in s390_ccw_cmd_request()
30 return cdc->handle_request(sch); in s390_ccw_cmd_request()
35 S390CCWDeviceClass *cdc = S390_CCW_DEVICE_GET_CLASS(sch->driver_data); in s390_ccw_halt()
37 if (!cdc->handle_halt) { in s390_ccw_halt()
38 return -ENOSYS; in s390_ccw_halt()
[all …]
/qemu/docs/system/s390x/
H A Dbootdevices.rst5 --------------------------------
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 …]
/qemu/pc-bios/s390-ccw/
H A Ddasd-ipl.c2 * 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 Dmenu.c2 * 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 Djump2ipl.c2 * 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 DMakefile1 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 …]
H A Dmain.c2 * 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 Dvirtio-net.c2 * Virtio-net driver for the s390-ccw firmware
20 #include "s390-ccw.h"
22 #include "s390-time.h"
50 VRing *rxvq = &vdev->vrings[VQ_RX]; in virtio_net_init()
56 vdev->guest_features[0] = VIRTIO_NET_F_MAC_BIT; in virtio_net_init()
59 if (!(vdev->guest_features[0] & VIRTIO_NET_F_MAC_BIT)) { in virtio_net_init()
60 puts("virtio-net device does not support the MAC address feature"); in virtio_net_init()
61 return -1; in virtio_net_init()
64 memcpy(mac_addr, vdev->config.net.mac, ETH_ALEN); in virtio_net_init()
81 VRing *txvq = &vdev->vrings[VQ_TX]; in send()
[all …]
H A Dhelper.h9 * your option) any later version. See the COPYING file in the top-level
16 #include "s390-ccw.h"
17 #include "s390-time.h"
/qemu/tests/functional/
H A Dtest_s390x_topology.py11 # later. See the COPYING file in the top-level directory.
24 See: docs/system/s390x/cpu-topology.rst.
27 - implicitly from the '-smp' argument by completing each topology
30 - explicitly from the '-device' argument on the QEMU command line
31 - explicitly by hotplug of a new CPU using QMP or HMP
32 - it is modified by using QMP 'set-cpu-topology'
47 '/fedora-secondary/releases/35/Server/s390x/os'
53 '/fedora-secondary/releases/35/Server/s390x/os'
59 failure_message='Kernel panic - not syncing',
63 res = self.vm.qmp('query-cpus-fast')
[all …]
H A Dtest_s390x_tuxrun.py12 # SPDX-License-Identifier: GPL-2.0-or-later
20 'https://storage.tuxboot.com/buildroot/20241119/s390/bzImage',
23 'https://storage.tuxboot.com/buildroot/20241119/s390/rootfs.ext4.zst',
27 self.set_machine('s390-ccw-virtio')
31 drive="virtio-blk-ccw",
H A Dtest_s390x_ccw_virtio.py3 # 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 …]
/qemu/include/hw/s390x/
H A Ds390-ccw.h2 * 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 Dvfio-ccw.h10 * your option) any later version. See the COPYING file in the top-level
17 #include "hw/vfio/vfio-device.h"
18 #include "hw/s390x/s390-ccw.h"
19 #include "hw/s390x/ccw-device.h"
22 #define TYPE_VFIO_CCW "vfio-ccw"
H A Ds390-virtio-ccw.h2 * virtio ccw machine definitions
8 * your option) any later version. See the COPYING file in the top-level
18 #define TYPE_S390_CCW_MACHINE "s390-ccw-machine"
41 assert(s390ms->memory_limit); in s390_get_memory_limit()
42 return s390ms->memory_limit; in s390_get_memory_limit()
/qemu/tests/tcg/s390x/
H A Dconsole.c3 * 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 Dhead64.S3 * 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 */
/qemu/docs/devel/
H A Ds390-dasd-ipl.rst1 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 …]
/qemu/docs/system/
H A Dtarget-s390x.rst1 .. _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
/qemu/target/s390x/kvm/
H A Dpv.h9 * your option) any later version. See the COPYING file in the top-level
17 #include "hw/s390x/s390-virtio-ccw.h"
30 static S390CcwMachineState *ccw; in s390_is_pv() local
33 if (ccw) { in s390_is_pv()
34 return ccw->pv; in s390_is_pv()
43 ccw = S390_CCW_MACHINE(obj); in s390_is_pv()
44 return ccw->pv; in s390_is_pv()
/qemu/tests/qtest/migration/s390x/
H A Da-b-bios.c2 * S390 guest code used in migration tests
15 #include <s390-ccw.h>

123