From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N35WQ-0005O5-FO for qemu-devel@nongnu.org; Wed, 28 Oct 2009 06:12:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N35WL-0005G9-D0 for qemu-devel@nongnu.org; Wed, 28 Oct 2009 06:12:53 -0400 Received: from [199.232.76.173] (port=45825 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N35WL-0005Fp-7R for qemu-devel@nongnu.org; Wed, 28 Oct 2009 06:12:49 -0400 Received: from isrv.corpit.ru ([81.13.33.159]:41806) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N35WK-0006nR-PS for qemu-devel@nongnu.org; Wed, 28 Oct 2009 06:12:49 -0400 Message-ID: <4AE81918.70502@msgid.tls.msk.ru> Date: Wed, 28 Oct 2009 13:12:40 +0300 From: Michael Tokarev MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: How to use -acpitable to add a SLIC-table? References: <49D0E6E6.4000302@the2masters.de> In-Reply-To: <49D0E6E6.4000302@the2masters.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hellermann Cc: "qemu-devel@nongnu.org" Replying to an old email... Stefan Hellermann wrote at 30-Mar-2009: > Gleb Natapov schrieb: >> On Thu, Mar 26, 2009 at 06:35:16PM +0100, Stefan Hellermann wrote: >> >>> Hello, >>> >>> how can I use the -acpitable parameter to add a SLIC-table to the >>> qemu-bios dynamically? >>> >>> I think I need a file with the SLIC-data, but how can I extract this >>> data out of my BIOS from my host-machine for example? >>> >>> The -acpitable parameter accepts a bunch of settings and a datafile, do >>> I need to set all these settings? I think most of them should sit in the >>> SLIC-file. >>> >>> >> -acpitable parameter settings are field from common ACPI table header. >> If you skip any of them default will be used. Table data that goes after >> headers should be specified after data=. >> >> >>> I tried using SLIC-Data-files downloaded from the web, but I'm unsure if >>> they are formatted correctly. >>> >> It looks like they already contain ACPI header. >> > Okay, I did some new tries. On my own (real-)machine I did > # acpidump -o acpidata > # acpixtract -l dump | grep SLIC > Signature Length OemId OemTableId OemRevision CompilerId > CompilerRevision > SLIC 374 "LENOVO" "TP-7O " 00002210 " LTP" 00000000 > # acpixtract -sSLIC acpidata > # qemu-system-x86_64 -acpitable > sig=SLIC,rev=1,oem_id=LENOVO,oem_table_id=TP-70\ \ \ > ,oem_rev=00002210,asl_compiler_id=\ > LTP,asl_compiler_rev=00000000,data=SLIC.dat > > But this doesn't work either. I diffed the output of acpidump with the > -acpitable parameter and without, the results are the same. > I compared my own SLIC.dat file with the ones I downloaded from the web, > the first bytes of the files look similar. I think they are in the same > format. >> >>> -acpitable data=SLIC.aml or SLIC.bin doesn't throw an error, but the >>> linux-kernel in the virtual machine doesn't detect new acpi-tables. I >>> attached a hexdump from these two files. >>> >> How do you know they are not detected. Can you send acpidump output? >> >> > I checked the start of dmesg-output, i think it lists (all?) > acpi-tables. On my real-machine there is a line > ACPI: SLIC 7F6CBE62, 0176 (r1 LENOVO TP-7O 2210 LTP 0) > In the qemu-vm there is no such line. > > #qemu-system-x86_64 -help | head -n 1 > QEMU PC emulator version 0.10.0 (kvm-devel), Copyright (c) 2003-2008 > Fabrice Bellard Stefan, Was you able to actually specify an externa SLIC table with qemu? The thread I'm replying to is quite old and it ends prematurely without any definitive result. I tried it in qemu-0.11.0 and qemu-kvm-0.11.0, but it looks like -acpitable gets ignored the same way as it was in 0.10.0 as you observed. Thanks!