[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] HVM firmware passthrough - helper library


  • To: Ross Philipson <ross.philipson@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Art Napor <artnapor@xxxxxxxxx>
  • Date: Tue, 26 Mar 2013 21:50:55 -0700 (PDT)
  • Delivery-date: Wed, 27 Mar 2013 09:20:32 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=x4q1GAaskQmz76Z56AA9FlthBuMxwGI+nqxvIkeRt+8VBj0R5MynvpxcxZa3rqcLt3bHROMJFqMp/LRLk9FCcDfSu8XW9W0jC0Hro4Jbky3phbsG/Dc1koVvAyKiRHW9B/6JzSA7g30YHoNWRQDGJKCNWIbJBorYSddGBV9rTDc=;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Works great with the updated libxl commits - thanks. 

> ./biospt 6
> Make SMBIOS file from FW.
> Fail(1), errno: 2

Looks like this does require the sysfs-dmi kmod to expose the dmi structure for the utility to write out the smbios_fw.bin.

# ./biospt 6
Make SMBIOS file from FW.
Make SMBIOS Xen vendor struct.
Wrote SMBIOS structures file: smbios_fw.bin count: 8
Make ACPI SLIC file from FW.
Fail(3), errno: 2

Do the ACPI tables require the same exposure via sysfs? Not sure if this changes from 2.6 to 3.x kernels. The biospt utility can dump the ACPI tables using the MMAP option, but not via sysfs on a 3.4.32 system.


Thanks,
Art



From: Ross Philipson <ross.philipson@xxxxxxxxxx>
To: Art Napor <artnapor@xxxxxxxxx>; "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sent: Sunday, March 24, 2013 5:10 PM
Subject: Re: HVM firmware passthrough - helper library

On 03/21/2013 03:42 PM, Art Napor wrote:
> Ross,
>
> I rebuilt Xen 4.2.1 with the V5 patch series and the updated helper
> library. The biospt utility built cleanly and runs on Dom0 with the
> aformentioned libraries in place. However, I'm not seeing the SMBIOS
> strings passed through to the DomU (A Centos 5 VM). Options 1 and 3
> using the biostpt utility appear to dump the SMBIOS and ACPI tables, but
> I'm not sure how to pass the tables in to the VM?

Look at the related commits to libxl. After the firmware chunks are
given to libxc to load into the new domain, the addresses are returned
to libxl which writes them to xenstore.

>
> [root@localhost biospt]# ./biospt
> Usage:
> $ biospt <n>
> 1 - Write some SMBIOS tables using MMAP
> 2 - Write some SMBIOS tables using SYSFS
> 3 - Write some ACPI tables using MMAP
> 4 - Write some ACPI using SYSFS
> 5 - Read and trace DMI files
> 6 - Write out some test files
>
> ./biospt 6
> Make SMBIOS file from FW.
> Fail(1), errno: 2

This is a rather rough test app for using the library. You should look
closely at the code in it and figure out what it is doing. It does not
have very robust error handling etc.

Thanks
Ross

>
>
> -
> Art
>
> ------------------------------------------------------------------------
> *From:* Ross Philipson <ross.philipson@xxxxxxxxxx>
> *To:* xen-devel@xxxxxxxxxxxxxxxxxxx
> *Cc:* Art Napor <artnapor@xxxxxxxxx>
> *Sent:* Wednesday, March 20, 2013 4:08 PM
> *Subject:* Re: HVM firmware passthrough - helper library
>
>
>  > Ross,
>  >
>  > Finally got back to this project to test out the helper lib using the v3
>  > hvm-firmware passthrough patches with Xen 4.2.1. When building from
>  > tools/firmware the build failed with the following output:
>  >
>  > make
>  > gcc -Wl,-soname -Wl,libxenhvm.so.1.0 -shared -o libxenhvm.so.1.0.0
>  > xenhvm.opic smbios_module.opic acpi_module.opic xh_internal.opic
>  >
> /home/ajn131/rpmbuild/SOURCES/xen-4.2.1/tools/firmware/libhvm/../../../tools/xenstore/libxenstore.so
>  >
>  > xenhvm.opic: could not read symbols: File in wrong format
>  > collect2: ld returned 1 exit status
>  > make: *** [libxenhvm.so.1.0.0] Error 1
>  >
>  > I was hoping to integrate the build into the RPM. Any thoughts? Should I
>  > try it with the latest 4.3?
>  >
>  >
>  > Thanks Again,
>  >
>  > -
>  > Art
>
> Art,
>
> Can you try the attached tarball. A colleague found and fixed a couple
> of issues in my sample including the face that it was including in the
> wrong Rules.mk.
>
> Thanks
> Ross
>
>  > ------------------------------------------------------------------------
>  > *From:* Ross Philipson <Ross.Philipson@xxxxxxxxxx
> <mailto:Ross.Philipson@xxxxxxxxxx>>
>  > *To:* "xen-devel@xxxxxxxxxxxxxxxxxxx
> <mailto:xen-devel@xxxxxxxxxxxxxxxxxxx>" <xen-devel@xxxxxxxxxxxxxxxxxxx
> <mailto:xen-devel@xxxxxxxxxxxxxxxxxxx>>
>  > *Cc:* "Art Napor (artnapor@xxxxxxxxx <mailto:artnapor@xxxxxxxxx>)"
> <artnapor@xxxxxxxxx <mailto:artnapor@xxxxxxxxx>>
>  > *Sent:* Tuesday, January 8, 2013 5:04 PM
>  > *Subject:* HVM firmware passthrough - helper library
>  >
>  > Attached is a tarball with a helper library for reading host ACPI and
>  > SMBIOS firmware and creating firmware files that can be used with the
>  > HVM firmware passthrough patches I submitted. I used it in my testing of
>  > the patches and planned to use it later when we moved to a new Xen
>  > version. This library was requested by a few people - I hope you find it
>  > useful.
>  >
>  > Ross Philipson
>  > Senior Software Engineer
>  > Citrix Systems, Inc
>  > 14 Crosby Drive
>  > Bedford, MA 01730
>  > 781-301-7949
>  > ross.philipson@xxxxxxxxxx <mailto:ross.philipson@xxxxxxxxxx>
> <mailto:ross.philipson@xxxxxxxxxx <mailto:ross.philipson@xxxxxxxxxx>>
>  >
>
>
>
>
>



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.