]> Pileus Git - ~andy/linux/commit
KVM: emulator: drop RPL check from linearize() function
authorGleb Natapov <gleb@redhat.com>
Thu, 20 Dec 2012 14:57:42 +0000 (16:57 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 2 Jan 2013 21:36:26 +0000 (19:36 -0200)
commit3a78a4f46302bfc83602a53dfa4dcbe76a7a1f5f
tree02a2afcdcc0761259195bb2413b4996a045fcf4a
parent11393a077dcfa7fb827d957f0305fc369d402a5e
KVM: emulator: drop RPL check from linearize() function

According to Intel SDM Vol3 Section 5.5 "Privilege Levels" and 5.6
"Privilege Level Checking When Accessing Data Segments" RPL checking is
done during loading of a segment selector, not during data access. We
already do checking during segment selector loading, so drop the check
during data access. Checking RPL during data access triggers #GP if
after transition from real mode to protected mode RPL bits in a segment
selector are set.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c