/qemu/hw/s390x/ |
H A D | meson.build | 5 'ccw-device.c', 10 's390-ccw.c', 31 's390-virtio-ccw.c', 34 s390x_ss.add(when: 'CONFIG_TERMINAL3270', if_true: files('3270-ccw.c')) 38 virtio_ss.add(files('virtio-ccw.c')) 39 virtio_ss.add(when: 'CONFIG_VIRTIO_BALLOON', if_true: files('virtio-ccw-balloon.c')) 40 virtio_ss.add(when: 'CONFIG_VIRTIO_BLK', if_true: files('virtio-ccw-blk.c')) 41 virtio_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('virtio-ccw-crypto.c')) 42 virtio_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-ccw-input.c')) 43 virtio_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-ccw-net.c')) [all …]
|
H A D | virtio-ccw.c | 272 static int virtio_ccw_handle_set_vq(SubchDev *sch, CCW1 ccw, bool check_len, in virtio_ccw_handle_set_vq() argument 281 if (ccw.count != info_len) { in virtio_ccw_handle_set_vq() 284 } else if (ccw.count < info_len) { in virtio_ccw_handle_set_vq() 288 if (!ccw.cda) { in virtio_ccw_handle_set_vq() 317 static int virtio_ccw_cb(SubchDev *sch, CCW1 ccw) in virtio_ccw_cb() argument 336 ccw.cmd_code); in virtio_ccw_cb() 337 check_len = !((ccw.flags & CCW_FLAG_SLI) && !(ccw.flags & CCW_FLAG_DC)); in virtio_ccw_cb() 339 if (dev->revision < 0 && ccw.cmd_code != CCW_CMD_SET_VIRTIO_REV) { in virtio_ccw_cb() 356 switch (ccw.cmd_code) { in virtio_ccw_cb() 358 ret = virtio_ccw_handle_set_vq(sch, ccw, check_len, dev->revision < 1); in virtio_ccw_cb() [all …]
|
H A D | 3270-ccw.c | 22 static int handle_payload_3270_read(EmulatedCcw3270Device *dev, CCW1 *ccw) in handle_payload_3270_read() argument 28 if (!ccw->cda) { in handle_payload_3270_read() 36 ccw_dev->sch->curr_status.scsw.count = ccw->count - len; in handle_payload_3270_read() 42 static int handle_payload_3270_write(EmulatedCcw3270Device *dev, CCW1 *ccw) in handle_payload_3270_write() argument 48 if (!ccw->cda) { in handle_payload_3270_write() 52 len = ck->write_payload_3270(dev, ccw->cmd_code); in handle_payload_3270_write() 58 ccw_dev->sch->curr_status.scsw.count = ccw->count - len; in handle_payload_3270_write() 62 static int emulated_ccw_3270_cb(SubchDev *sch, CCW1 ccw) in emulated_ccw_3270_cb() argument 67 switch (ccw.cmd_code) { in emulated_ccw_3270_cb() 72 rc = handle_payload_3270_write(dev, &ccw); in emulated_ccw_3270_cb() [all …]
|
H A D | css.c | 941 void ccw_dstream_init(CcwDataStream *cds, CCW1 const *ccw, ORB const *orb) in ccw_dstream_init() argument 951 (ccw->flags & CCW_FLAG_IDA ? CDS_F_IDA : 0); in ccw_dstream_init() 953 cds->count = ccw->count; in ccw_dstream_init() 954 cds->cda_orig = ccw->cda; in ccw_dstream_init() 956 cds->do_skip = (ccw->flags & CCW_FLAG_SKIP) && in ccw_dstream_init() 957 ((ccw->cmd_code & 0x0f) == CCW_CMD_BASIC_SENSE || in ccw_dstream_init() 958 (ccw->cmd_code & 0x03) == 0x02 /* read */ || in ccw_dstream_init() 959 (ccw->cmd_code & 0x0f) == 0x0c /* read backwards */); in ccw_dstream_init() 974 CCW1 ccw; in css_interpret_ccw() local 985 ccw = copy_ccw_from_guest(ccw_addr, sch->ccw_fmt_1); in css_interpret_ccw() [all …]
|
H A D | s390-virtio-ccw.c | 856 static void MACHINE_VER_SYM(mach_init, ccw, __VA_ARGS__)(MachineState *mach) \ 858 MACHINE_VER_SYM(instance_options, ccw, __VA_ARGS__)(mach); \ 861 static void MACHINE_VER_SYM(class_init, ccw, __VA_ARGS__)( \ 866 MACHINE_VER_SYM(class_options, ccw, __VA_ARGS__)(mc); \ 868 mc->init = MACHINE_VER_SYM(mach_init, ccw, __VA_ARGS__); \ 875 static const TypeInfo MACHINE_VER_SYM(info, ccw, __VA_ARGS__) = \ 879 .class_init = MACHINE_VER_SYM(class_init, ccw, __VA_ARGS__), \ 881 static void MACHINE_VER_SYM(register, ccw, __VA_ARGS__)(void) \ 884 type_register_static(&MACHINE_VER_SYM(info, ccw, __VA_ARGS__)); \ 886 type_init(MACHINE_VER_SYM(register, ccw, __VA_ARGS__))
|
H A D | ipl.c | 460 iplb->ccw.devno = cpu_to_be16(ccw_dev->sch->devno); in s390_build_iplb() 461 iplb->ccw.ssid = ccw_dev->sch->ssid & 3; in s390_build_iplb() 469 iplb->ccw.devno = cpu_to_be16(ccw_dev->sch->devno); in s390_build_iplb() 470 iplb->ccw.ssid = ccw_dev->sch->ssid & 3; in s390_build_iplb()
|
/qemu/docs/devel/ |
H A D | s390-dasd-ipl.rst | 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 18 IPL ccw it read the 24-bytes of IPL1 to be read into memory starting at 19 location ``0x0``. Then the ccw program at ``0x08`` which consists of a read 20 ccw and a tic ccw is automatically executed because of the chain flag from 21 the original READ IPL ccw. The read ccw will read the IPL2 data into memory [all …]
|
H A D | vfio-iommufd.rst | 26 | pci | | platform | | ap | | ccw | 165 ``vfio-ap`` and ``vfio-ccw`` devices don't have same issue as their backend
|
/qemu/pc-bios/s390-ccw/ |
H A D | dasd-ipl.c | 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() 40 ccw->chain && next_ccw->cmd_code == CCW_CMD_TIC); in is_read_tic_ccw_chain() 134 Ccw0 *ccw = u32toptr(ipl2_addr); in check_ipl2() local 136 return (ipl2_addr != 0x00 && ccw->cmd_code != 0x00); in check_ipl2()
|
H A D | virtio.c | 96 Ccw1 ccw = {}; in run_ccw() local 98 ccw.cmd_code = cmd; in run_ccw() 99 ccw.cda = (long)ptr; in run_ccw() 100 ccw.count = len; in run_ccw() 103 ccw.flags |= CCW_FLAG_SLI; in run_ccw() 106 return do_cio(vdev->schid, vdev->senseid.cu_type, ptr2u32(&ccw), CCW_FMT1); in run_ccw()
|
H A D | main.c | 222 debug_print_int("device no. ", iplb.ccw.devno); in find_boot_device() 223 blk_schid.ssid = iplb.ccw.ssid & 0x3; in find_boot_device() 225 found = find_subch(iplb.ccw.devno); in find_boot_device()
|
H A D | Makefile | 112 build-all: s390-ccw.img 114 s390-ccw.elf: $(OBJECTS) libnet.a libc.a 117 s390-ccw.img: s390-ccw.elf
|
H A D | netmain.c | 493 dev_no = iplb.ccw.devno; in virtio_setup() 495 net_schid.ssid = iplb.ccw.ssid & 0x3; in virtio_setup()
|
/qemu/target/s390x/kvm/ |
H A D | pv.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/docs/system/ |
H A D | target-s390x.rst | 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, 28 s390x/vfio-ccw
|
/qemu/docs/system/s390x/ |
H A D | css.rst | 5 functionless) channel paths, and channel devices (virtio-ccw, 3270, and 6 devices passed via vfio-ccw). It supports multiple subchannel sets (MSS) and 40 -device virtio-net-ccw 51 -device virtio-rng-ccw,devno=fe.0.0042 61 -device virtio-gpu-ccw,devno=fe.2.1111 71 -device virtio-mouse-ccw,devno=2.0.2222 80 -device virtio-keyboard-ccw,devno=0.0.1234
|
H A D | vfio-ccw.rst | 1 Subchannel passthrough via vfio-ccw 4 vfio-ccw (based upon the mediated vfio device infrastructure) allows to 8 Note that while vfio-ccw should work with most non-QDIO devices, only ECKD 43 I/O subchannel driver and bind it to the vfio-ccw driver:: 60 -device vfio-ccw,devno=fe.0.1234,sysfsdev=\
|
H A D | bootdevices.rst | 39 The QEMU guest firmware (the so-called s390-ccw bios) has also some rudimentary 62 The ``s390-ccw-virtio`` machine supports the so-called ``loadparm`` parameter 64 s390-ccw bios should boot. When starting QEMU, it can be specified like this:: 66 qemu-system-s390x -machine s390-ccw-virtio,loadparm=<string> 69 ``<string>`` here. In that case the s390-ccw bios will show a list of 80 shown when using the ``PROMPT`` option, and the s390-ccw bios will then try 111 for virtio-net-ccw devices. The ``bootindex`` property is especially 118 -device virtio-net-ccw,netdev=n1,bootindex=1
|
/qemu/tests/qemu-iotests/ |
H A D | 068 | 50 s390-ccw-virtio)
|
H A D | 127 | 48 _require_one_device_of virtio-scsi-pci virtio-scsi-ccw
|
H A D | 200 | 56 s390-ccw-virtio)
|
/qemu/tests/qtest/migration/s390x/ |
H A D | Makefile | 6 fwdir=../../../pc-bios/s390-ccw
|
/qemu/hw/vfio/ |
H A D | meson.build | 13 vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c'))
|
/qemu/include/hw/s390x/ipl/ |
H A D | qipl.h | 112 IplBlockCcw ccw; member
|
/qemu/pc-bios/ |
H A D | meson.build | 71 's390-ccw.img',
|