qemu/include/hw/s390x/s390-virtio-ccw.h
<<
>>
Prefs
   1/*
   2 * virtio ccw machine definitions
   3 *
   4 * Copyright 2012, 2016 IBM Corp.
   5 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
   6 *
   7 * This work is licensed under the terms of the GNU GPL, version 2 or (at
   8 * your option) any later version. See the COPYING file in the top-level
   9 * directory.
  10 */
  11#ifndef HW_S390X_S390_VIRTIO_CCW_H
  12#define HW_S390X_S390_VIRTIO_CCW_H
  13
  14#include "hw/boards.h"
  15#include "qom/object.h"
  16
  17#define TYPE_S390_CCW_MACHINE               "s390-ccw-machine"
  18
  19OBJECT_DECLARE_TYPE(S390CcwMachineState, S390CcwMachineClass, S390_CCW_MACHINE)
  20
  21
  22struct S390CcwMachineState {
  23    /*< private >*/
  24    MachineState parent_obj;
  25
  26    /*< public >*/
  27    bool aes_key_wrap;
  28    bool dea_key_wrap;
  29    bool pv;
  30    uint8_t loadparm[8];
  31};
  32
  33struct S390CcwMachineClass {
  34    /*< private >*/
  35    MachineClass parent_class;
  36
  37    /*< public >*/
  38    bool ri_allowed;
  39    bool cpu_model_allowed;
  40    bool css_migration_enabled;
  41    bool hpage_1m_allowed;
  42};
  43
  44/* runtime-instrumentation allowed by the machine */
  45bool ri_allowed(void);
  46/* cpu model allowed by the machine */
  47bool cpu_model_allowed(void);
  48/* 1M huge page mappings allowed by the machine */
  49bool hpage_1m_allowed(void);
  50
  51/**
  52 * Returns true if (vmstate based) migration of the channel subsystem
  53 * is enabled, false if it is disabled.
  54 */
  55bool css_migration_enabled(void);
  56
  57#endif
  58