From: Marcel Apfelbaum Date: Mon, 7 Mar 2016 19:14:37 +0000 (+0200) Subject: hw/acpi: fix Q35 support for legacy Windows OS X-Git-Tag: TizenStudio_2.0_p2.4~27^2~6^2~8^2~115^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c82f503dd5c3f0a01a9e63741f1f875652669867;p=sdk%2Femulator%2Fqemu.git hw/acpi: fix Q35 support for legacy Windows OS Legacy Windows operating systems like Windows XP and Windows 2003 require _DIS method to be present for all interrupt links. PC machines already have a no-op implemented for GSI links, add it also in Q35. Signed-off-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index dbd0b93..0e32395 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1556,6 +1556,12 @@ static Aml *build_gsi_link_dev(const char *name, uint8_t uid, uint8_t gsi) aml_append(dev, aml_name_decl("_CRS", crs)); + /* + * _DIS can be no-op because the interrupt cannot be disabled. + */ + method = aml_method("_DIS", 0, AML_NOTSERIALIZED); + aml_append(dev, method); + method = aml_method("_SRS", 1, AML_NOTSERIALIZED); aml_append(dev, method);