Skip to content

Commit 8f06f22

Browse files
ariloubonzini
authored andcommitted
hyperv: vmbus: Remove the 2nd IRQ
It seems like Windows does not really require 2 IRQs to have a functioning VMBus. Signed-off-by: Jon Doron <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 74aaddc commit 8f06f22

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

hw/hyperv/vmbus.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,8 +2741,7 @@ static const VMStateDescription vmstate_vmbus_bridge = {
27412741
};
27422742

27432743
static Property vmbus_bridge_props[] = {
2744-
DEFINE_PROP_UINT8("irq0", VMBusBridge, irq0, 7),
2745-
DEFINE_PROP_UINT8("irq1", VMBusBridge, irq1, 13),
2744+
DEFINE_PROP_UINT8("irq", VMBusBridge, irq, 7),
27462745
DEFINE_PROP_END_OF_LIST()
27472746
};
27482747

hw/i386/acpi-build.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,9 +967,7 @@ static Aml *build_vmbus_device_aml(VMBusBridge *vmbus_bridge)
967967
aml_append(dev, aml_name_decl("_PS3", aml_int(0x0)));
968968

969969
crs = aml_resource_template();
970-
aml_append(crs, aml_irq_no_flags(vmbus_bridge->irq0));
971-
/* FIXME: newer HyperV gets by with only one IRQ */
972-
aml_append(crs, aml_irq_no_flags(vmbus_bridge->irq1));
970+
aml_append(crs, aml_irq_no_flags(vmbus_bridge->irq));
973971
aml_append(dev, aml_name_decl("_CRS", crs));
974972

975973
return dev;

include/hw/hyperv/vmbus-bridge.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ typedef struct VMBus VMBus;
1919
typedef struct VMBusBridge {
2020
SysBusDevice parent_obj;
2121

22-
uint8_t irq0;
23-
uint8_t irq1;
22+
uint8_t irq;
2423

2524
VMBus *bus;
2625
} VMBusBridge;

0 commit comments

Comments
 (0)