• Gleb Natapov's avatar
    KVM: emulator: drop RPL check from linearize() function · 3a78a4f4
    Gleb Natapov authored
    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: default avatarGleb Natapov <gleb@redhat.com>
    Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
    3a78a4f4
emulate.c 121 KB