Bug 152228 - [xen] [panic] Xen/PV panic with machdep.idle_mwait=1
Summary: [xen] [panic] Xen/PV panic with machdep.idle_mwait=1
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2010-11-14 05:10 UTC by Colin Percival
Modified: 2022-10-17 12:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Percival freebsd_committer freebsd_triage 2010-11-14 05:10:04 UTC
Kernel panic:
> Fatal trap 1: privileged instruction fault while in kernel mode
> cpuid = 0; apic id = 00
> instruction pointer     = 0x21:0xc031ac5c
> stack pointer           = 0x29:0xc2719c84
> frame pointer           = 0x29:0xc2719c88
> code segment            = base rx0, limit 0xf9800, type 0x1b
>                         = DPL 1, pres 1, def32 1, gran 1
> processor eflags        = interrupt enabled, resume, IOPL = 0
> current process         = 11 (idle: cpu0)
> trap number             = 1
> panic: privileged instruction fault
> cpuid = 0
> KDB: stack backtrace:
> #0 0xc0106057 at kdb_backtrace+0x47
> #1 0xc00d3c47 at panic+0x117
> #2 0xc032efa3 at dblfault_handler+0x3c3
> #3 0xc032f8ad at trap+0x5ed
> #4 0xc03150bb at alltraps+0x1b
> #5 0xc031acb0 at cpu_idle+0x30
> #6 0xc00f9133 at sched_idletd+0x263
> #7 0xc00aa7a8 at fork_exit+0xb8
> #8 0xc0315134 at fork_trampoline+0x8
> Uptime: 1s

The privileged instruction fault is being triggered by mwait.

Fix: 

Setting machdep.idle_mwait=0 prevents this panic.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-11-20 09:28:14 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-xen

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:15 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:17:34 UTC
Keyword: 

    crash

– in lieu of summary line prefix: 

    [panic]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>