OSDN Git Service

KVM: x86: check CS.DPL against RPL during task switch
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 May 2014 16:09:29 +0000 (18:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 May 2014 15:47:17 +0000 (17:47 +0200)
commit5045b468037dfe1c848827ce10e99d87f5669160
treea3562a257ed1889b7bf5d6dcd4ecb67edc79fd41
parentfb5e336b977086557739791ed51955c5913dc773
KVM: x86: check CS.DPL against RPL during task switch

Table 7-1 of the SDM mentions a check that the code segment's
DPL must match the selector's RPL.  This was not done by KVM,
fix it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c