diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-01-21 08:28:46 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:36:03 -0500 |
commit | ab344828ebe729e52949d64046adaa196f6b9dbe (patch) | |
tree | 4dcd8ebdd8a2bb3afefb2028abd667970bf4d6ed /arch/avr32/Kconfig.debug | |
parent | f0f4b930900ffa8daddb5262522c3e5c67ee1835 (diff) |
KVM: x86: fix checking of cr0 validity
Move to/from Control Registers chapter of Intel SDM says. "Reserved bits
in CR0 remain clear after any load of those registers; attempts to set
them have no impact". Control Register chapter says "Bits 63:32 of CR0 are
reserved and must be written with zeros. Writing a nonzero value to any
of the upper 32 bits results in a general-protection exception, #GP(0)."
This patch tries to implement this twisted logic.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Reported-by: Lorenzo Martignoni <martignlo@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/avr32/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions