public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Bandan Das <bsd@redhat.com>
To: Andy Lutomirski <luto@amacapital.net>
Cc: kvm list <kvm@vger.kernel.org>,
	Suresh Siddha <suresh.b.siddha@intel.com>,
	X86 ML <x86@kernel.org>
Subject: Re: Nested VMX guest tsc_deadline OOPS
Date: Tue, 14 Oct 2014 06:46:35 -0400	[thread overview]
Message-ID: <jpg4mv7gc8k.fsf@redhat.com> (raw)
In-Reply-To: <CALCETrWQ4Xx6CHbxxyULNNF1PB3zF4NkSQzKK1hLfKe9eCJs-Q@mail.gmail.com> (Andy Lutomirski's message of "Mon, 13 Oct 2014 17:24:04 -0700")

Andy Lutomirski <luto@amacapital.net> 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 ?

> -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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-10-14 10:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-14  0:24 Nested VMX guest tsc_deadline OOPS Andy Lutomirski
2014-10-14 10:46 ` Bandan Das [this message]
2014-10-14 16:17   ` Andy Lutomirski
2014-10-15 17:14   ` Andy Lutomirski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jpg4mv7gc8k.fsf@redhat.com \
    --to=bsd@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=suresh.b.siddha@intel.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox