On Thu, 5 Jul 2018 13:25:29 -0400 "Jason J. Herne" <jjhe...@linux.ibm.com> wrote:
> From: "Jason J. Herne" <jjhe...@linux.vnet.ibm.com> > > Add bootindex property and iplb data for vfio-ccw devices. This allows us to > forward boot information into the bios for vfio-ccw devices. > > Signed-off-by: Jason J. Herne <jjhe...@linux.vnet.ibm.com> > Acked-by: Halil Pasic <pa...@linux.vnet.ibm.com> > Signed-off-by: Jason J. Herne <jjhe...@linux.ibm.com> > --- > hw/s390x/ipl.c | 15 +++++++++++++++ > hw/s390x/s390-ccw.c | 9 +++++++++ > hw/vfio/ccw.c | 13 +------------ > hw/vfio/ccw.h | 38 ++++++++++++++++++++++++++++++++++++++ > include/hw/s390x/s390-ccw.h | 1 + > 5 files changed, 64 insertions(+), 12 deletions(-) > create mode 100644 hw/vfio/ccw.h > diff --git a/hw/vfio/ccw.h b/hw/vfio/ccw.h > new file mode 100644 > index 0000000..a7d699d > --- /dev/null > +++ b/hw/vfio/ccw.h Put this under include/hw/s390x/ ? > @@ -0,0 +1,38 @@ > +/* > + * vfio based subchannel assignment support > + * > + * Copyright 2018 IBM Corp. > + * Author(s): Dong Jia Shi <bjsdj...@linux.vnet.ibm.com> > + * Xiao Feng Ren <renxi...@linux.vnet.ibm.com> > + * Pierre Morel <pmo...@linux.vnet.ibm.com> > + * > + * This work is licensed under the terms of the GNU GPL, version 2 or (at > + * your option) any later version. See the COPYING file in the top-level > + * directory. > + */ > + > +#ifndef HW_VFIO_CCW_H > +#define HW_VFIO_CCW_H > + > +#include "hw/vfio/vfio-common.h" > +#include "hw/s390x/s390-ccw.h" > +#include "hw/s390x/ccw-device.h" > + > +#define TYPE_VFIO_CCW "vfio-ccw" > +#define VFIO_CCW(obj) \ > + OBJECT_CHECK(VFIOCCWDevice, (obj), TYPE_VFIO_CCW) > + > + > +#define TYPE_VFIO_CCW "vfio-ccw" > +typedef struct VFIOCCWDevice { > + S390CCWDevice cdev; > + VFIODevice vdev; > + uint64_t io_region_size; > + uint64_t io_region_offset; > + struct ccw_io_region *io_region; > + EventNotifier io_notifier; > + bool force_orb_pfch; > + bool warned_orb_pfch; > +} VFIOCCWDevice; > + > +#endif