From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0046.outbound.protection.outlook.com [104.47.36.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7406A209589F4 for ; Fri, 11 Aug 2017 15:19:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7wQKpWvR3NgvTR4lKCWN8rLizigyCVBvfm7amhHXiQE=; b=d0Ss2+ideAIR8mEX+OxldZy3J01brOfeW7OBC/gbF4uJTc/rQnBrJvl1QeyjUY+qHVZD/gBAupqT3LC6TvvHhL4xayoABLjLl0sTSnwJv7qZ4+LErVnEUIrin4yMHdGPx0M/GkpqAY0N5CtkYj5tbdk0gKuT9vHib6HkOWc3FVo= Received: from [10.236.136.62] (165.204.77.1) by BY2PR12MB0148.namprd12.prod.outlook.com (10.162.82.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1320.16; Fri, 11 Aug 2017 22:22:11 +0000 Cc: brijesh.singh@amd.com, Jordan Justen , Tom Lendacky , Ard Biesheuvel To: Laszlo Ersek , edk2-devel@lists.01.org References: <1502107139-412-1-git-send-email-brijesh.singh@amd.com> <7dc9df48-98c4-4df4-9b8b-7732ad3f4f2d@amd.com> <528814fa-03a9-cb12-57b2-5a516d087b96@redhat.com> From: Brijesh Singh Message-ID: <5751db0c-8a86-1a2e-16b0-f0292f84f120@amd.com> Date: Fri, 11 Aug 2017 17:22:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <528814fa-03a9-cb12-57b2-5a516d087b96@redhat.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: DM5PR1101CA0013.namprd11.prod.outlook.com (10.174.246.23) To BY2PR12MB0148.namprd12.prod.outlook.com (10.162.82.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 71300c8d-4e0c-4be3-e6b2-08d4e10769a8 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR12MB0148; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0148; 3:ue2JELe/EcCm7iHuyA/hThMP35Hd6kDGzY8M2rpjyAGUyYcTR5I//+hSOsoLDr/kuOkgAMtV9Vq26CW2wHG6E9J4qhicELOZdvfFr8ntGFvBZNd6Kl7PPldSXW/P2/ESPsJ813/y5rtBFpXIpn+C6R4ilTCxq3P+lnHM2vT5mbHp6/qavCdYNFcPQBRSbwKnBDtJbnTIsbLPgXP9PPPuWT4wPLX08pQGfyUvNhwyZJlmf+aG8FyHT10sV9z25Mxi; 25:D1oUZvw3VxPt5FyN02s1ktkiGi8GAQbBGI3xeTRnBIM/8rK9Qd4yCTprc6eeQykXJlP19IjPsYWO/GOhAo+3+P+eA+ONG+pcSaNnsfnMTyLGpyqRl5YGRHwJrOLBnVwwW4ErjIymLNtqoduEVJdhtdNv1PDa7eWN0BwsadUWcRXFska4YtPGFZ1Ku7KYdMq2mTbO22z6yadm+ioC+UXRbFSXlmk4cz7ITuNUPdusSKwtC7eG54XBDiil62k0DtOj9/LYjKb+dcL1/lyTgzShGCoFwo1UehtwFh5FANHU2dhrQkNYr6hzqK6YB2cp2DrnvB5Gf+RvHCV/kkmaBr9NCw==; 31:ONfSrWp1dgkozQf3aui/wIQl1lEP92ErQg836O9h+e4159EYrWydgHBZj8v7JtJkR/bMUmwEbkAoYW63zDWdHQ1LL4ES1B/hezTVPv2HfoC8TvAuWaDTE5iCX4wbz/54z2go8dxwHZFVPVKHVb+Je4PCAJWR0cvE5EgiccieHgHLcWswFeodOA9x0Wf34UwiSL8zJ6G+K8HT/zzW7piGe9mfVcwLj4FHB38L+U2RvFA= X-MS-TrafficTypeDiagnostic: BY2PR12MB0148: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=brijesh.singh@amd.com; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0148; 20:/zwLEcbnBRvJVmPzs1710NlW9lEg70d3OZll5anhY1rH+nDgEHCyd1oXamI+KtvXWeptjpska05egx4di+1SlUFrSecrK8y0XVgoc2ecdfy+1OQEUmBaH7jGdb3SMrFO7oPLK4W1Yolu405QY9VuXfdYLZYd8DFdAva8I5Zy849XKZkJhsnHnueXhxexwoj0tQycgUj+Zl6xGgoTtGP+L6HOY0f3kIYdprVBToPkiDSkNKKlnuYucOSKy8NrKwHQkdLekaHaPlV+yZymLx9H2i1Q3CcfKFHaU4goIeQd/eYSGQ9FJ7fuL0H1I4gOqOWPkI8ZRLJ4j7wz89Ck4qD2rWNEFsuLRcIp2RExgU27IshKKh2IjG+lS27jOGzm3zUlih2UyU3j/kx0pIpB8TdNW2L2l8XURX+XZEVi32jCQhuUUsIBD7UUH/Dtv2/pnTpJAxeabhCcs5v1XioNnOlryICRh3MT18r5N5pbjRZlp8s68ciPy83tV51QjXuk4o5/; 4:Q2T4iYca1FZn6Qn4LIMlWQMVGU/ihYKwKl8Y4Yb81WMS7dOjhhZHm+c4KFCsc6q6Wo7a6PFPa0SiKVqOR5kPF6t4RhqvnaGS5/p00xMXrKZRUo+wsZTMNqjlv+uMoWghMOfXnzYxs6C0mDTSZW8xLLDWWPwWJnshZXEmeZeDi5OqDUQK47LJNW1289/gl601R0FHePh6hKUtkND897Mzfd4erT070leaMZBdFe9XWQvgsNe3e+t2Z158dBvXDgVgpSuB7LFNxmlZqEJPllPHt0zwehmuEH8k/tABKD0CqKg= X-Exchange-Antispam-Report-Test: UriScan:(64507834874202); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123555025)(20161123558100)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR12MB0148; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR12MB0148; X-Forefront-PRVS: 03965EFC76 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6049001)(6009001)(39860400002)(189002)(57704003)(377454003)(24454002)(199003)(50986999)(966005)(25786009)(53546010)(6666003)(105586002)(53936002)(65806001)(305945005)(7736002)(2906002)(2950100002)(42186005)(6116002)(3846002)(68736007)(4326008)(54906002)(6306002)(229853002)(36756003)(65956001)(47776003)(230700001)(106356001)(86362001)(66066001)(33646002)(31686004)(81166006)(189998001)(8676002)(81156014)(64126003)(101416001)(77096006)(31696002)(97736004)(478600001)(6486002)(90366009)(110136004)(54356999)(23676002)(6246003)(83506001)(4001350100001)(93886004)(76176999)(65826007)(5660300001)(7350300001)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0148; H:[10.236.136.62]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJQUjEyTUIwMTQ4OzIzOkRMS29Kc3VqM3Z6UW96dVZkMVNJQU1GQ20y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lXXJaAynRKp0l53wG3giILendzoC1TveMfNuacj4Hlc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0148; 20:+sCfcm6b08C2tK7wP1zT4BEX1BnAwiMYtof4j6R+ec4M1iNcZ8ysKbK5a1HX9QwJzbiaSq/LERQPIUTDGbIvz9ci5/PUfnZO5kqTSus1GFFLpKnUDZ1J1q12eRTDOUPWGvAI8P57/pwUtgHveboljX3AfppdyoTqLxqEf9OElnfMDaPqBQX2ys3P+bnf0JqJPCzhxy/cFuBhFLYUuTD7Tq/WjZAaIcBTLMAlVtvfQr1NtEBx8AQSTSsrqiGi2Fjk X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2017 22:22:11.1593 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0148 Subject: Re: [PATCH v1 00/14] OvmfPkg/Virtio: Add APIs to map system physical to device address 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: Fri, 11 Aug 2017 22:19:53 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 08/09/2017 12:56 PM, Laszlo Ersek wrote: >> >> Sure, I will make the necessary changes in VirtioMmioDeviceLib and try >> do the build test but I don't have aarch64 platform to verify at the >> runtime. > > Actually, dependent on your GNU/Linux distribution, it is pretty easy to > do on x86_64 too. It comes together from two parts: > > (1) installing an aarch64 cross compiler > (2) installing qemu-system-aarch64 (from source or distro package), > and then either using it directly (from the cmdline) or with the > libvirt toolstack > > The only "real" difference is that it's going to use TCG and not KVM > (software emulation rather than hardware virtualization), so it will be > slower, but that's not really a problem if you only care about your VM > until the firmware boots the OS :) > > On Fedora, the cross-compiler (and cross-binutils) packages are built > from the following SRPMs: > > https://koji.fedoraproject.org/koji/buildinfo?buildID=921790 > https://koji.fedoraproject.org/koji/buildinfo?buildID=912429 > > ("cross-gcc", "cross-binutils") > > Linaro distributes distro-independent cross compilers: > > http://www.linaro.org/downloads/ > > Build instructions for ArmVirtQemu, and usage hints for the QEMU command > line, can be found in the Linaro Wiki: > > https://wiki.linaro.org/LEG/UEFIforQEMU v2 is almost ready for review, I have made all the necessary changes in VirtioMmioDeviceLib and it builds fine for aarch64 but I am having trouble booting the qemu-aarch64 in general. On serial console I see the UEFI debug messages but it never reaches to UEFI shell. I have been following the steps from https://wiki.linaro.org/LEG/UEFIforQEMU qemu-system-aarch64 \ -m 1024 \ -cpu cortex-a57 \ -M virt \ -bios QEMU_EFI.fd \ -serial stdio I tried this steps with and without my patches and it resulted in the same. It seems like I am missing something in the qemu cli, do I need to pass special dtb file or something similar ? P.S: the wiki talks about a prebuilt qcow2 image but the link is dead, instead I downloaded a qcow2 file from Ubuntu repo. -Brijesh