Re: Nested VMX guest tsc_deadline OOPS

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

 



On Oct 14, 2014 3:46 AM, "Bandan Das" <bsd@xxxxxxxxxx> wrote:
>
> Andy Lutomirski <luto@xxxxxxxxxxxxxx> writes:
>
> > I don't know what's going on here, but a nested VMX boot using -cpu
> > host on SNB on L0 and L1 fails with the OOPS below.  I kind of suspect
> > that there's both a KVM bug and an APIC driver bug here.
>
> What kernel version is this ? What are you running for L1 and L2 ?

L0 is 3.16.3-200.fc20.x86_64.  L1 and L2 are both 3.17.

Here's a set of steps that will reproduce the issue:

0. Enable kvm_intel.nested=Y.  Make sure you have Python 3.3 or newer
and QEMU 1.6 or newer installed.

1. Clone virtme from git://git.kernel.org/pub/scm/utils/kernel/virtme/virtme.git

2. cd to the kernel tree that you want to test.  Build with the attached config

3. path/to/virtme/virtme-run --pwd --kimg arch/x86/boot/bzImage
--qemu-opts -m 1024

4. (inside virtme) path/to/virtme/virtme-run --pwd --kimg
arch/x86/boot/bzImage --qemu-opts -m 512

5. Read the OOPS :)

7. Press Ctrl-a x to exit.

Note that, when typing that fourth command, you won't have HOME set,
so you might need to use an absolute path.

If you're testing on Fedora, you can replace step 1 with 'dnf install
virtme' :)  (But, if you do that, you'll have to drop the '--pwd' and
fix the path to the nested --kimg, since the version of virtme in
Fedora is a little bit behind.)

--Andy

