From nobody Sun Feb 8 05:29:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1592391874; cv=none; d=zohomail.com; s=zohoarc; b=iofZtD4v7au8xo4fudOmN7kxZEmie0zHyE4Ny+5yViGN6aJ/xunoLf7YmTvE7dTgYZlYN28nGkERpOZfsjYv+stm+2M6tme7sioR2DrQwHBiW1MwbJb/zJFQT9T8kbvOKBgJkcCX2E6UsUsgbfr/2Y2SS3iaLokaH2SzRf7lwxg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592391874; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=aWndGdqKa1SXKyQPqVUUIP7N2TD8jiKpi3mQeXOmyP4=; b=KZ68s6gHHMjg79c535XVK62pshVfGDeHyVvRm4/mxZgW87ItPqO7ONmSEDVzc2pGZBwn++yap2UdjrNpt78u87sWI8PLKOh/Ku87nEFGSHQO2slI5nRM/pL2CdGScZUwinX22jBm6PiDpNz1uDV1qN7omvr/Kk+opYK5qYnp7ZI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592391874590917.4860776070038; Wed, 17 Jun 2020 04:04:34 -0700 (PDT) Received: from localhost ([::1]:43912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlVrr-0006Z8-B5 for importer@patchew.org; Wed, 17 Jun 2020 07:04:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlVqn-0005hu-3f for qemu-devel@nongnu.org; Wed, 17 Jun 2020 07:03:25 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:43330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlVqj-0005K1-6d for qemu-devel@nongnu.org; Wed, 17 Jun 2020 07:03:24 -0400 Received: by mail-ej1-x632.google.com with SMTP id l12so1825748ejn.10 for ; Wed, 17 Jun 2020 04:03:20 -0700 (PDT) Received: from jondnuc.lan (IGLD-84-229-154-20.inter.net.il. [84.229.154.20]) by smtp.gmail.com with ESMTPSA id dc8sm11835806edb.10.2020.06.17.04.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 04:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aWndGdqKa1SXKyQPqVUUIP7N2TD8jiKpi3mQeXOmyP4=; b=AQ2GPuzsHTqzdWni5s5QrcH5jcix2loohMgEFs0s1hFEh1HXwnjeoH2yhVbVwaYWP3 YUMUjySxlhwxfh7XDfhnDnplpJKHJTexVIy118Ol9uwp5mkpCHFaqD0/NNACz2Y25JUb 1SLR7BGnoxG72fTKnBl813L1KFC54Y45oEO/+Ju0a5kA2U07ZGZghOWCRhObrujkDrlG whyybPbuTbRsjDorQWfPl5XOjPQx0d4EqYtqdvo9waN2epuASPMexzy16X3i2G+vrIr4 S4XTJ3kY8UoduKmh7Zqd6RkPGdo+yzsyVdpuPIIyf/ixo5Kfw9WFa9o1th78NUM/qGpQ W/5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aWndGdqKa1SXKyQPqVUUIP7N2TD8jiKpi3mQeXOmyP4=; b=L90AyhktcyfeyfBbW81CK0W3Xcx29BUn++0qDuKj6Yj1FdOv7YjyW9YlTlmXScPBrN k9XmwbJVtkHj4CmdSbC5eVbBBbXuv7pPN+L7MhiCjj3l9txw6ogV9+BI5sGpaZgY2quG R198yza3haM0/7WukJkONDtcqUtiqbSh6gsHNDEBf1CwePafF9BD/dzfQl9ggHnfROsR dBprCD8+ZVxoZpGXULVf9rXHXUaNFDHL1KnBlXz0aBzhijYwlhX7JuB2WmrokKwfE9cu 5HbjA2OyYLzNakSgl4XNqO9iTT9jK73IyEcZgDBjyDRWq7d2PBf9Reb+b6lRdh9X3/ei uaCA== X-Gm-Message-State: AOAM530p/qcFDqHdkuOTe4rzz0LhjVhPT8bzhaidTh8k6if4OF/K6bg4 +6BVpL1OGN4TJDZ6e6KUDwbibu8r X-Google-Smtp-Source: ABdhPJwuciFZHnxFyuULjk3xpPQhZHmQZXHFQ2Xse4FreETfV68NLUuTZZHMXxyiAOxSUhwCnjFreg== X-Received: by 2002:a17:906:3499:: with SMTP id g25mr6813904ejb.518.1592391799100; Wed, 17 Jun 2020 04:03:19 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Subject: [PATCH v1 1/3] hyperv: vmbus: Remove the 2nd IRQ Date: Wed, 17 Jun 2020 14:03:02 +0300 Message-Id: <20200617110304.636666-2-arilou@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200617110304.636666-1-arilou@gmail.com> References: <20200617110304.636666-1-arilou@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=arilou@gmail.com; helo=mail-ej1-x632.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mail@maciej.szmigiero.name, Jon Doron , rvkagan@yandex-team.ru, imammedo@redhat.com, pbonzini@redhat.com, vkuznets@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" It seems like Windows does not really require 2 IRQs to have a functioning VMBus. Signed-off-by: Jon Doron --- hw/hyperv/vmbus.c | 1 - hw/i386/acpi-build.c | 2 -- include/hw/hyperv/vmbus-bridge.h | 1 - 3 files changed, 4 deletions(-) diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c index f371240176..1a3738a03b 100644 --- a/hw/hyperv/vmbus.c +++ b/hw/hyperv/vmbus.c @@ -2742,7 +2742,6 @@ static const VMStateDescription vmstate_vmbus_bridge = =3D { =20 static Property vmbus_bridge_props[] =3D { DEFINE_PROP_UINT8("irq0", VMBusBridge, irq0, 7), - DEFINE_PROP_UINT8("irq1", VMBusBridge, irq1, 13), DEFINE_PROP_END_OF_LIST() }; =20 diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 900f786d08..dce680e97c 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1083,8 +1083,6 @@ static Aml *build_vmbus_device_aml(VMBusBridge *vmbus= _bridge) =20 crs =3D aml_resource_template(); aml_append(crs, aml_irq_no_flags(vmbus_bridge->irq0)); - /* FIXME: newer HyperV gets by with only one IRQ */ - aml_append(crs, aml_irq_no_flags(vmbus_bridge->irq1)); aml_append(dev, aml_name_decl("_CRS", crs)); =20 return dev; diff --git a/include/hw/hyperv/vmbus-bridge.h b/include/hw/hyperv/vmbus-bri= dge.h index c0a06d832c..0369dabc03 100644 --- a/include/hw/hyperv/vmbus-bridge.h +++ b/include/hw/hyperv/vmbus-bridge.h @@ -20,7 +20,6 @@ typedef struct VMBusBridge { SysBusDevice parent_obj; =20 uint8_t irq0; - uint8_t irq1; =20 VMBus *bus; } VMBusBridge; --=20 2.24.1 From nobody Sun Feb 8 05:29:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1592391975; cv=none; d=zohomail.com; s=zohoarc; b=d35rUSq9AVGjt8vH3EPjXfSd3SJeyH08BCAw+zIpX7r+jj1BVE7Nn9mdQx0AucH+6V21EbVpSGFVPnM4TxIbNEQyMVyJcyLH8RJJdkxNgO4DjCTkJIpW+MbGRNMRsBEU3D0FjaMkGjkp52+U5G1Tig6G5xQmeBxU2x3mbsEfz5Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592391975; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=WiNUb7t32KnTMP03i/GQezdP9adjf5u3/DZqFCVRrqs=; b=ha2rWv7RVPDCw8DFueLvPxUUhOSXXS7dilwl3N/Imzec7jTVnveZQmEFhegmwpWFJSbC/Z3YM9lTygOtNuUPOwOX2sHP/ahXdhmwPQXFe7ZUyzYJIfRo6w/qOf8LpaX3FMlenMdCs4pwPXnWUvg69gqyTa48PCVMt9Y3W0kykFs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1592391975084633.0946857140685; Wed, 17 Jun 2020 04:06:15 -0700 (PDT) Received: from localhost ([::1]:48594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlVtV-0000aZ-RD for importer@patchew.org; Wed, 17 Jun 2020 07:06:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlVql-0005hQ-VZ for qemu-devel@nongnu.org; Wed, 17 Jun 2020 07:03:24 -0400 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]:43794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlVqj-0005K9-PP for qemu-devel@nongnu.org; Wed, 17 Jun 2020 07:03:23 -0400 Received: by mail-ej1-x642.google.com with SMTP id l12so1825818ejn.10 for ; Wed, 17 Jun 2020 04:03:21 -0700 (PDT) Received: from jondnuc.lan (IGLD-84-229-154-20.inter.net.il. [84.229.154.20]) by smtp.gmail.com with ESMTPSA id dc8sm11835806edb.10.2020.06.17.04.03.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 04:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WiNUb7t32KnTMP03i/GQezdP9adjf5u3/DZqFCVRrqs=; b=fCndc+86fuFDxadHuNrbrNaPjXpZq/GfveWO3KTK+OtXetzWXRpXkKS/c7sQ5PWHze lKajarmMWe/uw/XMh6OdENLu9TqpNCMVOMcUQyhvzpcKoxE2aoQKfI3iHdyjKpFVjFiW 3JSRydjnIGDw1fAnWkaL3uK5afgl05zg22mtqspMKa5y4HLBqVMNbgVmxVM1TQbv+VSN KZ5N5N9RAa8Y1VjYkzkapyUSzfyKDQJU4iuDXSTqX/kjr3sU6gE+5FVjdvcCts5qDKPF P/u62MdVpi3FGi3Spyih4zNwqKindNOhivHTF7L0Z/vo8QNT3lieUV0wbOk19QX4xqqr cOcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WiNUb7t32KnTMP03i/GQezdP9adjf5u3/DZqFCVRrqs=; b=g0osc7BpEE4b341bxV6sJlJ9OH69WmpdTU16SL6BRsDmuUUR79l43AAL7F4dnSDOr7 yN/lMcDIF/VDGb17JO3XBw8JH8x7BnrgXXCVaY8dEX/lp0JaN+twtnhmCOx1Qkxnha5w HvfZGOb7ElCNTtnyGzEOJOCW6WvFb5BQwW00gy8I3D7UwjrmtHDcU+uS7ToaSmQu9ptc /aA8a4zX12MiFvdHv6DqDZRq2+ed1FKBSMEzl/gXbFgxOgz0L/WoZzo7Nj4T+APcQfFu 1BUDERUfqM26RSYjkhKY8P3zMQYadM81ijH6VZEFkiCrlkc2l3CvAX5Gqxmyw6SBjNti SJbw== X-Gm-Message-State: AOAM532lUbeFwBTIu0T5TzXW77rwOsxQt4T/RcdRzvb87fqCJqlw5c02 liVNa5D3npbiuNHhy2lUKvTS6hwH X-Google-Smtp-Source: ABdhPJzupnxEIo99d/+2gAsYak2sXfm/d+ISqDN/u5H7AODlg9Y1QMuwgcWDCwgRN8cE7yg1jLvo1w== X-Received: by 2002:a17:907:7294:: with SMTP id dt20mr6840732ejc.355.1592391800322; Wed, 17 Jun 2020 04:03:20 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Subject: [PATCH v1 2/3] i386: acpi: vmbus: Add _ADR definition Date: Wed, 17 Jun 2020 14:03:03 +0300 Message-Id: <20200617110304.636666-3-arilou@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200617110304.636666-1-arilou@gmail.com> References: <20200617110304.636666-1-arilou@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::642; envelope-from=arilou@gmail.com; helo=mail-ej1-x642.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mail@maciej.szmigiero.name, Jon Doron , rvkagan@yandex-team.ru, imammedo@redhat.com, pbonzini@redhat.com, vkuznets@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" It seems like latest HyperV sets _ADR to 0 in the ACPI for the VMBS Signed-off-by: Jon Doron --- hw/i386/acpi-build.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index dce680e97c..508f5d9dd7 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1061,6 +1061,7 @@ static Aml *build_vmbus_device_aml(VMBusBridge *vmbus= _bridge) =20 dev =3D aml_device("VMBS"); aml_append(dev, aml_name_decl("STA", aml_int(0xF))); + aml_append(dev, aml_name_decl("_ADR", aml_int(0x0))); aml_append(dev, aml_name_decl("_HID", aml_string("VMBus"))); aml_append(dev, aml_name_decl("_UID", aml_int(0x0))); aml_append(dev, aml_name_decl("_DDN", aml_string("VMBUS"))); --=20 2.24.1 From nobody Sun Feb 8 05:29:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1592392079; cv=none; d=zohomail.com; s=zohoarc; b=URBrnCGIOCeQv0x8qjcs4/x0cAcaK3kplZUsnNE0rRg7drpK7CKD5ujVhU+n0ah76q1/g9HBNas/nF5VL9QRbg2zme45xSy4/6jfjIeNk4UNmtz3l5Uly+AQUdEG5HOnbL+VeI8eTbhWjwc3ToyeHsrIBg13hy7SfSyrCJjJYOs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592392079; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Adc4PqF6yGgQ3b/CEhSVUuiuBWd/GelfhlOYnoVOqRU=; b=P598HMOBy4oIvLGC/Xq/aOdcGREXLs6XcvhkWoAcF2+PaOEZqj74WDgBlWKMHqfupSn6C7n/8sXMhM8/VMgxU1aBKPef75AYR1NCTkdpAvF1iuO6ZEsyLlQ1RjU2lB7jIMCm5FGvApuXIsWIDyA4zP0vXe83EuXBoAwBEp/eGDA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15923920790207.416941144249108; Wed, 17 Jun 2020 04:07:59 -0700 (PDT) Received: from localhost ([::1]:50978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlVuN-0001at-Ak for importer@patchew.org; Wed, 17 Jun 2020 07:07:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlVqm-0005hr-NV for qemu-devel@nongnu.org; Wed, 17 Jun 2020 07:03:24 -0400 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]:39572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jlVql-0005KI-4R for qemu-devel@nongnu.org; Wed, 17 Jun 2020 07:03:24 -0400 Received: by mail-ej1-x642.google.com with SMTP id f7so1840128ejq.6 for ; Wed, 17 Jun 2020 04:03:22 -0700 (PDT) Received: from jondnuc.lan (IGLD-84-229-154-20.inter.net.il. [84.229.154.20]) by smtp.gmail.com with ESMTPSA id dc8sm11835806edb.10.2020.06.17.04.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 04:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Adc4PqF6yGgQ3b/CEhSVUuiuBWd/GelfhlOYnoVOqRU=; b=vDpckGMdO+elaS3F+uRz+nxDbMjpMJzQpll2H5IVj+o7qW8L6fD7/8C6B3/KC/DoLa xJg9svY26OvfOF2iy0AAWWBM4VelXWdEq3/uJOVaTfOcP8EwRI1kxjKx2OfWXyir47Xc Axw4nLOVdB8dTLBFBHS1BPSuBRrEtEIjLetxuKMUw89pD5Fq0aW/rNVemEyK7XBdCA2T 0N29wNmbDqku+BR47PFSk5Zh8ZnrKZcDXXHg45G1/8lAPE5E4S334ikXDAQw9DhmiMvW pFjx4Z69trZD0cn6LeBpkZLQkdfeYsLchoLz3VXIrV3V3uast9slGRtzWLvODjzrP6Aa CRKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Adc4PqF6yGgQ3b/CEhSVUuiuBWd/GelfhlOYnoVOqRU=; b=sHPf2aYXoMhhb/krRYo47F427V7yCb6B2iZojlo3wwmdUfWQL4Sd8rToSM4J35QTSc BffmvJGMojAULDWIZens7rmvm7B4osRyM62yp2CkGuOGlbReSTHP7u8DEVyX9LOeAiEy MEhT+mEQuKufXKQ9tPb7ZNgOwB04Udtll9VqWHbdNzm7ZcNJkimQxi8IWHSkBRDTAB16 +HDGF6h44UomQ+eMfqKMY5TfcGwXuni4OYC8U70cj/LsQgv+oOPBu9uWDXg3B+wu/8kA 6RcsnRkIKYChZeY28v2atCtniJgz6Q0i1kK4XiJcZbwXRQLgfJo/ayljXPlDYkbMGeKz xZsA== X-Gm-Message-State: AOAM533M9FeJJlOg4kvxtGMxy2xj67R+zlp5Y3CV24YBP3cNKxfd+KYU Bll1o9NEpS3A+5Bu/0Rt7bQYsDC2 X-Google-Smtp-Source: ABdhPJxHOlbThjWsovQ/hadIAIviPUnFCmHr0BMaqgzHYJlkEz0sLSjKAs79aHS+Nk8NNgvn+azpkQ== X-Received: by 2002:a17:906:c155:: with SMTP id dp21mr6764622ejc.92.1592391801562; Wed, 17 Jun 2020 04:03:21 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Subject: [PATCH v1 3/3] acpi: i386: Move VMBus DSDT entry to SB Date: Wed, 17 Jun 2020 14:03:04 +0300 Message-Id: <20200617110304.636666-4-arilou@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200617110304.636666-1-arilou@gmail.com> References: <20200617110304.636666-1-arilou@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::642; envelope-from=arilou@gmail.com; helo=mail-ej1-x642.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mail@maciej.szmigiero.name, Jon Doron , rvkagan@yandex-team.ru, imammedo@redhat.com, pbonzini@redhat.com, vkuznets@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Jon Doron --- hw/i386/acpi-build.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 508f5d9dd7..2c97358d5b 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -1092,7 +1092,6 @@ static Aml *build_vmbus_device_aml(VMBusBridge *vmbus= _bridge) static void build_isa_devices_aml(Aml *table) { ISADevice *fdc =3D pc_find_fdc0(); - VMBusBridge *vmbus_bridge =3D vmbus_bridge_find(); bool ambiguous; =20 Aml *scope =3D aml_scope("_SB.PCI0.ISA"); @@ -1113,10 +1112,6 @@ static void build_isa_devices_aml(Aml *table) isa_build_aml(ISA_BUS(obj), scope); } =20 - if (vmbus_bridge) { - aml_append(scope, build_vmbus_device_aml(vmbus_bridge)); - } - aml_append(table, scope); } =20 @@ -1661,6 +1656,7 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, PCIBus *bus =3D NULL; TPMIf *tpm =3D tpm_find(); int i; + VMBusBridge *vmbus_bridge =3D vmbus_bridge_find(); =20 dsdt =3D init_aml_allocator(); =20 @@ -1675,6 +1671,9 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, aml_append(dev, aml_name_decl("_ADR", aml_int(0))); aml_append(dev, aml_name_decl("_UID", aml_int(1))); aml_append(sb_scope, dev); + if (vmbus_bridge) { + aml_append(sb_scope, build_vmbus_device_aml(vmbus_bridge)); + } aml_append(dsdt, sb_scope); =20 build_hpet_aml(dsdt); @@ -1692,6 +1691,9 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, aml_append(dev, aml_name_decl("_UID", aml_int(1))); aml_append(dev, build_q35_osc_method()); aml_append(sb_scope, dev); + if (vmbus_bridge) { + aml_append(sb_scope, build_vmbus_device_aml(vmbus_bridge)); + } aml_append(dsdt, sb_scope); =20 build_hpet_aml(dsdt); --=20 2.24.1