From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=45.249.212.255; helo=huawei.com; envelope-from=hangaohuai@huawei.com; receiver=edk2-devel@lists.01.org Received: from huawei.com (unknown [45.249.212.255]) by ml01.01.org (Postfix) with ESMTP id 197B12035D0FF for ; Tue, 31 Oct 2017 07:25:27 -0700 (PDT) Received: from dggeml405-hub.china.huawei.com (unknown [172.30.72.56]) by Forcepoint Email with ESMTP id E1D00FFEC8F55; Tue, 31 Oct 2017 22:29:16 +0800 (CST) Received: from DGGEML506-MBS.china.huawei.com ([169.254.10.249]) by dggeml405-hub.china.huawei.com ([10.3.17.49]) with mapi id 14.03.0361.001; Tue, 31 Oct 2017 22:29:11 +0800 From: Hangaohuai To: "lersek@redhat.com" CC: "edk2-devel@lists.01.org" , Hangaohuai Thread-Topic: [Help] UEFI boot KVM4T vm hang On TianoCore Thread-Index: AdNSVJl5vQ50LWj7SveacGYIlxYDpw== Date: Tue, 31 Oct 2017 14:29:11 +0000 Message-ID: <643686C90A8F6046B2C3783E2A7A06AD3DDBC439@dggeml506-mbs.china.huawei.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.177.23.7] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: [Help] UEFI boot KVM4T vm hang On TianoCore X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2017 14:25:29 -0000 Content-Language: zh-CN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Laszlo Ersek; I have tested the uefi booting KVM vm with the configuration(xml); but star= t hang. Enable the memoryhotplug, with usb3.0 config. The config as Config1 below. Tested branches: UDK2017 eea98eea4ccbb1d640657770bccb5497fddc6064 Master 76fd5a660d704538a1b14a58d03a4eef9682b01c Both hang on the snapshot TianoCore in VNC Try to shoot the problem; I find the early version can boot success with the same config. Maybe the patch1 below cause the problem; Try to ignore the patch does, the master/ UDK2017 both can boot success. But I don't know why. Hope for your help,thanks. Patch1 *********************************************** commit 4f5eff8193096eb847639f090a7dfae3cff95fde Author: Laszlo Ersek Date: Fri Mar 4 20:06:26 2016 +0100 OvmfPkg: PciHostBridgeLib: install 64-bit PCI host aperture diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c b/OvmfPkg/= Library/PciHostBridgeLib/PciHostBridgeLib index 3e02778..1d3d10a 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c +++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c @@ -132,6 +132,13 @@ InitRootBridge ( RootBus->MemAbove4G.Base =3D 0; RootBus->MemAbove4G.Limit =3D 0; + if (PcdGet64 (PcdPciMmio64Size) > 0) { + RootBus->AllocationAttributes |=3D EFI_PCI_HOST_BRIDGE_MEM64_DECODE; + RootBus->MemAbove4G.Base =3D PcdGet64 (PcdPciMmio64Base); + RootBus->MemAbove4G.Limit =3D PcdGet64 (PcdPciMmio64Base) + + (PcdGet64 (PcdPciMmio64Size) - 1); + } + RootBus->Bus.Base =3D RootBusNumber; RootBus->Bus.Limit =3D MaxSubBusNumber; RootBus->Io.Base =3D PcdGet64 (PcdPciIoBase); diff --git a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf b/OvmfPk= g/Library/PciHostBridgeLib/PciHostBridgeL index bbec746..7a964c7 100644 --- a/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf +++ b/OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf @@ -51,4 +51,6 @@ gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size + gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base + gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId *********************************************** Config1 *********************************************** 4294967296 4294967 4294967 Xxxx
***********************************************