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

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


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

And tried this guest which used to work in the past:

# more root-image-uefi.xm 
kernel = "hvmloader"
vcpus = 2
disk = [ 'file:/home/konrad/root_image-uefi.iso,hdc:cdrom,r']
vif = [ 'mac=00:0F:4B:00:00:68, bridge=switch' ]

#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 
 (ImageBase=000000003F262000, EntryPoint=000000003F263FE8) !!!!

Now interestingly enough, if I change 'xen_platform_pci' to be '0'
it works peachy ...  except later on I hit something else.

(If I try running Xen under Xen, if I just boot Linux it works OK):

Xen 4.9-unstable (c/s Wed Feb 15 12:20:01 2017 +0000 git:93e1435-dirty) EFI 
Using configuration file 'xen.cfg'
vmlinuz: 0x000000003c766000-0x000000003cc9d790
initramfs.cpio.gz: 0x000000003519e000-0x000000003b66d47f
 Xen 4.9-unstable
(XEN) Xen version 4.9-unstable (konrad@) (gcc (GCC) 6.3.1 20161221 (Red Hat 
6.3.1-1)) debug=y  Wed Feb 15 11:23:32 EST 2017
(XEN) Latest ChangeSet: Wed Feb 15 12:20:01 2017 +0000 git:93e1435-dirty
(XEN) Bootloader: EFI
(XEN) Command line: console=vga,com1 com1=115200,8n1 iommu=verbose
(XEN) Video information:
(XEN)  VGA is graphics mode 800x600, 32 bpp
(XEN) Disc information:
(XEN)  Found 0 MBR signatures
(XEN)  Found 0 EDD information structures
(XEN) EFI RAM map:
(XEN)  0000000000000000 - 00000000000a0000 (usable)
(XEN)  0000000000100000 - 000000003e1c6000 (usable)
(XEN)  000000003e1c6000 - 000000003e1c7000 (ACPI data)
(XEN)  000000003e1c7000 - 000000003e2a7000 (usable)
(XEN)  000000003e2a7000 - 000000003e2c7000 (reserved)
(XEN)  000000003e2c7000 - 000000003e2d0000 (ACPI data)
(XEN)  000000003e2d0000 - 000000003e2f5000 (reserved)
(XEN)  000000003e2f5000 - 000000003f375000 (usable)
(XEN)  000000003f375000 - 000000003f3cd000 (reserved)
(XEN)  000000003f3cd000 - 000000003f3d5000 (ACPI data)
(XEN)  000000003f3d5000 - 000000003f3d9000 (ACPI NVS)
(XEN)  000000003f3d9000 - 000000003f680000 (usable)
(XEN)  000000003f680000 - 000000003f6a0000 (reserved)
(XEN)  000000003f6a0000 - 000000003f6b5000 (usable)
(XEN)  00000000fc000000 - 00000000fd000000 (reserved)
(XEN) System RAM: 1013MB (1037832kB)
(XEN) ACPI: RSDP 3F3D4014, 0024 (r2    Xen)
(XEN) ACPI: XSDT 3F3D30E8, 005C (r1    Xen      HVM        0       1000013)
(XEN) ACPI: FACP 3F3D2000, 00F4 (r4    Xen      HVM        0 HVML        0)
(XEN) ACPI: DSDT 3E2C7000, 8FAC (r2    Xen      HVM        0 INTL 20160831)
(XEN) ACPI: FACS 3F3D8000, 0040
(XEN) ACPI: APIC 3F3D1000, 0068 (r2    Xen      HVM        0 HVML        0)
(XEN) ACPI: HPET 3F3D0000, 0038 (r1    Xen      HVM        0 HVML        0)
(XEN) ACPI: WAET 3F3CF000, 0028 (r1    Xen      HVM        0 HVML        0)
(XEN) ACPI: SSDT 3F3CE000, 0031 (r2    Xen      HVM        0 INTL 20160831)
(XEN) ACPI: SSDT 3F3CD000, 0031 (r2    Xen      HVM        0 INTL 20160831)
(XEN) ACPI: BGRT 3E1C6000, 0038 (r1 INTEL  EDK2            2       1000013)
(XEN) No NUMA configuration found
(XEN) Faking a node at 0000000000000000-000000003f6b5000
(XEN) Domain heap initialised
(XEN) vesafb: framebuffer at 0xf0000000, mapped to 0xffff82c000201000, using 
1920k, total 1920k
(XEN) vesafb: mode is 800x600x32, linelength=3200, font 8x8
(XEN) vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
(XEN) CPU Vendor: Intel, Family 6 (0x6), Model 42 (0x2a), Stepping 7 (raw 
(XEN) SMBIOS 2.8 present.
(XEN) DMI 2.8 present.
(XEN) Using APIC driver default
(XEN) ACPI: PM-Timer IO Port: 0xb008 (32 bits)
(XEN) ACPI: SLEEP INFO: pm1x_cnt[1:b004,1:0], pm1x_evt[1:b000,1:0]
(XEN) ACPI: 32/64X FACS address mismatch in FADT - 3f3d8000/0000000000000000, 
using 32
(XEN) ACPI:             wakeup_vec[3f3d800c], vec_size[20]
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
(XEN) ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
(XEN) IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
(XEN) ACPI: IRQ0 used by override.
(XEN) ACPI: IRQ2 used by override.
(XEN) ACPI: IRQ5 used by override.
(XEN) ACPI: IRQ10 used by override.
(XEN) ACPI: IRQ11 used by override.
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) ACPI: HPET id: 0x8086a201 base: 0xfed00000
(XEN) ERST table was not found
(XEN) ACPI: BGRT: invalidating v1 image at 0x3e459000
(XEN) Using ACPI (MADT) for SMP configuration information
(XEN) SMP: Allowing 1 CPUs (0 hotplug CPUs)
(XEN) IRQ limits: 48 GSI, 336 MSI/MSI-X
(XEN) Not enabling x2APIC: depends on iommu_supports_eim.
(XEN) xstate: size: 0x340 and states: 0x7
(XEN) mce_intel.c:735: MCA Capability: BCAST 1 SER 1 CMCI 1 firstbank 0 
extended MCE MSR 0
(XEN) Intel machine check reporting enabled
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Platform timer is 62.500MHz HPET
(XEN) Detected 2491.974 MHz processor.
(XEN) EFI memory map:
(XEN)  0000000000000-000000009bfff type=7 attr=000000000000000f
(XEN)  000000009c000-000000009efff type=2 attr=000000000000000f
(XEN)  000000009f000-000000009ffff type=4 attr=000000000000000f
(XEN)  0000000100000-0000000805fff type=7 attr=000000000000000f
(XEN)  0000000806000-0000000806fff type=4 attr=000000000000000f
(XEN)  0000000807000-000000081ffff type=7 attr=000000000000000f
(XEN)  0000000820000-00000012fffff type=4 attr=000000000000000f
(XEN)  0000001300000-000003519dfff type=7 attr=000000000000000f
(XEN)  000003519e000-000003b66dfff type=2 attr=000000000000000f
(XEN)  000003b66e000-000003b68dfff type=4 attr=000000000000000f
(XEN)  000003b68e000-000003c765fff type=7 attr=000000000000000f
(XEN)  000003c766000-000003cc9dfff type=2 attr=000000000000000f
(XEN)  000003cc9e000-000003de9dfff type=1 attr=000000000000000f
(XEN)  000003de9e000-000003e0e2fff type=7 attr=000000000000000f
(XEN)  000003e0e3000-000003e0e3fff type=2 attr=000000000000000f
(XEN)  000003e0e4000-000003e1c5fff type=1 attr=000000000000000f
(XEN)  000003e1c6000-000003e1c6fff type=9 attr=000000000000000f
(XEN)  000003e1c7000-000003e2a6fff type=3 attr=000000000000000f
(XEN)  000003e2a7000-000003e2abfff type=6 attr=800000000000000f
(XEN)  000003e2ac000-000003e2b0fff type=5 attr=800000000000000f
(XEN)  000003e2b1000-000003e2b5fff type=6 attr=800000000000000f
(XEN)  000003e2b6000-000003e2bafff type=5 attr=800000000000000f
(XEN)  000003e2bb000-000003e2bffff type=6 attr=800000000000000f
(XEN)  000003e2c0000-000003e2c6fff type=5 attr=800000000000000f
(XEN)  000003e2c7000-000003e2cffff type=9 attr=000000000000000f
(XEN)  000003e2d0000-000003e2f4fff type=6 attr=800000000000000f
(XEN)  000003e2f5000-000003e3c8fff type=7 attr=000000000000000f
(XEN)  000003e3c9000-000003e3e6fff type=4 attr=000000000000000f
(XEN)  000003e3e7000-000003e3f4fff type=7 attr=000000000000000f
(XEN)  000003e3f5000-000003ea67fff type=4 attr=000000000000000f
(XEN)  000003ea68000-000003ea6efff type=7 attr=000000000000000f
(XEN)  000003ea6f000-000003f1f4fff type=4 attr=000000000000000f
(XEN)  000003f1f5000-000003f1f6fff type=7 attr=000000000000000f
(XEN)  000003f1f7000-000003f374fff type=3 attr=000000000000000f
(XEN)  000003f375000-000003f3a4fff type=5 attr=800000000000000f
(XEN)  000003f3a5000-000003f3c8fff type=6 attr=800000000000000f
(XEN)  000003f3c9000-000003f3ccfff type=0 attr=000000000000000f
(XEN)  000003f3cd000-000003f3d4fff type=9 attr=000000000000000f
(XEN)  000003f3d5000-000003f3d8fff type=10 attr=000000000000000f
(XEN)  000003f3d9000-000003f67efff type=4 attr=000000000000000f
(XEN)  000003f67f000-000003f67ffff type=7 attr=000000000000000f
(XEN)  000003f680000-000003f69ffff type=6 attr=800000000000000f
(XEN)  000003f6a0000-000003f6aefff type=7 attr=000000000000000f
(XEN)  000003f6af000-000003f6affff type=4 attr=000000000000000f
(XEN)  000003f6b0000-000003f6b4fff type=7 attr=000000000000000f
(XEN)  00000fc000000-00000fcffffff type=0 attr=0000000000000001
(XEN) Initing memory sharing.
(XEN) alt table ffff82d08064fbd0 -> ffff82d080650fc8
(XEN) I/O virtualisation disabled
(XEN) nr_sockets: 1
(XEN)  -> Using new ACK method
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=0 pin2=0
(XEN) TSC deadline timer enabled
(XEN) Platform timer appears to have unexpectedly wrapped 1 times.
(XEN) Allocated console ring of 16 KiB.
(XEN) mwait-idle: does not run on family 6 model 42
(XEN) Brought up 1 CPUs
(XEN) build-id: 89c2da4454763659a303f44aadb7a4d9
(XEN) HPET: 0 timers usable for broadcast (3 total)
(XEN) ACPI sleep modes: S3
(XEN) VPMU: disabled
(XEN) mcheck_poll: Machine check polling timer started.
(XEN) xenoprof: Initialization failed. Intel processor family 6 model 42is not 
(XEN) Dom0 has maximum 240 PIRQs
(XEN) NX (Execute Disable) protection active

#xl dmesg
(d10) HVM Loader
(d10) Detected Xen v4.9-unstable
(d10) Xenbus rings @0xfeffc000, event channel 1
(d10) System requested OVMF
(d10) CPU speed is 2492 MHz
(d10) Relocating guest memory for lowmem MMIO space disabled
(XEN) irq.c:276: Dom10 PCI link 0 changed 0 -> 5
(d10) PCI-ISA link 0 routed to IRQ5
(XEN) irq.c:276: Dom10 PCI link 1 changed 0 -> 10
(d10) PCI-ISA link 1 routed to IRQ10
(XEN) irq.c:276: Dom10 PCI link 2 changed 0 -> 11
(d10) PCI-ISA link 2 routed to IRQ11
(XEN) irq.c:276: Dom10 PCI link 3 changed 0 -> 5
(d10) PCI-ISA link 3 routed to IRQ5
(d10) pci dev 01:2 INTD->IRQ5
(d10) pci dev 01:3 INTA->IRQ10
(d10) pci dev 03:0 INTA->IRQ5
(d10) No RAM in high memory; setting high_mem resource base to 100000000
(d10) pci dev 02:0 bar 10 size 002000000: 0f0000008
(d10) pci dev 03:0 bar 30 size 000040000: 0f2000000
(d10) pci dev 02:0 bar 30 size 000010000: 0f2040000
(d10) pci dev 02:0 bar 14 size 000001000: 0f2050000
(d10) pci dev 03:0 bar 10 size 000000100: 00000c001
(d10) pci dev 03:0 bar 14 size 000000100: 0f2051000
(d10) pci dev 01:2 bar 20 size 000000020: 00000c101
(d10) pci dev 01:1 bar 20 size 000000010: 00000c121
(d10) Multiprocessor initialisation:
(d10)  - CPU0 ... 36-bit phys ... fixed MTRRs ... var MTRRs [1/8] ... done.
(d10) Testing HVM environment:
(d10)  - REP INSB across page boundaries ... passed
(d10)  - GS base MSRs and SWAPGS ... passed
(d10) Passed 2 of 2 tests
(d10) Writing SMBIOS tables ...
(d10) Loading OVMF ...
(XEN) d10v0 Over-allocation for domain 10: 262401 > 262400
(XEN) memory.c:226:d10v0 Could not allocate order=0 extent: id=10 memflags=0 (0 
of 1)
(d10) Loading ACPI ...
(d10) vm86 TSS at fc00a400
(d10) BIOS map:
(d10)  ffe00000-ffffffff: Main BIOS
(d10) E820 table:
(d10)  [00]: 00000000:00000000 - 00000000:000a0000: RAM
(d10)  HOLE: 00000000:000a0000 - 00000000:000f0000
(d10)  [01]: 00000000:000f0000 - 00000000:00100000: RESERVED
(d10)  [02]: 00000000:00100000 - 00000000:3f6b5000: RAM
(d10)  HOLE: 00000000:3f6b5000 - 00000000:fc000000
(d10)  [03]: 00000000:fc000000 - 00000001:00000000: RESERVED
(d10) Invoking OVMF ...
(XEN) stdvga.c:174:d10v0 entering stdvga mode
(XEN) stdvga.c:179:d10v0 leaving stdvga mode
(XEN) irq.c:276: Dom10 PCI link 0 changed 5 -> 11
(XEN) irq.c:276: Dom10 PCI link 1 changed 10 -> 11
(XEN) irq.c:276: Dom10 PCI link 2 changed 11 -> 10
(XEN) irq.c:276: Dom10 PCI link 3 changed 5 -> 10
(XEN) d10v0 Triple fault - invoking HVM shutdown action 1
(XEN) *** Dumping Dom10 vcpu#0 state: ***
(XEN) ----[ Xen-4.9-unstable  x86_64  debug=y   Not tainted ]----
(XEN) CPU:    2
(XEN) RIP:    e008:[<ffff82d0801a59df>]
(XEN) RFLAGS: 0000000000010206   CONTEXT: hvm guest (d10v0)
(XEN) rax: 0000004040806400   rbx: ffff82d08080b008   rcx: ffff82d080817fff
(XEN) rdx: ffff82d080832980   rsi: ffff82d0808200d8   rdi: ffff82d08080b008
(XEN) rbp: ffff82d08080aff8   rsp: ffff82d08080afa8   r8:  ffff83003f363730
(XEN) r9:  000000000052eb1c   r10: 0000000000000000   r11: ffff83003dacbe6e
(XEN) r12: ffff8310c1038d84   r13: 0000000000000009   r14: 0000000000000000
(XEN) r15: ffff83003c767000   cr0: 000000008005003b   cr4: 00000000000406e0
(XEN) cr3: 000000003d616000   cr2: ffff8310c1038d84
(XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: e008

Xen-devel mailing list



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