>
> > -cpu host,-tsc-deadline on L1 works around the OOPS.
> >
> > [    0.184000] Freeing SMP alternatives memory: 32K (ffffffff81ff0000
> > - ffffffff81ff8000)
> > [    0.188000] ------------[ cut here ]------------
> > [    0.189000] WARNING: CPU: 0 PID: 1 at
> > arch/x86/kernel/apic/apic.c:1393 setup_local_APIC+0x26c/0x320()
> > [    0.190000] Modules linked in:
> > [    0.192000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.17.0+ #459
> > [    0.193000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
> > [    0.194000]  0000000000000009 ffff8800070a3e40 ffffffff818588a7
> > 0000000000000000
> > [    0.199000]  ffff8800070a3e78 ffffffff8108db68 0000000000000000
> > 00000000000000f0
> > [    0.205000]  0000000000000000 00000000ffffffff 0000000000000001
> > ffff8800070a3e88
> > [    0.210000] Call Trace:
> > [    0.211000]  [<ffffffff818588a7>] dump_stack+0x45/0x56
> > [    0.212000]  [<ffffffff8108db68>] warn_slowpath_common+0x78/0xa0
> > [    0.213000]  [<ffffffff8108dc45>] warn_slowpath_null+0x15/0x20
> > [    0.214000]  [<ffffffff8107744c>] setup_local_APIC+0x26c/0x320
> > [    0.215000]  [<ffffffff81f06a74>] native_smp_prepare_cpus+0x255/0x312
> > [    0.216000]  [<ffffffff81ef702d>] kernel_init_freeable+0x94/0x1d1
> > [    0.217000]  [<ffffffff81851aa0>] ? rest_init+0x80/0x80
> > [    0.218000]  [<ffffffff81851aa9>] kernel_init+0x9/0xf0
> > [    0.219000]  [<ffffffff8186276c>] ret_from_fork+0x7c/0xb0
> > [    0.220000]  [<ffffffff81851aa0>] ? rest_init+0x80/0x80
> > [    0.221000] ---[ end trace f5f19be5716e445c ]---
> > [    0.234000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
> > [    0.244000] smpboot: CPU0: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
> > (fam: 06, model: 2d, stepping: 06)
> > [    0.248000] divide error: 0000 [#1] SMP
> > [    0.248000] Modules linked in:
> > [    0.248000] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W
> > 3.17.0+ #459
> > [    0.248000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
> > [    0.248000] task: ffff880007098000 ti: ffff8800070a0000 task.ti:
> > ffff8800070a0000
> > [    0.248000] RIP: 0010:[<ffffffff810eb9ef>]  [<ffffffff810eb9ef>]
> > clockevents_config.part.3+0x1f/0xa0
> > [    0.248000] RSP: 0000:ffff8800070a3e58  EFLAGS: 00010246
> > [    0.248000] RAX: ffffffffffffffff RBX: ffff880007c0cd00 RCX: 0000000000000000
> > [    0.248000] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffffffffff
> > [    0.248000] RBP: ffff8800070a3e70 R08: 0000000000000001 R09: ffffffff82036b90
> > [    0.248000] R10: 00000000000000a7 R11: 00000000000000a6 R12: 000000000000b018
> > [    0.248000] R13: 0000000000000040 R14: 000000000000b020 R15: 0000000000000000
> > [    0.248000] FS:  0000000000000000(0000) GS:ffff880007c00000(0000)
> > knlGS:0000000000000000
> > [    0.248000] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> > [    0.248000] CR2: ffff8800020dd000 CR3: 0000000001e11000 CR4: 00000000000406f0
> > [    0.248000] Stack:
> > [    0.248000]  ffff880007c0cd00 000000000000b018 0000000000000040
> > ffff8800070a3e88
> > [    0.248000]  ffffffff810ebbcb ffff880007c0cd00 ffff8800070a3e98
> > ffffffff8107646f
> > [    0.248000]  ffff8800070a3ed8 ffffffff81f086d0 0000000000000053
> > 0000000000000000
> > [    0.248000] Call Trace:
> > [    0.248000]  [<ffffffff810ebbcb>] clockevents_config_and_register+0x1b/0x30
> > [    0.248000]  [<ffffffff8107646f>] setup_APIC_timer+0x10f/0x170
> > [    0.248000]  [<ffffffff81f086d0>] setup_boot_APIC_clock+0x4ae/0x4ba
> > [    0.248000]  [<ffffffff81f06b0e>] native_smp_prepare_cpus+0x2ef/0x312
> > [    0.248000]  [<ffffffff81ef702d>] kernel_init_freeable+0x94/0x1d1
> > [    0.248000]  [<ffffffff81851aa0>] ? rest_init+0x80/0x80
> > [    0.248000]  [<ffffffff81851aa9>] kernel_init+0x9/0xf0
> > [    0.248000]  [<ffffffff8186276c>] ret_from_fork+0x7c/0xb0
> > [    0.248000]  [<ffffffff81851aa0>] ? rest_init+0x80/0x80
> > [    0.248000] Code: c3 66 66 2e 0f 1f 84 00 00 00 00 00 55 31 d2 89
> > f1 89 f6 41 b8 01 00 00 00 48 89 e5 41 55 41 54 53 48 89 fb 48 8b 7f
> > 70 48 89 f8 <48> f7 f6 48 85 c0 74 0b 48 3d 58 02 00 00 41 89 c0 77 4e
> > 4c 8d
> > [    0.248000] RIP  [<ffffffff810eb9ef>] clockevents_config.part.3+0x1f/0xa0
> > [    0.248000]  RSP <ffff8800070a3e58>
> > [    0.249000] ---[ end trace f5f19be5716e445d ]---
> > [    0.250000] Kernel panic - not syncing: Attempted to kill init!
> > exitcode=0x0000000b
> > [    0.250000]
> > [    0.250000] ---[ end Kernel panic - not syncing: Attempted to kill
> > init! exitcode=0x0000000b
> > [    0.250000]
> >
> >
> > --Andy
> > --
> > To unsubscribe from this list: send the line "unsubscribe kvm" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html

Attachment: nested_virtme_config.txt.xz
Description: application/xz


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux