All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux 3.11.1 HVM guest kernel crash when started with xl (get_free_entries)
@ 2013-09-28 20:52 Pasi Kärkkäinen
  2013-09-30 13:39 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Pasi Kärkkäinen @ 2013-09-28 20:52 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 5112 bytes --]

Hello,

Fedora 19, Xen 4.2.3 rpms from the distro.

Starting F19 HVM guest with xl causes the guest to crash during boot.
Starting the same guest with xm/xend works OK.. 

Kernels tested in the guest: 3.11.1 and 3.9.5, both show the same crash/traceback:

[    0.692736] input: Xen Virtual Keyboard as /devices/virtual/input/input3
[    0.698030] input: Xen Virtual Pointer as /devices/virtual/input/input4
[    0.701254] ------------[ cut here ]------------
[    0.702238] kernel BUG at drivers/xen/grant-table.c:1180!
[    0.702238] invalid opcode: 0000 [#1] SMP
[    0.702238] Modules linked in:
[    0.702238] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.11.1-200.fc19.x86_64 #1
[    0.702238] Hardware name: Xen HVM domU, BIOS 4.2.3 09/09/2013
[    0.702238] task: ffff88007b7a8000 ti: ffff88007b7a6000 task.ti: ffff88007b7a6000
[    0.702238] RIP: 0010:[<ffffffff813a094f>]  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
[    0.702238] RSP: 0018:ffff88007b7a7bd8  EFLAGS: 00010046
[    0.702238] RAX: 0000000000000286 RBX: 0000000000000001 RCX: 0000000000000000
[    0.702238] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff81fc7d70
[    0.702238] RBP: ffff88007b7a7c20 R08: 0000000000000000 R09: 000000000000fffc
[    0.702238] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
[    0.702238] R13: 000000000007b0db R14: 0000000000000000 R15: 0000000000000000
[    0.702238] FS:  0000000000000000(0000) GS:ffff88007ec20000(0000) knlGS:0000000000000000
[    0.702238] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.702238] CR2: 00000030004bd600 CR3: 0000000001c0c000 CR4: 00000000001406e0
[    0.702238] Stack:
[    0.702238]  ffff88007b0a30b0 ffff88007b0a3008 ffff88007b7a7c20 00000001814b65c6
[    0.702238]  ffff88007b0c2360 0000000000000000 000000000007b0db 0000000000000000
[    0.702238]  0000000000000000 ffff88007b7a7c50 ffffffff813a0983 ffff88007b0c2360
[    0.702238] Call Trace:
[    0.702238]  [<ffffffff813a0983>] gnttab_grant_foreign_access+0x23/0x60
[    0.702238]  [<ffffffff814c7b68>] xenkbd_connect_backend+0x58/0x2c0
[    0.702238]  [<ffffffff814c819a>] xenkbd_probe+0x2fa/0x340
[    0.702238]  [<ffffffff813a82ae>] xenbus_dev_probe+0x8e/0x170
[    0.702238]  [<ffffffff813a98e8>] xenbus_frontend_dev_probe+0x48/0x50
[    0.702238]  [<ffffffff813f1f47>] driver_probe_device+0x87/0x390
[    0.702238]  [<ffffffff813f2323>] __driver_attach+0x93/0xa0
[    0.702238]  [<ffffffff813f2290>] ? __device_attach+0x40/0x40
[    0.702238]  [<ffffffff813efe83>] bus_for_each_dev+0x63/0xa0
[    0.702238]  [<ffffffff813f199e>] driver_attach+0x1e/0x20
[    0.702238]  [<ffffffff813f1538>] bus_add_driver+0x1e8/0x2a0
[    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
[    0.702238]  [<ffffffff813f2964>] driver_register+0x74/0x150
[    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
[    0.702238]  [<ffffffff813a7aea>] xenbus_register_driver_common+0x1a/0x20
[    0.702238]  [<ffffffff813a9db8>] xenbus_register_frontend+0x28/0x50
[    0.702238]  [<ffffffff81d595cd>] xenkbd_init+0x2b/0x34
[    0.702238]  [<ffffffff810020fa>] do_one_initcall+0xfa/0x1b0
[    0.702238]  [<ffffffff810866f5>] ? parse_args+0x225/0x400
[    0.702238]  [<ffffffff81d0f078>] kernel_init_freeable+0x177/0x1fa
[    0.790000] ata2.01: NODEV after polling detection
[    0.791467] ata2.00: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
[    0.793313] ata2.00: configured for MWDMA2
[    0.794098]  [<ffffffff81d0e898>] ? do_early_param+0x88/0x88
[    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
[    0.794098]  [<ffffffff8163d97e>] kernel_init+0xe/0x190
[    0.794098]  [<ffffffff816567ac>] ret_from_fork+0x7c/0xb0
[    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
[    0.794098] Code: 8b 05 5e 74 c2 00 44 8b 2d 43 74 c2 00 e9 62 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 e4 ff ff ff e9 2a ff ff ff 44 89 c7 eb 84 <0f> 0b 0f 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00
[    0.794098] RIP  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
[    0.794098]  RSP <ffff88007b7a7bd8>
[    0.794098] ---[ end trace 2b0f40d6e8fbbefd ]---
[    0.822685] ata1.01: NODEV after polling detection
[    0.824824] ata1.00: ATA-7: QEMU HARDDISK, 0.10.2, max UDMA/100
[    0.826891] ata1.00: 75497472 sectors, multi 16: LBA48
[    0.829563] ata1.00: configured for MWDMA2
[    0.831065] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.10 PQ: 0 ANSI: 5
[    0.833920] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.833920]


Full guest dmesg attached. 


HVM guest cfgfile:

[root@localhost ~]# cat /etc/xen/f19x64hvm02xl.cfg

builder='hvm'
name = "f19x64hvm02xl"
memory = 2048
vcpus=2
pae=1
acpi=1
apic=1
vif = [ 'mac=00:18:1f:01:01:22, bridge=virbr0, model=e1000' ]
disk = [ 'phy:/dev/vg00/f19x64hvm02xl,hda,w', 'file:/home/iso/Fedora-19-x86_64-DVD.iso,hdc:cdrom,r' ]
boot='cd'
xen_platform_pci=0
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'
sdl=0
vnc=1
stdvga=0
videoram=16
serial='pty'
tsc_mode="default"
usb=1
usbdevice='tablet'
keymap='fi'
viridian=0





-- Pasi



[-- Attachment #2: f19-linux-3.11.1-hvm-guest-kernel-crash-dmesg.txt --]
[-- Type: text/plain, Size: 23110 bytes --]

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.11.1-200.fc19.x86_64 (mockbuild@bkernel02) (gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC) ) #1 SMP Sat Sep 14 15:04:51 UTC 2013
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.11.1-200.fc19.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root vconsole.keymap=fi-latin1 rhgb LANG=en_US.UTF-8 console=ttyS0
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009dfff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007effffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000fc000000-0x00000000ffffffff] reserved
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.4 present.
[    0.000000] Hypervisor detected: Xen HVM
[    0.000000] Xen version 4.2.
[    0.000000] Xen Platform PCI: unrecognised magic value
[    0.000000] No AGP bridge found
[    0.000000] e820: last_pfn = 0x7f000 max_arch_pfn = 0x400000000
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] found SMP MP-table at [mem 0x000fbba0-0x000fbbaf] mapped at [ffff8800000fbba0]
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000] init_memory_mapping: [mem 0x7ee00000-0x7effffff]
[    0.000000] init_memory_mapping: [mem 0x7c000000-0x7edfffff]
[    0.000000] init_memory_mapping: [mem 0x00100000-0x7bffffff]
[    0.000000] RAMDISK: [mem 0x36f5c000-0x377a5fff]
[    0.000000] ACPI: RSDP 00000000000ea020 00024 (v02    Xen)
[    0.000000] ACPI: XSDT 00000000fc00ff60 00054 (v01    Xen      HVM 00000000 HVML 00000000)
[    0.000000] ACPI: FACP 00000000fc00fc20 000F4 (v04    Xen      HVM 00000000 HVML 00000000)
[    0.000000] ACPI: DSDT 00000000fc003fa0 0BBF6 (v02    Xen      HVM 00000000 INTL 20130823)
[    0.000000] ACPI: FACS 00000000fc003f60 00040
[    0.000000] ACPI: APIC 00000000fc00fd20 000D8 (v02    Xen      HVM 00000000 HVML 00000000)
[    0.000000] ACPI: HPET 00000000fc00fe70 00038 (v01    Xen      HVM 00000000 HVML 00000000)
[    0.000000] ACPI: WAET 00000000fc00feb0 00028 (v01    Xen      HVM 00000000 HVML 00000000)
[    0.000000] ACPI: SSDT 00000000fc00fee0 00031 (v02    Xen      HVM 00000000 INTL 20130823)
[    0.000000] ACPI: SSDT 00000000fc00ff20 00031 (v02    Xen      HVM 00000000 INTL 20130823)
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000007effffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x7effffff]
[    0.000000]   NODE_DATA [mem 0x7efec000-0x7effffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
[    0.000000]   DMA32    [mem 0x01000000-0xffffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00001000-0x0009dfff]
[    0.000000]   node   0: [mem 0x00100000-0x7effffff]
[    0.000000] ACPI: PM-Timer IO Port: 0xb008
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x08] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x0a] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x0c] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x0e] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x08] lapic_id[0x10] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x09] lapic_id[0x12] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x14] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x16] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x18] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x1a] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x1c] disabled)
[    0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[    0.000000] smpboot: Allowing 15 CPUs, 13 hotplug CPUs
[    0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
[    0.000000] PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
[    0.000000] e820: [mem 0x7f000000-0xfbffffff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on Xen HVM
[    0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:15 nr_node_ids:1
[    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88007ec00000 s85568 r8192 d20928 u131072
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 511944
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.11.1-200.fc19.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root vconsole.keymap=fi-latin1 rhgb LANG=en_US.UTF-8 console=ttyS0
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Memory: 2020860K/2080372K available (6507K kernel code, 990K rwdata, 2868K rodata, 1420K init, 1540K bss, 59512K reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=15, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=15.
[    0.000000] NR_IRQS:8448 nr_irqs:1208 16
[    0.000000] xen:events: Xen HVM callback vector for event delivery is enabled
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] allocated 8388608 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] tsc: Detected 3392.412 MHz processor
[    0.004000] Calibrating delay loop (skipped), value calculated using timer frequency.. 6784.82 BogoMIPS (lpj=3392412)
[    0.007004] pid_max: default: 32768 minimum: 301
[    0.010023] Security Framework initialized
[    0.012006] SELinux:  Initializing.
[    0.013220] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.017731] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.021288] Mount-cache hash table entries: 256
[    0.023223] Initializing cgroup subsys memory
[    0.026007] Initializing cgroup subsys devices
[    0.028002] Initializing cgroup subsys freezer
[    0.030003] Initializing cgroup subsys net_cls
[    0.032003] Initializing cgroup subsys blkio
[    0.033003] Initializing cgroup subsys perf_event
[    0.035061] CPU: Physical Processor ID: 0
[    0.037002] CPU: Processor Core ID: 0
[    0.039538] mce: CPU supports 2 MCE banks
[    0.041018] Last level iTLB entries: 4KB 512, 2MB 0, 4MB 0
[    0.041018] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32
[    0.041018] tlb_flushall_shift: 1
[    0.048386] Freeing SMP alternatives memory: 24K (ffffffff81e5c000 - ffffffff81e62000)
[    0.056957] ACPI: Core revision 20130517
[    0.064850] ACPI: All ACPI Tables successfully acquired
[    0.067126] ftrace: allocating 25146 entries in 99 pages
[    0.091003] Switched APIC routing to physical flat.
[    0.097249] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
[    0.114038] smpboot: CPU0: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (fam: 06, model: 3a, stepping: 09)
[    0.124046] installing Xen timer for CPU 0
[    0.128121] Performance Events: 16-deep LBR, IvyBridge events, full-width counters, Broken PMU hardware detected, using software events only.
[    0.131005] Failed to access perfctr msr (MSR 4c1 is 0)
[    0.133540] NMI watchdog: disabled (cpu0): hardware events not enabled
[    0.134138] installing Xen timer for CPU 1
[    0.135135] smpboot: Booting Node   0, Processors  #1
[    0.148023] Brought up 2 CPUs
[    0.149006] smpboot: Total of 2 processors activated (13569.64 BogoMIPS)
[    0.150651] devtmpfs: initialized
[    0.152427] atomic64 test passed for x86-64 platform with CX8 and with SSE
[    0.153050] RTC time: 20:28:37, date: 09/28/13
[    0.154075] NET: Registered protocol family 16
[    0.155217] ACPI: bus type PCI registered
[    0.156014] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.157176] PCI: Using configuration type 1 for base access
[    0.159043] bio: create slab <bio-0> at 0
[    0.160091] ACPI: Added _OSI(Module Device)
[    0.161004] ACPI: Added _OSI(Processor Device)
[    0.162003] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.163003] ACPI: Added _OSI(Processor Aggregator Device)
[    0.170351] ACPI: Interpreter enabled
[    0.171007] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20130517/hwxface-571)
[    0.174000] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20130517/hwxface-571)
[    0.176000] ACPI: (supports S0 S3 S4 S5)
[    0.176010] ACPI: Using IOAPIC for interrupt routing
[    0.177020] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.190641] ACPI: No dock devices found.
[    0.219144] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.220008] acpi PNP0A03:00: ACPI _OSC support notification failed, disabling PCIe ASPM
[    0.221004] acpi PNP0A03:00: Unable to request _OSC control (_OSC support mask: 0x08)
[    0.222052] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[    0.224000] acpiphp: Slot [0] registered
[    0.224225] acpiphp: Slot [1] registered
[    0.225216] acpiphp: Slot [2] registered
[    0.226220] acpiphp: Slot [3] registered
[    0.227493] acpiphp: Slot [4] registered
[    0.228477] acpiphp: Slot [5] registered
[    0.229472] acpiphp: Slot [6] registered
[    0.230415] acpiphp: Slot [7] registered
[    0.231329] acpiphp: Slot [8] registered
[    0.232362] acpiphp: Slot [9] registered
[    0.233357] acpiphp: Slot [10] registered
[    0.234318] acpiphp: Slot [11] registered
[    0.235348] acpiphp: Slot [12] registered
[    0.236339] acpiphp: Slot [13] registered
[    0.237409] acpiphp: Slot [14] registered
[    0.238396] acpiphp: Slot [15] registered
[    0.239387] acpiphp: Slot [16] registered
[    0.240416] acpiphp: Slot [17] registered
[    0.241543] acpiphp: Slot [18] registered
[    0.242546] acpiphp: Slot [19] registered
[    0.243507] acpiphp: Slot [20] registered
[    0.244487] acpiphp: Slot [21] registered
[    0.245474] acpiphp: Slot [22] registered
[    0.246522] acpiphp: Slot [23] registered
[    0.247372] acpiphp: Slot [24] registered
[    0.248470] acpiphp: Slot [25] registered
[    0.249511] acpiphp: Slot [26] registered
[    0.250546] acpiphp: Slot [27] registered
[    0.251452] acpiphp: Slot [28] registered
[    0.252232] acpiphp: Slot [29] registered
[    0.253235] acpiphp: Slot [30] registered
[    0.254240] acpiphp: Slot [31] registered
[    0.255237] PCI host bridge to bus 0000:00
[    0.256004] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.257004] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7]
[    0.258003] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff]
[    0.259004] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
[    0.260004] pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfbffffff]
[    0.267476] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
[    0.267476] * this clock source is slow. Consider trying other clock sources
[    0.269167] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by PIIX4 ACPI
[    0.275897] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 10 11)
[    0.276951] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[    0.277956] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[    0.278950] ACPI: PCI Interrupt Link [LNKD] (IRQs *5 10 11)
[    0.295628] ACPI: Enabled 2 GPEs in block 00 to 0F
[    0.296075] xen:balloon: Initialising balloon driver
[    0.298028] xen_balloon: Initialising balloon driver
[    0.299055] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[    0.300007] vgaarb: loaded
[    0.301004] vgaarb: bridge control possible 0000:00:02.0
[    0.302063] SCSI subsystem initialized
[    0.303005] ACPI: bus type ATA registered
[    0.304053] ACPI: bus type USB registered
[    0.305014] usbcore: registered new interface driver usbfs
[    0.306010] usbcore: registered new interface driver hub
[    0.307010] usbcore: registered new device driver usb
[    0.308033] PCI: Using ACPI for IRQ routing
[    0.309441] NetLabel: Initializing
[    0.310004] NetLabel:  domain hash size = 128
[    0.311003] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.312012] NetLabel:  unlabeled traffic allowed by default
[    0.313060] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
[    0.314019] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.315583] hpet0: 3 comparators, 64-bit 62.500000 MHz counter
[    0.318000] Switched to clocksource xen
[    0.321576] pnp: PnP ACPI init
[    0.322910] ACPI: bus type PNP registered
[    0.324474] system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
[    0.327167] system 00:02: [io  0x08a0-0x08a3] has been reserved
[    0.329286] system 00:02: [io  0x0cc0-0x0ccf] has been reserved
[    0.331509] system 00:02: [io  0x04d0-0x04d1] has been reserved
[    0.334079] system 00:0b: [io  0x10c0-0x1141] has been reserved
[    0.336388] system 00:0b: [io  0xb044-0xb047] has been reserved
[    0.349487] pnp: PnP ACPI: found 12 devices
[    0.351076] ACPI: bus type PNP unregistered
[    0.361244] NET: Registered protocol family 2
[    0.363041] TCP established hash table entries: 16384 (order: 6, 262144 bytes)
[    0.365759] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.368749] TCP: Hash tables configured (established 16384 bind 16384)
[    0.371758] TCP: reno registered
[    0.373280] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.376048] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.379095] NET: Registered protocol family 1
[    0.381131] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.383886] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.386485] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.389663] Unpacking initramfs...
[    0.498082] Freeing initrd memory: 8488K (ffff880036f5c000 - ffff8800377a6000)
[    0.504951] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[    0.508010] Initialise system trusted keyring
[    0.509656] audit: initializing netlink socket (disabled)
[    0.511574] type=2000 audit(1380400118.296:1): initialized
[    0.534815] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.540763] zbud: loaded
[    0.543120] VFS: Disk quotas dquot_6.5.2
[    0.546380] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.549500] msgmni has been set to 3963
[    0.552234] alg: No test for stdrng (krng)
[    0.553980] NET: Registered protocol family 38
[    0.555814] Key type asymmetric registered
[    0.557522] Asymmetric key parser 'x509' registered
[    0.559529] Asymmetric key parser 'pefile' registered
[    0.561639] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.564343] io scheduler noop registered
[    0.565814] io scheduler deadline registered
[    0.567386] io scheduler cfq registered (default)
[    0.569121] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.571135] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.573615] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    0.576328] ACPI: Power Button [PWRF]
[    0.577686] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
[    0.580337] ACPI: Sleep Button [SLPF]
[    0.581768] GHES: HEST is not enabled!
[    0.583694] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.611827] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.617678] Non-volatile memory driver v1.3
[    0.620996] Linux agpgart interface v0.103
[    0.625133] loop: module loaded
[    0.627541] scsi0 : ata_piix
[    0.628722] scsi1 : ata_piix
[    0.629787] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14
[    0.632215] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15
[    0.634681] libphy: Fixed MDIO Bus: probed
[    0.636752] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.639821] ehci-pci: EHCI PCI platform driver
[    0.641661] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.644174] ohci-pci: OHCI PCI platform driver
[    0.646005] uhci_hcd: USB Universal Host Controller Interface driver
[    0.648860] uhci_hcd 0000:00:01.2: UHCI Host Controller
[    0.650775] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
[    0.653583] uhci_hcd 0000:00:01.2: irq 23, io base 0x0000c040
[    0.656160] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    0.658561] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.661109] usb usb1: Product: UHCI Host Controller
[    0.662860] usb usb1: Manufacturer: Linux 3.11.1-200.fc19.x86_64 uhci_hcd
[    0.665310] usb usb1: SerialNumber: 0000:00:01.2
[    0.667047] hub 1-0:1.0: USB hub found
[    0.668462] hub 1-0:1.0: 2 ports detected
[    0.670079] usbcore: registered new interface driver usbserial
[    0.672242] usbcore: registered new interface driver usbserial_generic
[    0.674594] usbserial: USB Serial support registered for generic
[    0.676792] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[    0.680990] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.682795] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.684707] mousedev: PS/2 mouse device common for all mice
[    0.687728] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
[    0.692736] input: Xen Virtual Keyboard as /devices/virtual/input/input3
[    0.698030] input: Xen Virtual Pointer as /devices/virtual/input/input4
[    0.701254] ------------[ cut here ]------------
[    0.702238] kernel BUG at drivers/xen/grant-table.c:1180!
[    0.702238] invalid opcode: 0000 [#1] SMP 
[    0.702238] Modules linked in:
[    0.702238] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.11.1-200.fc19.x86_64 #1
[    0.702238] Hardware name: Xen HVM domU, BIOS 4.2.3 09/09/2013
[    0.702238] task: ffff88007b7a8000 ti: ffff88007b7a6000 task.ti: ffff88007b7a6000
[    0.702238] RIP: 0010:[<ffffffff813a094f>]  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
[    0.702238] RSP: 0018:ffff88007b7a7bd8  EFLAGS: 00010046
[    0.702238] RAX: 0000000000000286 RBX: 0000000000000001 RCX: 0000000000000000
[    0.702238] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff81fc7d70
[    0.702238] RBP: ffff88007b7a7c20 R08: 0000000000000000 R09: 000000000000fffc
[    0.702238] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
[    0.702238] R13: 000000000007b0db R14: 0000000000000000 R15: 0000000000000000
[    0.702238] FS:  0000000000000000(0000) GS:ffff88007ec20000(0000) knlGS:0000000000000000
[    0.702238] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.702238] CR2: 00000030004bd600 CR3: 0000000001c0c000 CR4: 00000000001406e0
[    0.702238] Stack:
[    0.702238]  ffff88007b0a30b0 ffff88007b0a3008 ffff88007b7a7c20 00000001814b65c6
[    0.702238]  ffff88007b0c2360 0000000000000000 000000000007b0db 0000000000000000
[    0.702238]  0000000000000000 ffff88007b7a7c50 ffffffff813a0983 ffff88007b0c2360
[    0.702238] Call Trace:
[    0.702238]  [<ffffffff813a0983>] gnttab_grant_foreign_access+0x23/0x60
[    0.702238]  [<ffffffff814c7b68>] xenkbd_connect_backend+0x58/0x2c0
[    0.702238]  [<ffffffff814c819a>] xenkbd_probe+0x2fa/0x340
[    0.702238]  [<ffffffff813a82ae>] xenbus_dev_probe+0x8e/0x170
[    0.702238]  [<ffffffff813a98e8>] xenbus_frontend_dev_probe+0x48/0x50
[    0.702238]  [<ffffffff813f1f47>] driver_probe_device+0x87/0x390
[    0.702238]  [<ffffffff813f2323>] __driver_attach+0x93/0xa0
[    0.702238]  [<ffffffff813f2290>] ? __device_attach+0x40/0x40
[    0.702238]  [<ffffffff813efe83>] bus_for_each_dev+0x63/0xa0
[    0.702238]  [<ffffffff813f199e>] driver_attach+0x1e/0x20
[    0.702238]  [<ffffffff813f1538>] bus_add_driver+0x1e8/0x2a0
[    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
[    0.702238]  [<ffffffff813f2964>] driver_register+0x74/0x150
[    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
[    0.702238]  [<ffffffff813a7aea>] xenbus_register_driver_common+0x1a/0x20
[    0.702238]  [<ffffffff813a9db8>] xenbus_register_frontend+0x28/0x50
[    0.702238]  [<ffffffff81d595cd>] xenkbd_init+0x2b/0x34
[    0.702238]  [<ffffffff810020fa>] do_one_initcall+0xfa/0x1b0
[    0.702238]  [<ffffffff810866f5>] ? parse_args+0x225/0x400
[    0.702238]  [<ffffffff81d0f078>] kernel_init_freeable+0x177/0x1fa
[    0.790000] ata2.01: NODEV after polling detection
[    0.791467] ata2.00: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
[    0.793313] ata2.00: configured for MWDMA2
[    0.794098]  [<ffffffff81d0e898>] ? do_early_param+0x88/0x88
[    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
[    0.794098]  [<ffffffff8163d97e>] kernel_init+0xe/0x190
[    0.794098]  [<ffffffff816567ac>] ret_from_fork+0x7c/0xb0
[    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
[    0.794098] Code: 8b 05 5e 74 c2 00 44 8b 2d 43 74 c2 00 e9 62 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 e4 ff ff ff e9 2a ff ff ff 44 89 c7 eb 84 <0f> 0b 0f 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 
[    0.794098] RIP  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
[    0.794098]  RSP <ffff88007b7a7bd8>
[    0.794098] ---[ end trace 2b0f40d6e8fbbefd ]---
[    0.822685] ata1.01: NODEV after polling detection
[    0.824824] ata1.00: ATA-7: QEMU HARDDISK, 0.10.2, max UDMA/100
[    0.826891] ata1.00: 75497472 sectors, multi 16: LBA48 
[    0.829563] ata1.00: configured for MWDMA2
[    0.831065] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.10 PQ: 0 ANSI: 5
[    0.833920] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.833920] 

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Linux 3.11.1 HVM guest kernel crash when started with xl (get_free_entries)
  2013-09-28 20:52 Linux 3.11.1 HVM guest kernel crash when started with xl (get_free_entries) Pasi Kärkkäinen
@ 2013-09-30 13:39 ` Konrad Rzeszutek Wilk
  2013-09-30 14:02   ` Pasi Kärkkäinen
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-09-30 13:39 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel

On Sat, Sep 28, 2013 at 11:52:06PM +0300, Pasi Kärkkäinen wrote:
> Hello,
> 
> Fedora 19, Xen 4.2.3 rpms from the distro.
> 
> Starting F19 HVM guest with xl causes the guest to crash during boot.
> Starting the same guest with xm/xend works OK.. 
> 
> Kernels tested in the guest: 3.11.1 and 3.9.5, both show the same crash/traceback:
> 
> [    0.692736] input: Xen Virtual Keyboard as /devices/virtual/input/input3
> [    0.698030] input: Xen Virtual Pointer as /devices/virtual/input/input4
> [    0.701254] ------------[ cut here ]------------
> [    0.702238] kernel BUG at drivers/xen/grant-table.c:1180!

Which is:

1180         BUG_ON(grefs_per_grant_frame == 0);                                     


Hmm, was there anything in the dmesg output having:

Grant tables using version <something>

?

Thanks!
> [    0.702238] invalid opcode: 0000 [#1] SMP
> [    0.702238] Modules linked in:
> [    0.702238] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.11.1-200.fc19.x86_64 #1
> [    0.702238] Hardware name: Xen HVM domU, BIOS 4.2.3 09/09/2013
> [    0.702238] task: ffff88007b7a8000 ti: ffff88007b7a6000 task.ti: ffff88007b7a6000
> [    0.702238] RIP: 0010:[<ffffffff813a094f>]  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
> [    0.702238] RSP: 0018:ffff88007b7a7bd8  EFLAGS: 00010046
> [    0.702238] RAX: 0000000000000286 RBX: 0000000000000001 RCX: 0000000000000000
> [    0.702238] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff81fc7d70
> [    0.702238] RBP: ffff88007b7a7c20 R08: 0000000000000000 R09: 000000000000fffc
> [    0.702238] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
> [    0.702238] R13: 000000000007b0db R14: 0000000000000000 R15: 0000000000000000
> [    0.702238] FS:  0000000000000000(0000) GS:ffff88007ec20000(0000) knlGS:0000000000000000
> [    0.702238] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [    0.702238] CR2: 00000030004bd600 CR3: 0000000001c0c000 CR4: 00000000001406e0
> [    0.702238] Stack:
> [    0.702238]  ffff88007b0a30b0 ffff88007b0a3008 ffff88007b7a7c20 00000001814b65c6
> [    0.702238]  ffff88007b0c2360 0000000000000000 000000000007b0db 0000000000000000
> [    0.702238]  0000000000000000 ffff88007b7a7c50 ffffffff813a0983 ffff88007b0c2360
> [    0.702238] Call Trace:
> [    0.702238]  [<ffffffff813a0983>] gnttab_grant_foreign_access+0x23/0x60
> [    0.702238]  [<ffffffff814c7b68>] xenkbd_connect_backend+0x58/0x2c0
> [    0.702238]  [<ffffffff814c819a>] xenkbd_probe+0x2fa/0x340
> [    0.702238]  [<ffffffff813a82ae>] xenbus_dev_probe+0x8e/0x170
> [    0.702238]  [<ffffffff813a98e8>] xenbus_frontend_dev_probe+0x48/0x50
> [    0.702238]  [<ffffffff813f1f47>] driver_probe_device+0x87/0x390
> [    0.702238]  [<ffffffff813f2323>] __driver_attach+0x93/0xa0
> [    0.702238]  [<ffffffff813f2290>] ? __device_attach+0x40/0x40
> [    0.702238]  [<ffffffff813efe83>] bus_for_each_dev+0x63/0xa0
> [    0.702238]  [<ffffffff813f199e>] driver_attach+0x1e/0x20
> [    0.702238]  [<ffffffff813f1538>] bus_add_driver+0x1e8/0x2a0
> [    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
> [    0.702238]  [<ffffffff813f2964>] driver_register+0x74/0x150
> [    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
> [    0.702238]  [<ffffffff813a7aea>] xenbus_register_driver_common+0x1a/0x20
> [    0.702238]  [<ffffffff813a9db8>] xenbus_register_frontend+0x28/0x50
> [    0.702238]  [<ffffffff81d595cd>] xenkbd_init+0x2b/0x34
> [    0.702238]  [<ffffffff810020fa>] do_one_initcall+0xfa/0x1b0
> [    0.702238]  [<ffffffff810866f5>] ? parse_args+0x225/0x400
> [    0.702238]  [<ffffffff81d0f078>] kernel_init_freeable+0x177/0x1fa
> [    0.790000] ata2.01: NODEV after polling detection
> [    0.791467] ata2.00: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
> [    0.793313] ata2.00: configured for MWDMA2
> [    0.794098]  [<ffffffff81d0e898>] ? do_early_param+0x88/0x88
> [    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
> [    0.794098]  [<ffffffff8163d97e>] kernel_init+0xe/0x190
> [    0.794098]  [<ffffffff816567ac>] ret_from_fork+0x7c/0xb0
> [    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
> [    0.794098] Code: 8b 05 5e 74 c2 00 44 8b 2d 43 74 c2 00 e9 62 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 e4 ff ff ff e9 2a ff ff ff 44 89 c7 eb 84 <0f> 0b 0f 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00
> [    0.794098] RIP  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
> [    0.794098]  RSP <ffff88007b7a7bd8>
> [    0.794098] ---[ end trace 2b0f40d6e8fbbefd ]---
> [    0.822685] ata1.01: NODEV after polling detection
> [    0.824824] ata1.00: ATA-7: QEMU HARDDISK, 0.10.2, max UDMA/100
> [    0.826891] ata1.00: 75497472 sectors, multi 16: LBA48
> [    0.829563] ata1.00: configured for MWDMA2
> [    0.831065] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.10 PQ: 0 ANSI: 5
> [    0.833920] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> [    0.833920]
> 
> 
> Full guest dmesg attached. 
> 
> 
> HVM guest cfgfile:
> 
> [root@localhost ~]# cat /etc/xen/f19x64hvm02xl.cfg
> 
> builder='hvm'
> name = "f19x64hvm02xl"
> memory = 2048
> vcpus=2
> pae=1
> acpi=1
> apic=1
> vif = [ 'mac=00:18:1f:01:01:22, bridge=virbr0, model=e1000' ]
> disk = [ 'phy:/dev/vg00/f19x64hvm02xl,hda,w', 'file:/home/iso/Fedora-19-x86_64-DVD.iso,hdc:cdrom,r' ]
> boot='cd'
> xen_platform_pci=0
> on_poweroff = 'destroy'
> on_reboot   = 'restart'
> on_crash    = 'restart'
> sdl=0
> vnc=1
> stdvga=0
> videoram=16
> serial='pty'
> tsc_mode="default"
> usb=1
> usbdevice='tablet'
> keymap='fi'
> viridian=0
> 
> 
> 
> 
> 
> -- Pasi
> 
> 

> [    0.000000] Initializing cgroup subsys cpuset
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Initializing cgroup subsys cpuacct
> [    0.000000] Linux version 3.11.1-200.fc19.x86_64 (mockbuild@bkernel02) (gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC) ) #1 SMP Sat Sep 14 15:04:51 UTC 2013
> [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.11.1-200.fc19.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root vconsole.keymap=fi-latin1 rhgb LANG=en_US.UTF-8 console=ttyS0
> [    0.000000] e820: BIOS-provided physical RAM map:
> [    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009dfff] usable
> [    0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved
> [    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
> [    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007effffff] usable
> [    0.000000] BIOS-e820: [mem 0x00000000fc000000-0x00000000ffffffff] reserved
> [    0.000000] NX (Execute Disable) protection: active
> [    0.000000] SMBIOS 2.4 present.
> [    0.000000] Hypervisor detected: Xen HVM
> [    0.000000] Xen version 4.2.
> [    0.000000] Xen Platform PCI: unrecognised magic value
> [    0.000000] No AGP bridge found
> [    0.000000] e820: last_pfn = 0x7f000 max_arch_pfn = 0x400000000
> [    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
> [    0.000000] found SMP MP-table at [mem 0x000fbba0-0x000fbbaf] mapped at [ffff8800000fbba0]
> [    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
> [    0.000000] init_memory_mapping: [mem 0x7ee00000-0x7effffff]
> [    0.000000] init_memory_mapping: [mem 0x7c000000-0x7edfffff]
> [    0.000000] init_memory_mapping: [mem 0x00100000-0x7bffffff]
> [    0.000000] RAMDISK: [mem 0x36f5c000-0x377a5fff]
> [    0.000000] ACPI: RSDP 00000000000ea020 00024 (v02    Xen)
> [    0.000000] ACPI: XSDT 00000000fc00ff60 00054 (v01    Xen      HVM 00000000 HVML 00000000)
> [    0.000000] ACPI: FACP 00000000fc00fc20 000F4 (v04    Xen      HVM 00000000 HVML 00000000)
> [    0.000000] ACPI: DSDT 00000000fc003fa0 0BBF6 (v02    Xen      HVM 00000000 INTL 20130823)
> [    0.000000] ACPI: FACS 00000000fc003f60 00040
> [    0.000000] ACPI: APIC 00000000fc00fd20 000D8 (v02    Xen      HVM 00000000 HVML 00000000)
> [    0.000000] ACPI: HPET 00000000fc00fe70 00038 (v01    Xen      HVM 00000000 HVML 00000000)
> [    0.000000] ACPI: WAET 00000000fc00feb0 00028 (v01    Xen      HVM 00000000 HVML 00000000)
> [    0.000000] ACPI: SSDT 00000000fc00fee0 00031 (v02    Xen      HVM 00000000 INTL 20130823)
> [    0.000000] ACPI: SSDT 00000000fc00ff20 00031 (v02    Xen      HVM 00000000 INTL 20130823)
> [    0.000000] No NUMA configuration found
> [    0.000000] Faking a node at [mem 0x0000000000000000-0x000000007effffff]
> [    0.000000] Initmem setup node 0 [mem 0x00000000-0x7effffff]
> [    0.000000]   NODE_DATA [mem 0x7efec000-0x7effffff]
> [    0.000000] Zone ranges:
> [    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
> [    0.000000]   DMA32    [mem 0x01000000-0xffffffff]
> [    0.000000]   Normal   empty
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x00001000-0x0009dfff]
> [    0.000000]   node   0: [mem 0x00100000-0x7effffff]
> [    0.000000] ACPI: PM-Timer IO Port: 0xb008
> [    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x08] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x0a] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x0c] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x0e] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x08] lapic_id[0x10] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x09] lapic_id[0x12] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x14] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x16] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x18] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x1a] disabled)
> [    0.000000] ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x1c] disabled)
> [    0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
> [    0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47
> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level)
> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level)
> [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
> [    0.000000] Using ACPI (MADT) for SMP configuration information
> [    0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
> [    0.000000] smpboot: Allowing 15 CPUs, 13 hotplug CPUs
> [    0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff]
> [    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
> [    0.000000] PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
> [    0.000000] e820: [mem 0x7f000000-0xfbffffff] available for PCI devices
> [    0.000000] Booting paravirtualized kernel on Xen HVM
> [    0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:15 nr_node_ids:1
> [    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88007ec00000 s85568 r8192 d20928 u131072
> [    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 511944
> [    0.000000] Policy zone: DMA32
> [    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.11.1-200.fc19.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root vconsole.keymap=fi-latin1 rhgb LANG=en_US.UTF-8 console=ttyS0
> [    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
> [    0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340
> [    0.000000] Checking aperture...
> [    0.000000] No AGP bridge found
> [    0.000000] Memory: 2020860K/2080372K available (6507K kernel code, 990K rwdata, 2868K rodata, 1420K init, 1540K bss, 59512K reserved)
> [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=15, Nodes=1
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000] 	RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=15.
> [    0.000000] NR_IRQS:8448 nr_irqs:1208 16
> [    0.000000] xen:events: Xen HVM callback vector for event delivery is enabled
> [    0.000000] Console: colour VGA+ 80x25
> [    0.000000] console [ttyS0] enabled
> [    0.000000] allocated 8388608 bytes of page_cgroup
> [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
> [    0.000000] tsc: Detected 3392.412 MHz processor
> [    0.004000] Calibrating delay loop (skipped), value calculated using timer frequency.. 6784.82 BogoMIPS (lpj=3392412)
> [    0.007004] pid_max: default: 32768 minimum: 301
> [    0.010023] Security Framework initialized
> [    0.012006] SELinux:  Initializing.
> [    0.013220] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
> [    0.017731] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
> [    0.021288] Mount-cache hash table entries: 256
> [    0.023223] Initializing cgroup subsys memory
> [    0.026007] Initializing cgroup subsys devices
> [    0.028002] Initializing cgroup subsys freezer
> [    0.030003] Initializing cgroup subsys net_cls
> [    0.032003] Initializing cgroup subsys blkio
> [    0.033003] Initializing cgroup subsys perf_event
> [    0.035061] CPU: Physical Processor ID: 0
> [    0.037002] CPU: Processor Core ID: 0
> [    0.039538] mce: CPU supports 2 MCE banks
> [    0.041018] Last level iTLB entries: 4KB 512, 2MB 0, 4MB 0
> [    0.041018] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32
> [    0.041018] tlb_flushall_shift: 1
> [    0.048386] Freeing SMP alternatives memory: 24K (ffffffff81e5c000 - ffffffff81e62000)
> [    0.056957] ACPI: Core revision 20130517
> [    0.064850] ACPI: All ACPI Tables successfully acquired
> [    0.067126] ftrace: allocating 25146 entries in 99 pages
> [    0.091003] Switched APIC routing to physical flat.
> [    0.097249] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
> [    0.114038] smpboot: CPU0: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (fam: 06, model: 3a, stepping: 09)
> [    0.124046] installing Xen timer for CPU 0
> [    0.128121] Performance Events: 16-deep LBR, IvyBridge events, full-width counters, Broken PMU hardware detected, using software events only.
> [    0.131005] Failed to access perfctr msr (MSR 4c1 is 0)
> [    0.133540] NMI watchdog: disabled (cpu0): hardware events not enabled
> [    0.134138] installing Xen timer for CPU 1
> [    0.135135] smpboot: Booting Node   0, Processors  #1
> [    0.148023] Brought up 2 CPUs
> [    0.149006] smpboot: Total of 2 processors activated (13569.64 BogoMIPS)
> [    0.150651] devtmpfs: initialized
> [    0.152427] atomic64 test passed for x86-64 platform with CX8 and with SSE
> [    0.153050] RTC time: 20:28:37, date: 09/28/13
> [    0.154075] NET: Registered protocol family 16
> [    0.155217] ACPI: bus type PCI registered
> [    0.156014] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
> [    0.157176] PCI: Using configuration type 1 for base access
> [    0.159043] bio: create slab <bio-0> at 0
> [    0.160091] ACPI: Added _OSI(Module Device)
> [    0.161004] ACPI: Added _OSI(Processor Device)
> [    0.162003] ACPI: Added _OSI(3.0 _SCP Extensions)
> [    0.163003] ACPI: Added _OSI(Processor Aggregator Device)
> [    0.170351] ACPI: Interpreter enabled
> [    0.171007] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20130517/hwxface-571)
> [    0.174000] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20130517/hwxface-571)
> [    0.176000] ACPI: (supports S0 S3 S4 S5)
> [    0.176010] ACPI: Using IOAPIC for interrupt routing
> [    0.177020] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
> [    0.190641] ACPI: No dock devices found.
> [    0.219144] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
> [    0.220008] acpi PNP0A03:00: ACPI _OSC support notification failed, disabling PCIe ASPM
> [    0.221004] acpi PNP0A03:00: Unable to request _OSC control (_OSC support mask: 0x08)
> [    0.222052] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
> [    0.224000] acpiphp: Slot [0] registered
> [    0.224225] acpiphp: Slot [1] registered
> [    0.225216] acpiphp: Slot [2] registered
> [    0.226220] acpiphp: Slot [3] registered
> [    0.227493] acpiphp: Slot [4] registered
> [    0.228477] acpiphp: Slot [5] registered
> [    0.229472] acpiphp: Slot [6] registered
> [    0.230415] acpiphp: Slot [7] registered
> [    0.231329] acpiphp: Slot [8] registered
> [    0.232362] acpiphp: Slot [9] registered
> [    0.233357] acpiphp: Slot [10] registered
> [    0.234318] acpiphp: Slot [11] registered
> [    0.235348] acpiphp: Slot [12] registered
> [    0.236339] acpiphp: Slot [13] registered
> [    0.237409] acpiphp: Slot [14] registered
> [    0.238396] acpiphp: Slot [15] registered
> [    0.239387] acpiphp: Slot [16] registered
> [    0.240416] acpiphp: Slot [17] registered
> [    0.241543] acpiphp: Slot [18] registered
> [    0.242546] acpiphp: Slot [19] registered
> [    0.243507] acpiphp: Slot [20] registered
> [    0.244487] acpiphp: Slot [21] registered
> [    0.245474] acpiphp: Slot [22] registered
> [    0.246522] acpiphp: Slot [23] registered
> [    0.247372] acpiphp: Slot [24] registered
> [    0.248470] acpiphp: Slot [25] registered
> [    0.249511] acpiphp: Slot [26] registered
> [    0.250546] acpiphp: Slot [27] registered
> [    0.251452] acpiphp: Slot [28] registered
> [    0.252232] acpiphp: Slot [29] registered
> [    0.253235] acpiphp: Slot [30] registered
> [    0.254240] acpiphp: Slot [31] registered
> [    0.255237] PCI host bridge to bus 0000:00
> [    0.256004] pci_bus 0000:00: root bus resource [bus 00-ff]
> [    0.257004] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7]
> [    0.258003] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff]
> [    0.259004] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
> [    0.260004] pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfbffffff]
> [    0.267476] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
> [    0.267476] * this clock source is slow. Consider trying other clock sources
> [    0.269167] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by PIIX4 ACPI
> [    0.275897] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 10 11)
> [    0.276951] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
> [    0.277956] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
> [    0.278950] ACPI: PCI Interrupt Link [LNKD] (IRQs *5 10 11)
> [    0.295628] ACPI: Enabled 2 GPEs in block 00 to 0F
> [    0.296075] xen:balloon: Initialising balloon driver
> [    0.298028] xen_balloon: Initialising balloon driver
> [    0.299055] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
> [    0.300007] vgaarb: loaded
> [    0.301004] vgaarb: bridge control possible 0000:00:02.0
> [    0.302063] SCSI subsystem initialized
> [    0.303005] ACPI: bus type ATA registered
> [    0.304053] ACPI: bus type USB registered
> [    0.305014] usbcore: registered new interface driver usbfs
> [    0.306010] usbcore: registered new interface driver hub
> [    0.307010] usbcore: registered new device driver usb
> [    0.308033] PCI: Using ACPI for IRQ routing
> [    0.309441] NetLabel: Initializing
> [    0.310004] NetLabel:  domain hash size = 128
> [    0.311003] NetLabel:  protocols = UNLABELED CIPSOv4
> [    0.312012] NetLabel:  unlabeled traffic allowed by default
> [    0.313060] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
> [    0.314019] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
> [    0.315583] hpet0: 3 comparators, 64-bit 62.500000 MHz counter
> [    0.318000] Switched to clocksource xen
> [    0.321576] pnp: PnP ACPI init
> [    0.322910] ACPI: bus type PNP registered
> [    0.324474] system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
> [    0.327167] system 00:02: [io  0x08a0-0x08a3] has been reserved
> [    0.329286] system 00:02: [io  0x0cc0-0x0ccf] has been reserved
> [    0.331509] system 00:02: [io  0x04d0-0x04d1] has been reserved
> [    0.334079] system 00:0b: [io  0x10c0-0x1141] has been reserved
> [    0.336388] system 00:0b: [io  0xb044-0xb047] has been reserved
> [    0.349487] pnp: PnP ACPI: found 12 devices
> [    0.351076] ACPI: bus type PNP unregistered
> [    0.361244] NET: Registered protocol family 2
> [    0.363041] TCP established hash table entries: 16384 (order: 6, 262144 bytes)
> [    0.365759] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
> [    0.368749] TCP: Hash tables configured (established 16384 bind 16384)
> [    0.371758] TCP: reno registered
> [    0.373280] UDP hash table entries: 1024 (order: 3, 32768 bytes)
> [    0.376048] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
> [    0.379095] NET: Registered protocol family 1
> [    0.381131] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
> [    0.383886] pci 0000:00:01.0: PIIX3: Enabling Passive Release
> [    0.386485] pci 0000:00:01.0: Activating ISA DMA hang workarounds
> [    0.389663] Unpacking initramfs...
> [    0.498082] Freeing initrd memory: 8488K (ffff880036f5c000 - ffff8800377a6000)
> [    0.504951] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
> [    0.508010] Initialise system trusted keyring
> [    0.509656] audit: initializing netlink socket (disabled)
> [    0.511574] type=2000 audit(1380400118.296:1): initialized
> [    0.534815] HugeTLB registered 2 MB page size, pre-allocated 0 pages
> [    0.540763] zbud: loaded
> [    0.543120] VFS: Disk quotas dquot_6.5.2
> [    0.546380] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [    0.549500] msgmni has been set to 3963
> [    0.552234] alg: No test for stdrng (krng)
> [    0.553980] NET: Registered protocol family 38
> [    0.555814] Key type asymmetric registered
> [    0.557522] Asymmetric key parser 'x509' registered
> [    0.559529] Asymmetric key parser 'pefile' registered
> [    0.561639] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
> [    0.564343] io scheduler noop registered
> [    0.565814] io scheduler deadline registered
> [    0.567386] io scheduler cfq registered (default)
> [    0.569121] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> [    0.571135] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
> [    0.573615] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
> [    0.576328] ACPI: Power Button [PWRF]
> [    0.577686] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
> [    0.580337] ACPI: Sleep Button [SLPF]
> [    0.581768] GHES: HEST is not enabled!
> [    0.583694] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [    0.611827] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> [    0.617678] Non-volatile memory driver v1.3
> [    0.620996] Linux agpgart interface v0.103
> [    0.625133] loop: module loaded
> [    0.627541] scsi0 : ata_piix
> [    0.628722] scsi1 : ata_piix
> [    0.629787] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14
> [    0.632215] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15
> [    0.634681] libphy: Fixed MDIO Bus: probed
> [    0.636752] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    0.639821] ehci-pci: EHCI PCI platform driver
> [    0.641661] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [    0.644174] ohci-pci: OHCI PCI platform driver
> [    0.646005] uhci_hcd: USB Universal Host Controller Interface driver
> [    0.648860] uhci_hcd 0000:00:01.2: UHCI Host Controller
> [    0.650775] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
> [    0.653583] uhci_hcd 0000:00:01.2: irq 23, io base 0x0000c040
> [    0.656160] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
> [    0.658561] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> [    0.661109] usb usb1: Product: UHCI Host Controller
> [    0.662860] usb usb1: Manufacturer: Linux 3.11.1-200.fc19.x86_64 uhci_hcd
> [    0.665310] usb usb1: SerialNumber: 0000:00:01.2
> [    0.667047] hub 1-0:1.0: USB hub found
> [    0.668462] hub 1-0:1.0: 2 ports detected
> [    0.670079] usbcore: registered new interface driver usbserial
> [    0.672242] usbcore: registered new interface driver usbserial_generic
> [    0.674594] usbserial: USB Serial support registered for generic
> [    0.676792] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
> [    0.680990] serio: i8042 KBD port at 0x60,0x64 irq 1
> [    0.682795] serio: i8042 AUX port at 0x60,0x64 irq 12
> [    0.684707] mousedev: PS/2 mouse device common for all mice
> [    0.687728] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
> [    0.692736] input: Xen Virtual Keyboard as /devices/virtual/input/input3
> [    0.698030] input: Xen Virtual Pointer as /devices/virtual/input/input4
> [    0.701254] ------------[ cut here ]------------
> [    0.702238] kernel BUG at drivers/xen/grant-table.c:1180!
> [    0.702238] invalid opcode: 0000 [#1] SMP 
> [    0.702238] Modules linked in:
> [    0.702238] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.11.1-200.fc19.x86_64 #1
> [    0.702238] Hardware name: Xen HVM domU, BIOS 4.2.3 09/09/2013
> [    0.702238] task: ffff88007b7a8000 ti: ffff88007b7a6000 task.ti: ffff88007b7a6000
> [    0.702238] RIP: 0010:[<ffffffff813a094f>]  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
> [    0.702238] RSP: 0018:ffff88007b7a7bd8  EFLAGS: 00010046
> [    0.702238] RAX: 0000000000000286 RBX: 0000000000000001 RCX: 0000000000000000
> [    0.702238] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff81fc7d70
> [    0.702238] RBP: ffff88007b7a7c20 R08: 0000000000000000 R09: 000000000000fffc
> [    0.702238] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
> [    0.702238] R13: 000000000007b0db R14: 0000000000000000 R15: 0000000000000000
> [    0.702238] FS:  0000000000000000(0000) GS:ffff88007ec20000(0000) knlGS:0000000000000000
> [    0.702238] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [    0.702238] CR2: 00000030004bd600 CR3: 0000000001c0c000 CR4: 00000000001406e0
> [    0.702238] Stack:
> [    0.702238]  ffff88007b0a30b0 ffff88007b0a3008 ffff88007b7a7c20 00000001814b65c6
> [    0.702238]  ffff88007b0c2360 0000000000000000 000000000007b0db 0000000000000000
> [    0.702238]  0000000000000000 ffff88007b7a7c50 ffffffff813a0983 ffff88007b0c2360
> [    0.702238] Call Trace:
> [    0.702238]  [<ffffffff813a0983>] gnttab_grant_foreign_access+0x23/0x60
> [    0.702238]  [<ffffffff814c7b68>] xenkbd_connect_backend+0x58/0x2c0
> [    0.702238]  [<ffffffff814c819a>] xenkbd_probe+0x2fa/0x340
> [    0.702238]  [<ffffffff813a82ae>] xenbus_dev_probe+0x8e/0x170
> [    0.702238]  [<ffffffff813a98e8>] xenbus_frontend_dev_probe+0x48/0x50
> [    0.702238]  [<ffffffff813f1f47>] driver_probe_device+0x87/0x390
> [    0.702238]  [<ffffffff813f2323>] __driver_attach+0x93/0xa0
> [    0.702238]  [<ffffffff813f2290>] ? __device_attach+0x40/0x40
> [    0.702238]  [<ffffffff813efe83>] bus_for_each_dev+0x63/0xa0
> [    0.702238]  [<ffffffff813f199e>] driver_attach+0x1e/0x20
> [    0.702238]  [<ffffffff813f1538>] bus_add_driver+0x1e8/0x2a0
> [    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
> [    0.702238]  [<ffffffff813f2964>] driver_register+0x74/0x150
> [    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
> [    0.702238]  [<ffffffff813a7aea>] xenbus_register_driver_common+0x1a/0x20
> [    0.702238]  [<ffffffff813a9db8>] xenbus_register_frontend+0x28/0x50
> [    0.702238]  [<ffffffff81d595cd>] xenkbd_init+0x2b/0x34
> [    0.702238]  [<ffffffff810020fa>] do_one_initcall+0xfa/0x1b0
> [    0.702238]  [<ffffffff810866f5>] ? parse_args+0x225/0x400
> [    0.702238]  [<ffffffff81d0f078>] kernel_init_freeable+0x177/0x1fa
> [    0.790000] ata2.01: NODEV after polling detection
> [    0.791467] ata2.00: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
> [    0.793313] ata2.00: configured for MWDMA2
> [    0.794098]  [<ffffffff81d0e898>] ? do_early_param+0x88/0x88
> [    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
> [    0.794098]  [<ffffffff8163d97e>] kernel_init+0xe/0x190
> [    0.794098]  [<ffffffff816567ac>] ret_from_fork+0x7c/0xb0
> [    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
> [    0.794098] Code: 8b 05 5e 74 c2 00 44 8b 2d 43 74 c2 00 e9 62 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 e4 ff ff ff e9 2a ff ff ff 44 89 c7 eb 84 <0f> 0b 0f 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 
> [    0.794098] RIP  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
> [    0.794098]  RSP <ffff88007b7a7bd8>
> [    0.794098] ---[ end trace 2b0f40d6e8fbbefd ]---
> [    0.822685] ata1.01: NODEV after polling detection
> [    0.824824] ata1.00: ATA-7: QEMU HARDDISK, 0.10.2, max UDMA/100
> [    0.826891] ata1.00: 75497472 sectors, multi 16: LBA48 
> [    0.829563] ata1.00: configured for MWDMA2
> [    0.831065] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.10 PQ: 0 ANSI: 5
> [    0.833920] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> [    0.833920] 

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Linux 3.11.1 HVM guest kernel crash when started with xl (get_free_entries)
  2013-09-30 13:39 ` Konrad Rzeszutek Wilk
@ 2013-09-30 14:02   ` Pasi Kärkkäinen
  2013-11-26 20:09     ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Pasi Kärkkäinen @ 2013-09-30 14:02 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: xen-devel

On Mon, Sep 30, 2013 at 09:39:49AM -0400, Konrad Rzeszutek Wilk wrote:
> On Sat, Sep 28, 2013 at 11:52:06PM +0300, Pasi Kärkkäinen wrote:
> > Hello,
> > 
> > Fedora 19, Xen 4.2.3 rpms from the distro.
> > 
> > Starting F19 HVM guest with xl causes the guest to crash during boot.
> > Starting the same guest with xm/xend works OK.. 
> > 
> > Kernels tested in the guest: 3.11.1 and 3.9.5, both show the same crash/traceback:
> > 
> > [    0.692736] input: Xen Virtual Keyboard as /devices/virtual/input/input3
> > [    0.698030] input: Xen Virtual Pointer as /devices/virtual/input/input4
> > [    0.701254] ------------[ cut here ]------------
> > [    0.702238] kernel BUG at drivers/xen/grant-table.c:1180!
> 
> Which is:
> 
> 1180         BUG_ON(grefs_per_grant_frame == 0);                                     
> 
> 
> Hmm, was there anything in the dmesg output having:
> 
> Grant tables using version <something>
> 
> ?
>

Hmm.. I'm not sure. I'm not able to access the host in question until next weekend,
so I'll check then and provide more information.
 
> Thanks!
>

And thanks to you!

-- Pasi

> > [    0.702238] invalid opcode: 0000 [#1] SMP
> > [    0.702238] Modules linked in:
> > [    0.702238] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.11.1-200.fc19.x86_64 #1
> > [    0.702238] Hardware name: Xen HVM domU, BIOS 4.2.3 09/09/2013
> > [    0.702238] task: ffff88007b7a8000 ti: ffff88007b7a6000 task.ti: ffff88007b7a6000
> > [    0.702238] RIP: 0010:[<ffffffff813a094f>]  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
> > [    0.702238] RSP: 0018:ffff88007b7a7bd8  EFLAGS: 00010046
> > [    0.702238] RAX: 0000000000000286 RBX: 0000000000000001 RCX: 0000000000000000
> > [    0.702238] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff81fc7d70
> > [    0.702238] RBP: ffff88007b7a7c20 R08: 0000000000000000 R09: 000000000000fffc
> > [    0.702238] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
> > [    0.702238] R13: 000000000007b0db R14: 0000000000000000 R15: 0000000000000000
> > [    0.702238] FS:  0000000000000000(0000) GS:ffff88007ec20000(0000) knlGS:0000000000000000
> > [    0.702238] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> > [    0.702238] CR2: 00000030004bd600 CR3: 0000000001c0c000 CR4: 00000000001406e0
> > [    0.702238] Stack:
> > [    0.702238]  ffff88007b0a30b0 ffff88007b0a3008 ffff88007b7a7c20 00000001814b65c6
> > [    0.702238]  ffff88007b0c2360 0000000000000000 000000000007b0db 0000000000000000
> > [    0.702238]  0000000000000000 ffff88007b7a7c50 ffffffff813a0983 ffff88007b0c2360
> > [    0.702238] Call Trace:
> > [    0.702238]  [<ffffffff813a0983>] gnttab_grant_foreign_access+0x23/0x60
> > [    0.702238]  [<ffffffff814c7b68>] xenkbd_connect_backend+0x58/0x2c0
> > [    0.702238]  [<ffffffff814c819a>] xenkbd_probe+0x2fa/0x340
> > [    0.702238]  [<ffffffff813a82ae>] xenbus_dev_probe+0x8e/0x170
> > [    0.702238]  [<ffffffff813a98e8>] xenbus_frontend_dev_probe+0x48/0x50
> > [    0.702238]  [<ffffffff813f1f47>] driver_probe_device+0x87/0x390
> > [    0.702238]  [<ffffffff813f2323>] __driver_attach+0x93/0xa0
> > [    0.702238]  [<ffffffff813f2290>] ? __device_attach+0x40/0x40
> > [    0.702238]  [<ffffffff813efe83>] bus_for_each_dev+0x63/0xa0
> > [    0.702238]  [<ffffffff813f199e>] driver_attach+0x1e/0x20
> > [    0.702238]  [<ffffffff813f1538>] bus_add_driver+0x1e8/0x2a0
> > [    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
> > [    0.702238]  [<ffffffff813f2964>] driver_register+0x74/0x150
> > [    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
> > [    0.702238]  [<ffffffff813a7aea>] xenbus_register_driver_common+0x1a/0x20
> > [    0.702238]  [<ffffffff813a9db8>] xenbus_register_frontend+0x28/0x50
> > [    0.702238]  [<ffffffff81d595cd>] xenkbd_init+0x2b/0x34
> > [    0.702238]  [<ffffffff810020fa>] do_one_initcall+0xfa/0x1b0
> > [    0.702238]  [<ffffffff810866f5>] ? parse_args+0x225/0x400
> > [    0.702238]  [<ffffffff81d0f078>] kernel_init_freeable+0x177/0x1fa
> > [    0.790000] ata2.01: NODEV after polling detection
> > [    0.791467] ata2.00: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
> > [    0.793313] ata2.00: configured for MWDMA2
> > [    0.794098]  [<ffffffff81d0e898>] ? do_early_param+0x88/0x88
> > [    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
> > [    0.794098]  [<ffffffff8163d97e>] kernel_init+0xe/0x190
> > [    0.794098]  [<ffffffff816567ac>] ret_from_fork+0x7c/0xb0
> > [    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
> > [    0.794098] Code: 8b 05 5e 74 c2 00 44 8b 2d 43 74 c2 00 e9 62 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 e4 ff ff ff e9 2a ff ff ff 44 89 c7 eb 84 <0f> 0b 0f 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00
> > [    0.794098] RIP  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
> > [    0.794098]  RSP <ffff88007b7a7bd8>
> > [    0.794098] ---[ end trace 2b0f40d6e8fbbefd ]---
> > [    0.822685] ata1.01: NODEV after polling detection
> > [    0.824824] ata1.00: ATA-7: QEMU HARDDISK, 0.10.2, max UDMA/100
> > [    0.826891] ata1.00: 75497472 sectors, multi 16: LBA48
> > [    0.829563] ata1.00: configured for MWDMA2
> > [    0.831065] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.10 PQ: 0 ANSI: 5
> > [    0.833920] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> > [    0.833920]
> > 
> > 
> > Full guest dmesg attached. 
> > 
> > 
> > HVM guest cfgfile:
> > 
> > [root@localhost ~]# cat /etc/xen/f19x64hvm02xl.cfg
> > 
> > builder='hvm'
> > name = "f19x64hvm02xl"
> > memory = 2048
> > vcpus=2
> > pae=1
> > acpi=1
> > apic=1
> > vif = [ 'mac=00:18:1f:01:01:22, bridge=virbr0, model=e1000' ]
> > disk = [ 'phy:/dev/vg00/f19x64hvm02xl,hda,w', 'file:/home/iso/Fedora-19-x86_64-DVD.iso,hdc:cdrom,r' ]
> > boot='cd'
> > xen_platform_pci=0
> > on_poweroff = 'destroy'
> > on_reboot   = 'restart'
> > on_crash    = 'restart'
> > sdl=0
> > vnc=1
> > stdvga=0
> > videoram=16
> > serial='pty'
> > tsc_mode="default"
> > usb=1
> > usbdevice='tablet'
> > keymap='fi'
> > viridian=0
> > 
> > 
> > 
> > 
> > 
> > -- Pasi
> > 
> > 
> 
> > [    0.000000] Initializing cgroup subsys cpuset
> > [    0.000000] Initializing cgroup subsys cpu
> > [    0.000000] Initializing cgroup subsys cpuacct
> > [    0.000000] Linux version 3.11.1-200.fc19.x86_64 (mockbuild@bkernel02) (gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC) ) #1 SMP Sat Sep 14 15:04:51 UTC 2013
> > [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.11.1-200.fc19.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root vconsole.keymap=fi-latin1 rhgb LANG=en_US.UTF-8 console=ttyS0
> > [    0.000000] e820: BIOS-provided physical RAM map:
> > [    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009dfff] usable
> > [    0.000000] BIOS-e820: [mem 0x000000000009e000-0x000000000009ffff] reserved
> > [    0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
> > [    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007effffff] usable
> > [    0.000000] BIOS-e820: [mem 0x00000000fc000000-0x00000000ffffffff] reserved
> > [    0.000000] NX (Execute Disable) protection: active
> > [    0.000000] SMBIOS 2.4 present.
> > [    0.000000] Hypervisor detected: Xen HVM
> > [    0.000000] Xen version 4.2.
> > [    0.000000] Xen Platform PCI: unrecognised magic value
> > [    0.000000] No AGP bridge found
> > [    0.000000] e820: last_pfn = 0x7f000 max_arch_pfn = 0x400000000
> > [    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
> > [    0.000000] found SMP MP-table at [mem 0x000fbba0-0x000fbbaf] mapped at [ffff8800000fbba0]
> > [    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
> > [    0.000000] init_memory_mapping: [mem 0x7ee00000-0x7effffff]
> > [    0.000000] init_memory_mapping: [mem 0x7c000000-0x7edfffff]
> > [    0.000000] init_memory_mapping: [mem 0x00100000-0x7bffffff]
> > [    0.000000] RAMDISK: [mem 0x36f5c000-0x377a5fff]
> > [    0.000000] ACPI: RSDP 00000000000ea020 00024 (v02    Xen)
> > [    0.000000] ACPI: XSDT 00000000fc00ff60 00054 (v01    Xen      HVM 00000000 HVML 00000000)
> > [    0.000000] ACPI: FACP 00000000fc00fc20 000F4 (v04    Xen      HVM 00000000 HVML 00000000)
> > [    0.000000] ACPI: DSDT 00000000fc003fa0 0BBF6 (v02    Xen      HVM 00000000 INTL 20130823)
> > [    0.000000] ACPI: FACS 00000000fc003f60 00040
> > [    0.000000] ACPI: APIC 00000000fc00fd20 000D8 (v02    Xen      HVM 00000000 HVML 00000000)
> > [    0.000000] ACPI: HPET 00000000fc00fe70 00038 (v01    Xen      HVM 00000000 HVML 00000000)
> > [    0.000000] ACPI: WAET 00000000fc00feb0 00028 (v01    Xen      HVM 00000000 HVML 00000000)
> > [    0.000000] ACPI: SSDT 00000000fc00fee0 00031 (v02    Xen      HVM 00000000 INTL 20130823)
> > [    0.000000] ACPI: SSDT 00000000fc00ff20 00031 (v02    Xen      HVM 00000000 INTL 20130823)
> > [    0.000000] No NUMA configuration found
> > [    0.000000] Faking a node at [mem 0x0000000000000000-0x000000007effffff]
> > [    0.000000] Initmem setup node 0 [mem 0x00000000-0x7effffff]
> > [    0.000000]   NODE_DATA [mem 0x7efec000-0x7effffff]
> > [    0.000000] Zone ranges:
> > [    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
> > [    0.000000]   DMA32    [mem 0x01000000-0xffffffff]
> > [    0.000000]   Normal   empty
> > [    0.000000] Movable zone start for each node
> > [    0.000000] Early memory node ranges
> > [    0.000000]   node   0: [mem 0x00001000-0x0009dfff]
> > [    0.000000]   node   0: [mem 0x00100000-0x7effffff]
> > [    0.000000] ACPI: PM-Timer IO Port: 0xb008
> > [    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x08] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x0a] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x0c] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x0e] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x08] lapic_id[0x10] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x09] lapic_id[0x12] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x14] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x16] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x18] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x1a] disabled)
> > [    0.000000] ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x1c] disabled)
> > [    0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
> > [    0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-47
> > [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
> > [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 low level)
> > [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 low level)
> > [    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
> > [    0.000000] Using ACPI (MADT) for SMP configuration information
> > [    0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
> > [    0.000000] smpboot: Allowing 15 CPUs, 13 hotplug CPUs
> > [    0.000000] PM: Registered nosave memory: [mem 0x0009e000-0x0009ffff]
> > [    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000dffff]
> > [    0.000000] PM: Registered nosave memory: [mem 0x000e0000-0x000fffff]
> > [    0.000000] e820: [mem 0x7f000000-0xfbffffff] available for PCI devices
> > [    0.000000] Booting paravirtualized kernel on Xen HVM
> > [    0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:15 nr_node_ids:1
> > [    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88007ec00000 s85568 r8192 d20928 u131072
> > [    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 511944
> > [    0.000000] Policy zone: DMA32
> > [    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.11.1-200.fc19.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap rd.md=0 rd.dm=0 rd.luks=0 vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root vconsole.keymap=fi-latin1 rhgb LANG=en_US.UTF-8 console=ttyS0
> > [    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
> > [    0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340
> > [    0.000000] Checking aperture...
> > [    0.000000] No AGP bridge found
> > [    0.000000] Memory: 2020860K/2080372K available (6507K kernel code, 990K rwdata, 2868K rodata, 1420K init, 1540K bss, 59512K reserved)
> > [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=15, Nodes=1
> > [    0.000000] Hierarchical RCU implementation.
> > [    0.000000] 	RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=15.
> > [    0.000000] NR_IRQS:8448 nr_irqs:1208 16
> > [    0.000000] xen:events: Xen HVM callback vector for event delivery is enabled
> > [    0.000000] Console: colour VGA+ 80x25
> > [    0.000000] console [ttyS0] enabled
> > [    0.000000] allocated 8388608 bytes of page_cgroup
> > [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
> > [    0.000000] tsc: Detected 3392.412 MHz processor
> > [    0.004000] Calibrating delay loop (skipped), value calculated using timer frequency.. 6784.82 BogoMIPS (lpj=3392412)
> > [    0.007004] pid_max: default: 32768 minimum: 301
> > [    0.010023] Security Framework initialized
> > [    0.012006] SELinux:  Initializing.
> > [    0.013220] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
> > [    0.017731] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
> > [    0.021288] Mount-cache hash table entries: 256
> > [    0.023223] Initializing cgroup subsys memory
> > [    0.026007] Initializing cgroup subsys devices
> > [    0.028002] Initializing cgroup subsys freezer
> > [    0.030003] Initializing cgroup subsys net_cls
> > [    0.032003] Initializing cgroup subsys blkio
> > [    0.033003] Initializing cgroup subsys perf_event
> > [    0.035061] CPU: Physical Processor ID: 0
> > [    0.037002] CPU: Processor Core ID: 0
> > [    0.039538] mce: CPU supports 2 MCE banks
> > [    0.041018] Last level iTLB entries: 4KB 512, 2MB 0, 4MB 0
> > [    0.041018] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32
> > [    0.041018] tlb_flushall_shift: 1
> > [    0.048386] Freeing SMP alternatives memory: 24K (ffffffff81e5c000 - ffffffff81e62000)
> > [    0.056957] ACPI: Core revision 20130517
> > [    0.064850] ACPI: All ACPI Tables successfully acquired
> > [    0.067126] ftrace: allocating 25146 entries in 99 pages
> > [    0.091003] Switched APIC routing to physical flat.
> > [    0.097249] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
> > [    0.114038] smpboot: CPU0: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (fam: 06, model: 3a, stepping: 09)
> > [    0.124046] installing Xen timer for CPU 0
> > [    0.128121] Performance Events: 16-deep LBR, IvyBridge events, full-width counters, Broken PMU hardware detected, using software events only.
> > [    0.131005] Failed to access perfctr msr (MSR 4c1 is 0)
> > [    0.133540] NMI watchdog: disabled (cpu0): hardware events not enabled
> > [    0.134138] installing Xen timer for CPU 1
> > [    0.135135] smpboot: Booting Node   0, Processors  #1
> > [    0.148023] Brought up 2 CPUs
> > [    0.149006] smpboot: Total of 2 processors activated (13569.64 BogoMIPS)
> > [    0.150651] devtmpfs: initialized
> > [    0.152427] atomic64 test passed for x86-64 platform with CX8 and with SSE
> > [    0.153050] RTC time: 20:28:37, date: 09/28/13
> > [    0.154075] NET: Registered protocol family 16
> > [    0.155217] ACPI: bus type PCI registered
> > [    0.156014] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
> > [    0.157176] PCI: Using configuration type 1 for base access
> > [    0.159043] bio: create slab <bio-0> at 0
> > [    0.160091] ACPI: Added _OSI(Module Device)
> > [    0.161004] ACPI: Added _OSI(Processor Device)
> > [    0.162003] ACPI: Added _OSI(3.0 _SCP Extensions)
> > [    0.163003] ACPI: Added _OSI(Processor Aggregator Device)
> > [    0.170351] ACPI: Interpreter enabled
> > [    0.171007] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20130517/hwxface-571)
> > [    0.174000] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20130517/hwxface-571)
> > [    0.176000] ACPI: (supports S0 S3 S4 S5)
> > [    0.176010] ACPI: Using IOAPIC for interrupt routing
> > [    0.177020] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
> > [    0.190641] ACPI: No dock devices found.
> > [    0.219144] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
> > [    0.220008] acpi PNP0A03:00: ACPI _OSC support notification failed, disabling PCIe ASPM
> > [    0.221004] acpi PNP0A03:00: Unable to request _OSC control (_OSC support mask: 0x08)
> > [    0.222052] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
> > [    0.224000] acpiphp: Slot [0] registered
> > [    0.224225] acpiphp: Slot [1] registered
> > [    0.225216] acpiphp: Slot [2] registered
> > [    0.226220] acpiphp: Slot [3] registered
> > [    0.227493] acpiphp: Slot [4] registered
> > [    0.228477] acpiphp: Slot [5] registered
> > [    0.229472] acpiphp: Slot [6] registered
> > [    0.230415] acpiphp: Slot [7] registered
> > [    0.231329] acpiphp: Slot [8] registered
> > [    0.232362] acpiphp: Slot [9] registered
> > [    0.233357] acpiphp: Slot [10] registered
> > [    0.234318] acpiphp: Slot [11] registered
> > [    0.235348] acpiphp: Slot [12] registered
> > [    0.236339] acpiphp: Slot [13] registered
> > [    0.237409] acpiphp: Slot [14] registered
> > [    0.238396] acpiphp: Slot [15] registered
> > [    0.239387] acpiphp: Slot [16] registered
> > [    0.240416] acpiphp: Slot [17] registered
> > [    0.241543] acpiphp: Slot [18] registered
> > [    0.242546] acpiphp: Slot [19] registered
> > [    0.243507] acpiphp: Slot [20] registered
> > [    0.244487] acpiphp: Slot [21] registered
> > [    0.245474] acpiphp: Slot [22] registered
> > [    0.246522] acpiphp: Slot [23] registered
> > [    0.247372] acpiphp: Slot [24] registered
> > [    0.248470] acpiphp: Slot [25] registered
> > [    0.249511] acpiphp: Slot [26] registered
> > [    0.250546] acpiphp: Slot [27] registered
> > [    0.251452] acpiphp: Slot [28] registered
> > [    0.252232] acpiphp: Slot [29] registered
> > [    0.253235] acpiphp: Slot [30] registered
> > [    0.254240] acpiphp: Slot [31] registered
> > [    0.255237] PCI host bridge to bus 0000:00
> > [    0.256004] pci_bus 0000:00: root bus resource [bus 00-ff]
> > [    0.257004] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7]
> > [    0.258003] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff]
> > [    0.259004] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
> > [    0.260004] pci_bus 0000:00: root bus resource [mem 0xf0000000-0xfbffffff]
> > [    0.267476] * Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
> > [    0.267476] * this clock source is slow. Consider trying other clock sources
> > [    0.269167] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by PIIX4 ACPI
> > [    0.275897] ACPI: PCI Interrupt Link [LNKA] (IRQs *5 10 11)
> > [    0.276951] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
> > [    0.277956] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
> > [    0.278950] ACPI: PCI Interrupt Link [LNKD] (IRQs *5 10 11)
> > [    0.295628] ACPI: Enabled 2 GPEs in block 00 to 0F
> > [    0.296075] xen:balloon: Initialising balloon driver
> > [    0.298028] xen_balloon: Initialising balloon driver
> > [    0.299055] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
> > [    0.300007] vgaarb: loaded
> > [    0.301004] vgaarb: bridge control possible 0000:00:02.0
> > [    0.302063] SCSI subsystem initialized
> > [    0.303005] ACPI: bus type ATA registered
> > [    0.304053] ACPI: bus type USB registered
> > [    0.305014] usbcore: registered new interface driver usbfs
> > [    0.306010] usbcore: registered new interface driver hub
> > [    0.307010] usbcore: registered new device driver usb
> > [    0.308033] PCI: Using ACPI for IRQ routing
> > [    0.309441] NetLabel: Initializing
> > [    0.310004] NetLabel:  domain hash size = 128
> > [    0.311003] NetLabel:  protocols = UNLABELED CIPSOv4
> > [    0.312012] NetLabel:  unlabeled traffic allowed by default
> > [    0.313060] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
> > [    0.314019] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
> > [    0.315583] hpet0: 3 comparators, 64-bit 62.500000 MHz counter
> > [    0.318000] Switched to clocksource xen
> > [    0.321576] pnp: PnP ACPI init
> > [    0.322910] ACPI: bus type PNP registered
> > [    0.324474] system 00:00: [mem 0x00000000-0x0009ffff] could not be reserved
> > [    0.327167] system 00:02: [io  0x08a0-0x08a3] has been reserved
> > [    0.329286] system 00:02: [io  0x0cc0-0x0ccf] has been reserved
> > [    0.331509] system 00:02: [io  0x04d0-0x04d1] has been reserved
> > [    0.334079] system 00:0b: [io  0x10c0-0x1141] has been reserved
> > [    0.336388] system 00:0b: [io  0xb044-0xb047] has been reserved
> > [    0.349487] pnp: PnP ACPI: found 12 devices
> > [    0.351076] ACPI: bus type PNP unregistered
> > [    0.361244] NET: Registered protocol family 2
> > [    0.363041] TCP established hash table entries: 16384 (order: 6, 262144 bytes)
> > [    0.365759] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
> > [    0.368749] TCP: Hash tables configured (established 16384 bind 16384)
> > [    0.371758] TCP: reno registered
> > [    0.373280] UDP hash table entries: 1024 (order: 3, 32768 bytes)
> > [    0.376048] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
> > [    0.379095] NET: Registered protocol family 1
> > [    0.381131] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
> > [    0.383886] pci 0000:00:01.0: PIIX3: Enabling Passive Release
> > [    0.386485] pci 0000:00:01.0: Activating ISA DMA hang workarounds
> > [    0.389663] Unpacking initramfs...
> > [    0.498082] Freeing initrd memory: 8488K (ffff880036f5c000 - ffff8800377a6000)
> > [    0.504951] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
> > [    0.508010] Initialise system trusted keyring
> > [    0.509656] audit: initializing netlink socket (disabled)
> > [    0.511574] type=2000 audit(1380400118.296:1): initialized
> > [    0.534815] HugeTLB registered 2 MB page size, pre-allocated 0 pages
> > [    0.540763] zbud: loaded
> > [    0.543120] VFS: Disk quotas dquot_6.5.2
> > [    0.546380] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> > [    0.549500] msgmni has been set to 3963
> > [    0.552234] alg: No test for stdrng (krng)
> > [    0.553980] NET: Registered protocol family 38
> > [    0.555814] Key type asymmetric registered
> > [    0.557522] Asymmetric key parser 'x509' registered
> > [    0.559529] Asymmetric key parser 'pefile' registered
> > [    0.561639] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
> > [    0.564343] io scheduler noop registered
> > [    0.565814] io scheduler deadline registered
> > [    0.567386] io scheduler cfq registered (default)
> > [    0.569121] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> > [    0.571135] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
> > [    0.573615] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
> > [    0.576328] ACPI: Power Button [PWRF]
> > [    0.577686] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
> > [    0.580337] ACPI: Sleep Button [SLPF]
> > [    0.581768] GHES: HEST is not enabled!
> > [    0.583694] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> > [    0.611827] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> > [    0.617678] Non-volatile memory driver v1.3
> > [    0.620996] Linux agpgart interface v0.103
> > [    0.625133] loop: module loaded
> > [    0.627541] scsi0 : ata_piix
> > [    0.628722] scsi1 : ata_piix
> > [    0.629787] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc060 irq 14
> > [    0.632215] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc068 irq 15
> > [    0.634681] libphy: Fixed MDIO Bus: probed
> > [    0.636752] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> > [    0.639821] ehci-pci: EHCI PCI platform driver
> > [    0.641661] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> > [    0.644174] ohci-pci: OHCI PCI platform driver
> > [    0.646005] uhci_hcd: USB Universal Host Controller Interface driver
> > [    0.648860] uhci_hcd 0000:00:01.2: UHCI Host Controller
> > [    0.650775] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
> > [    0.653583] uhci_hcd 0000:00:01.2: irq 23, io base 0x0000c040
> > [    0.656160] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
> > [    0.658561] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> > [    0.661109] usb usb1: Product: UHCI Host Controller
> > [    0.662860] usb usb1: Manufacturer: Linux 3.11.1-200.fc19.x86_64 uhci_hcd
> > [    0.665310] usb usb1: SerialNumber: 0000:00:01.2
> > [    0.667047] hub 1-0:1.0: USB hub found
> > [    0.668462] hub 1-0:1.0: 2 ports detected
> > [    0.670079] usbcore: registered new interface driver usbserial
> > [    0.672242] usbcore: registered new interface driver usbserial_generic
> > [    0.674594] usbserial: USB Serial support registered for generic
> > [    0.676792] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
> > [    0.680990] serio: i8042 KBD port at 0x60,0x64 irq 1
> > [    0.682795] serio: i8042 AUX port at 0x60,0x64 irq 12
> > [    0.684707] mousedev: PS/2 mouse device common for all mice
> > [    0.687728] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
> > [    0.692736] input: Xen Virtual Keyboard as /devices/virtual/input/input3
> > [    0.698030] input: Xen Virtual Pointer as /devices/virtual/input/input4
> > [    0.701254] ------------[ cut here ]------------
> > [    0.702238] kernel BUG at drivers/xen/grant-table.c:1180!
> > [    0.702238] invalid opcode: 0000 [#1] SMP 
> > [    0.702238] Modules linked in:
> > [    0.702238] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.11.1-200.fc19.x86_64 #1
> > [    0.702238] Hardware name: Xen HVM domU, BIOS 4.2.3 09/09/2013
> > [    0.702238] task: ffff88007b7a8000 ti: ffff88007b7a6000 task.ti: ffff88007b7a6000
> > [    0.702238] RIP: 0010:[<ffffffff813a094f>]  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
> > [    0.702238] RSP: 0018:ffff88007b7a7bd8  EFLAGS: 00010046
> > [    0.702238] RAX: 0000000000000286 RBX: 0000000000000001 RCX: 0000000000000000
> > [    0.702238] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff81fc7d70
> > [    0.702238] RBP: ffff88007b7a7c20 R08: 0000000000000000 R09: 000000000000fffc
> > [    0.702238] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
> > [    0.702238] R13: 000000000007b0db R14: 0000000000000000 R15: 0000000000000000
> > [    0.702238] FS:  0000000000000000(0000) GS:ffff88007ec20000(0000) knlGS:0000000000000000
> > [    0.702238] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> > [    0.702238] CR2: 00000030004bd600 CR3: 0000000001c0c000 CR4: 00000000001406e0
> > [    0.702238] Stack:
> > [    0.702238]  ffff88007b0a30b0 ffff88007b0a3008 ffff88007b7a7c20 00000001814b65c6
> > [    0.702238]  ffff88007b0c2360 0000000000000000 000000000007b0db 0000000000000000
> > [    0.702238]  0000000000000000 ffff88007b7a7c50 ffffffff813a0983 ffff88007b0c2360
> > [    0.702238] Call Trace:
> > [    0.702238]  [<ffffffff813a0983>] gnttab_grant_foreign_access+0x23/0x60
> > [    0.702238]  [<ffffffff814c7b68>] xenkbd_connect_backend+0x58/0x2c0
> > [    0.702238]  [<ffffffff814c819a>] xenkbd_probe+0x2fa/0x340
> > [    0.702238]  [<ffffffff813a82ae>] xenbus_dev_probe+0x8e/0x170
> > [    0.702238]  [<ffffffff813a98e8>] xenbus_frontend_dev_probe+0x48/0x50
> > [    0.702238]  [<ffffffff813f1f47>] driver_probe_device+0x87/0x390
> > [    0.702238]  [<ffffffff813f2323>] __driver_attach+0x93/0xa0
> > [    0.702238]  [<ffffffff813f2290>] ? __device_attach+0x40/0x40
> > [    0.702238]  [<ffffffff813efe83>] bus_for_each_dev+0x63/0xa0
> > [    0.702238]  [<ffffffff813f199e>] driver_attach+0x1e/0x20
> > [    0.702238]  [<ffffffff813f1538>] bus_add_driver+0x1e8/0x2a0
> > [    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
> > [    0.702238]  [<ffffffff813f2964>] driver_register+0x74/0x150
> > [    0.702238]  [<ffffffff81d595a2>] ? lifebook_module_init+0x1b/0x1b
> > [    0.702238]  [<ffffffff813a7aea>] xenbus_register_driver_common+0x1a/0x20
> > [    0.702238]  [<ffffffff813a9db8>] xenbus_register_frontend+0x28/0x50
> > [    0.702238]  [<ffffffff81d595cd>] xenkbd_init+0x2b/0x34
> > [    0.702238]  [<ffffffff810020fa>] do_one_initcall+0xfa/0x1b0
> > [    0.702238]  [<ffffffff810866f5>] ? parse_args+0x225/0x400
> > [    0.702238]  [<ffffffff81d0f078>] kernel_init_freeable+0x177/0x1fa
> > [    0.790000] ata2.01: NODEV after polling detection
> > [    0.791467] ata2.00: ATAPI: QEMU DVD-ROM, 0.10.2, max UDMA/100
> > [    0.793313] ata2.00: configured for MWDMA2
> > [    0.794098]  [<ffffffff81d0e898>] ? do_early_param+0x88/0x88
> > [    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
> > [    0.794098]  [<ffffffff8163d97e>] kernel_init+0xe/0x190
> > [    0.794098]  [<ffffffff816567ac>] ret_from_fork+0x7c/0xb0
> > [    0.794098]  [<ffffffff8163d970>] ? rest_init+0x80/0x80
> > [    0.794098] Code: 8b 05 5e 74 c2 00 44 8b 2d 43 74 c2 00 e9 62 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 e4 ff ff ff e9 2a ff ff ff 44 89 c7 eb 84 <0f> 0b 0f 0b 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 
> > [    0.794098] RIP  [<ffffffff813a094f>] get_free_entries+0x2cf/0x2e0
> > [    0.794098]  RSP <ffff88007b7a7bd8>
> > [    0.794098] ---[ end trace 2b0f40d6e8fbbefd ]---
> > [    0.822685] ata1.01: NODEV after polling detection
> > [    0.824824] ata1.00: ATA-7: QEMU HARDDISK, 0.10.2, max UDMA/100
> > [    0.826891] ata1.00: 75497472 sectors, multi 16: LBA48 
> > [    0.829563] ata1.00: configured for MWDMA2
> > [    0.831065] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.10 PQ: 0 ANSI: 5
> > [    0.833920] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> > [    0.833920] 
> 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xen.org
> > http://lists.xen.org/xen-devel
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Linux 3.11.1 HVM guest kernel crash when started with xl (get_free_entries)
  2013-09-30 14:02   ` Pasi Kärkkäinen
@ 2013-11-26 20:09     ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-11-26 20:09 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel

On Mon, Sep 30, 2013 at 05:02:25PM +0300, Pasi Kärkkäinen wrote:
> On Mon, Sep 30, 2013 at 09:39:49AM -0400, Konrad Rzeszutek Wilk wrote:
> > On Sat, Sep 28, 2013 at 11:52:06PM +0300, Pasi Kärkkäinen wrote:
> > > Hello,
> > > 
> > > Fedora 19, Xen 4.2.3 rpms from the distro.
> > > 
> > > Starting F19 HVM guest with xl causes the guest to crash during boot.
> > > Starting the same guest with xm/xend works OK.. 
> > > 
> > > Kernels tested in the guest: 3.11.1 and 3.9.5, both show the same crash/traceback:
> > > 
> > > [    0.692736] input: Xen Virtual Keyboard as /devices/virtual/input/input3
> > > [    0.698030] input: Xen Virtual Pointer as /devices/virtual/input/input4
> > > [    0.701254] ------------[ cut here ]------------
> > > [    0.702238] kernel BUG at drivers/xen/grant-table.c:1180!
> > 
> > Which is:
> > 
> > 1180         BUG_ON(grefs_per_grant_frame == 0);                                     
> > 
> > 
> > Hmm, was there anything in the dmesg output having:
> > 
> > Grant tables using version <something>
> > 
> > ?
> >
> 
> Hmm.. I'm not sure. I'm not able to access the host in question until next weekend,
> so I'll check then and provide more information.

This should fix it. Please try:
>From f7d3581aa19a35ea3ff10b965b2b08843e923635 Mon Sep 17 00:00:00 2001
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Date: Tue, 26 Nov 2013 15:05:40 -0500
Subject: [PATCH] xen/pvhvm: If xen_platform_pci=0 is set don't blow up.

*TODO*

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 drivers/block/xen-blkfront.c               |  2 +-
 drivers/input/misc/xen-kbdfront.c          |  4 ++++
 drivers/net/xen-netfront.c                 |  2 +-
 drivers/xen/xenbus/xenbus_probe_frontend.c |  2 +-
 include/xen/platform_pci.h                 | 13 +++++++++++++
 5 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 432db1b..bcbaf0b 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -2074,7 +2074,7 @@ static int __init xlblk_init(void)
 	if (!xen_domain())
 		return -ENODEV;
 
-	if (xen_hvm_domain() && !xen_platform_pci_unplug)
+	if (xen_err_out())
 		return -ENODEV;
 
 	if (register_blkdev(XENVBD_MAJOR, DEV_NAME)) {
diff --git a/drivers/input/misc/xen-kbdfront.c b/drivers/input/misc/xen-kbdfront.c
index e21c181..9d250cf 100644
--- a/drivers/input/misc/xen-kbdfront.c
+++ b/drivers/input/misc/xen-kbdfront.c
@@ -29,6 +29,7 @@
 #include <xen/interface/io/fbif.h>
 #include <xen/interface/io/kbdif.h>
 #include <xen/xenbus.h>
+#include <xen/platform_pci.h>
 
 struct xenkbd_info {
 	struct input_dev *kbd;
@@ -380,6 +381,9 @@ static int __init xenkbd_init(void)
 	if (xen_initial_domain())
 		return -ENODEV;
 
+	if (xen_err_out())
+		return -ENODEV;
+
 	return xenbus_register_frontend(&xenkbd_driver);
 }
 
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index e59acb1..be2744b 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -2115,7 +2115,7 @@ static int __init netif_init(void)
 	if (!xen_domain())
 		return -ENODEV;
 
-	if (xen_hvm_domain() && !xen_platform_pci_unplug)
+	if (xen_err_out())
 		return -ENODEV;
 
 	pr_info("Initialising Xen virtual ethernet driver\n");
diff --git a/drivers/xen/xenbus/xenbus_probe_frontend.c b/drivers/xen/xenbus/xenbus_probe_frontend.c
index 129bf84..b1c0f2a 100644
--- a/drivers/xen/xenbus/xenbus_probe_frontend.c
+++ b/drivers/xen/xenbus/xenbus_probe_frontend.c
@@ -496,7 +496,7 @@ subsys_initcall(xenbus_probe_frontend_init);
 #ifndef MODULE
 static int __init boot_wait_for_devices(void)
 {
-	if (xen_hvm_domain() && !xen_platform_pci_unplug)
+	if (xen_err_out())
 		return -ENODEV;
 
 	ready_to_wait_for_devices = 1;
diff --git a/include/xen/platform_pci.h b/include/xen/platform_pci.h
index 438c256..a5bbd0b 100644
--- a/include/xen/platform_pci.h
+++ b/include/xen/platform_pci.h
@@ -47,5 +47,18 @@ static inline int xen_must_unplug_disks(void) {
 }
 
 extern int xen_platform_pci_unplug;
+static  bool xen_err_out(void)
+{
 
+	if (!xen_domain())
+		return true;
+
+	if (xen_hvm_domain()) {
+		if (xen_platform_pci_unplug & (XEN_UNPLUG_UNNECESSARY | XEN_UNPLUG_NEVER))
+			return true;
+		if (xen_platform_pci_unplug == 0)
+			return true;
+	}
+	return false;
+}
 #endif /* _XEN_PLATFORM_PCI_H */
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-26 20:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-28 20:52 Linux 3.11.1 HVM guest kernel crash when started with xl (get_free_entries) Pasi Kärkkäinen
2013-09-30 13:39 ` Konrad Rzeszutek Wilk
2013-09-30 14:02   ` Pasi Kärkkäinen
2013-11-26 20:09     ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.