mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
s390 vfio-ccw: Add bootindex property and IPLB data
Add bootindex property and iplb data for vfio-ccw devices. This allows us to forward boot information into the bios for vfio-ccw devices. Refactor s390_get_ccw_device() to return device type. This prevents us from having to use messy casting logic in several places. Signed-off-by: Jason J. Herne <jjherne@linux.ibm.com> Acked-by: Halil Pasic <pasic@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <1554388475-18329-2-git-send-email-jjherne@linux.ibm.com> [thuth: fixed "typedef struct VFIOCCWDevice" build failure with clang] Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
532cc6da74
commit
44445d8668
6 changed files with 88 additions and 18 deletions
|
@ -27,6 +27,7 @@ typedef struct S390CCWDevice {
|
|||
CcwDevice parent_obj;
|
||||
CssDevId hostid;
|
||||
char *mdevid;
|
||||
int32_t bootindex;
|
||||
} S390CCWDevice;
|
||||
|
||||
typedef struct S390CCWDeviceClass {
|
||||
|
|
28
include/hw/s390x/vfio-ccw.h
Normal file
28
include/hw/s390x/vfio-ccw.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* vfio based subchannel assignment support
|
||||
*
|
||||
* Copyright 2017, 2019 IBM Corp.
|
||||
* Author(s): Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
|
||||
* Xiao Feng Ren <renxiaof@linux.vnet.ibm.com>
|
||||
* Pierre Morel <pmorel@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 VFIOCCWDevice;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue