]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: Fix PDPTR reloading on CR4 writes
authorAvi Kivity <avi@redhat.com>
Sun, 24 May 2009 19:19:00 +0000 (22:19 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 25 May 2009 17:00:53 +0000 (20:00 +0300)
commita2edf57f510cce6a389cc14e58c6ad0a4296d6f9
tree77fd1e5a86c32d483323c9dc64cdc30eaa3b349e
parenta8cd0244e9cebcf9b358d24c7e7410062f3665cb
KVM: Fix PDPTR reloading on CR4 writes

The processor is documented to reload the PDPTRs while in PAE mode if any
of the CR4 bits PSE, PGE, or PAE change.  Linux relies on this
behaviour when zapping the low mappings of PAE kernels during boot.

The code already handled changes to CR4.PAE; augment it to also notice changes
to PSE and PGE.

This triggered while booting an F11 PAE kernel; the futex initialization code
runs before any CR3 reloads and writes to a NULL pointer; the futex subsystem
ended up uninitialized, killing PI futexes and pulseaudio which uses them.

Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c