mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
i386: Hyper-V VMBus ACPI DSDT entry
Guest OS uses ACPI to discover VMBus presence. Add a corresponding entry to DSDT in case VMBus has been enabled. Experimentally Windows guests were found to require this entry to include two IRQ resources. They seem to never be used but they still have to be there. Make IRQ numbers user-configurable via corresponding properties; use 7 and 13 by default. Signed-off-by: Evgeny Yakovlev <eyakovlev@virtuozzo.com> Signed-off-by: Roman Kagan <rkagan@virtuozzo.com> Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Signed-off-by: Jon Doron <arilou@gmail.com> Message-Id: <20200424123444.3481728-6-arilou@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cab78e7cb2
commit
6775d15de1
3 changed files with 53 additions and 0 deletions
|
@ -2641,6 +2641,12 @@ static const VMStateDescription vmstate_vmbus_bridge = {
|
|||
},
|
||||
};
|
||||
|
||||
static Property vmbus_bridge_props[] = {
|
||||
DEFINE_PROP_UINT8("irq0", VMBusBridge, irq0, 7),
|
||||
DEFINE_PROP_UINT8("irq1", VMBusBridge, irq1, 13),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void vmbus_bridge_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
DeviceClass *k = DEVICE_CLASS(klass);
|
||||
|
@ -2651,6 +2657,7 @@ static void vmbus_bridge_class_init(ObjectClass *klass, void *data)
|
|||
sk->explicit_ofw_unit_address = vmbus_bridge_ofw_unit_address;
|
||||
set_bit(DEVICE_CATEGORY_BRIDGE, k->categories);
|
||||
k->vmsd = &vmstate_vmbus_bridge;
|
||||
device_class_set_props(k, vmbus_bridge_props);
|
||||
/* override SysBusDevice's default */
|
||||
k->user_creatable = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue