History

vfio: ccw: introduce ccw_io_region

To provide user-space a set of interfaces to: 1. pass in a ccw program to perform an I/O operation. 2. read back I/O results of the completed I/O operations. We introduce an MMIO region for the vfio-ccw device here. This region is defined to content: 1. areas to store arguments that an ssch required. 2. areas to store the I/O results. Using pwrite/pread to the device on this region, a user-space program could write/read data to/from the vfio-ccw device.

Dong Jia Shi committed 9 years ago

Commit 060d2b51 parent 84cd8fc3 files · +75 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/vfio_ccw.h+24−0
@@ -0,0 +1,24 @@
1/*
2 * Interfaces for vfio-ccw
3 *
4 * Copyright IBM Corp. 2017
5 *
6 * Author(s): Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
7 */
8
9#ifndef _VFIO_CCW_H_
10#define _VFIO_CCW_H_
11
12#include <linux/types.h>
13
14struct ccw_io_region {
15#define ORB_AREA_SIZE 12
16 __u8 orb_area[ORB_AREA_SIZE];
17#define SCSW_AREA_SIZE 12
18 __u8 scsw_area[SCSW_AREA_SIZE];
19#define IRB_AREA_SIZE 96
20 __u8 irb_area[IRB_AREA_SIZE];
21 __u32 ret_code;
22} __packed;
23
24#endif