~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to hw/i386/x86-iommu.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
    s->intr_supported = value;
107
107
}
108
108
 
 
109
static bool x86_iommu_device_iotlb_prop_get(Object *o, Error **errp)
 
110
{
 
111
    X86IOMMUState *s = X86_IOMMU_DEVICE(o);
 
112
    return s->dt_supported;
 
113
}
 
114
 
 
115
static void x86_iommu_device_iotlb_prop_set(Object *o, bool value, Error **errp)
 
116
{
 
117
    X86IOMMUState *s = X86_IOMMU_DEVICE(o);
 
118
    s->dt_supported = value;
 
119
}
 
120
 
109
121
static void x86_iommu_instance_init(Object *o)
110
122
{
111
123
    X86IOMMUState *s = X86_IOMMU_DEVICE(o);
114
126
    s->intr_supported = false;
115
127
    object_property_add_bool(o, "intremap", x86_iommu_intremap_prop_get,
116
128
                             x86_iommu_intremap_prop_set, NULL);
 
129
    s->dt_supported = false;
 
130
    object_property_add_bool(o, "device-iotlb",
 
131
                             x86_iommu_device_iotlb_prop_get,
 
132
                             x86_iommu_device_iotlb_prop_set,
 
133
                             NULL);
117
134
}
118
135
 
119
136
static const TypeInfo x86_iommu_info = {