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

Re: [Xen-devel] OVMF blows up at unless I use pci_platform=0



On Wed, Feb 15, 2017 at 08:37:44PM -0500, Konrad Rzeszutek Wilk wrote:
> Hey,
> 
> I just built today Xen based on  93e1435290867703c50acad1f54b9208df473562
> Author: Oleksandr Tyshchenko <olekstysh@xxxxxxxxx>
> Date:   Wed Feb 15 12:20:01 2017 +0000
> 
>     IOMMU: always call teardown callback
> 
[...]
> #xl create -c root-image-uefi.xm
> I get:
> 
> !!!! X64 Exception Type - 0E(#PF - Page-Fault)  CPU Apic ID - 00000000 !!!!
> RIP  - 000000003F2658DB, CS  - 0000000000000038, RFLAGS - 0000000000010206
> ExceptionData - 0000000000000002
> RAX  - 0000000000000001, RCX - 000000003F2658BB, RDX - 0000000000000004
> RBX  - 0000000000000000, RSP - 000000003F43B510, RBP - 000000003E574D18
> RSI  - 0000000000000003, RDI - 0000000000000001
> R8   - 0000000000000000, R9  - 0000000000000000, R10 - 000000003EA39198
> R11  - 0000000000000002, R12 - 000000003E575218, R13 - 0000000000000000
> R14  - 000000003E575220, R15 - 000000003F269301
> DS   - 0000000000000030, ES  - 0000000000000030, FS  - 0000000000000030
> GS   - 0000000000000030, SS  - 0000000000000030
> CR0  - 00000000C0000033, CR2 - FFFFFFFFBF2658BB, CR3 - 000000003F3DA000
> CR4  - 0000000000000668, CR8 - 0000000000000000
> DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
> DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
> GDTR - 000000003F3C8A98 0000000000000047, LDTR - 0000000000000000
> IDTR - 000000003EAFD018 0000000000000FFF,   TR - 0000000000000000
> FXSAVE_STATE - 000000003F43B170
> !!!! Find PE image 
> /home/konrad/xen/tools/firmware/ovmf-dir-remote/Build/OvmfX64/DEBUG_GCC5/X64/OvmfPkg/XenBusDxe/XenBusDxe/DEBUG/XenBusDxe.dll
>  (ImageBase=000000003F262000, EntryPoint=000000003F263FE8) !!!!

Which version of gcc did you compile OVMF with?

I can reproduce with a "Page-Fault" in the same modules, but with an OVMF
binary compiled later, I have a "General Protection" fault in the module
PcRtc...

I blame -flto of gcc.

If you have gcc 6.3, to build ovmf without -flto, either:
- build using OvmfPkg/build.sh -a X64 -n 4 -t GCC49
    (that is "-t GCC49" added to ./build.sh call)
- or edit OvmfPkg/build.sh, replace GCC5 by GCC49.

I can try to find out what is wrong, and report it upstream.

-- 
Anthony PERARD

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

 


Rackspace

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