From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhxZn-0003p9-Bn for qemu-devel@nongnu.org; Tue, 14 Apr 2015 05:56:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhxZi-0005Lk-Ia for qemu-devel@nongnu.org; Tue, 14 Apr 2015 05:56:15 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:18340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhxZh-0005KR-WC for qemu-devel@nongnu.org; Tue, 14 Apr 2015 05:56:10 -0400 Message-ID: <552CE41B.2070501@huawei.com> Date: Tue, 14 Apr 2015 17:55:39 +0800 From: Shannon Zhao MIME-Version: 1.0 References: <1428055432-12120-1-git-send-email-zhaoshenglong@huawei.com> <1428055432-12120-20-git-send-email-zhaoshenglong@huawei.com> <87mw2cj9zi.fsf@linaro.org> <552C691D.3090702@huawei.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v4 19/20] hw/arm/virt-acpi-build: Add PCIe controller in ACPI DSDT table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: hangaohuai@huawei.com, "Michael S. Tsirkin" , Alexander Spyridakis , Mark Salter , Claudio Fontana , QEMU Developers , Laszlo Ersek , Hanjun Guo , Igor Mammedov , Paolo Bonzini , "Huangpeng (Peter)" , =?UTF-8?B?QWxleCBCZW5uw6ll?= , Christoffer Dall , Shannon Zhao On 2015/4/14 17:30, Peter Maydell wrote: > On 14 April 2015 at 02:10, Shannon Zhao wrote: >> On 2015/4/13 23:58, Alex Bennée wrote: >>> >>> Shannon Zhao writes: >>>> + UUID = aml_touuid(0x33DB4D5B, 0x1FF7, 0x401C, 0x9657, >>>> 0x7441C03DD766); >>> >>> This looks like a fairly unreadable uuid already. What are these magic numbers? >>> >> >> Yes, this will be modified to use string according to the spec. Like below way: >> >> UUID = aml_touuid("33DB4D5B-1FF7-401C-9657-7441C03DD766"); > > Those are still magic numbers, you've just put them into > a different format. Where do they come from? What do they mean? > This is from the PCI Firmware Spec. "The _OSC interface for a PCI/PCI-X/PCI Express hierarchy is identified by the Universal Unique IDentifier (UUID) 33db4d5b-1ff7-401c-9657-7441c03dd766." "The UUID in _DSM in this context is {E5C937D0-3553-4d7a-9117-EA4D19C3434D}" Maybe I should use a macro definition for them. -- Thanks, Shannon