KVM: VMX: fix incorrect cached cpl value with real/v8086 modes
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 7 Jan 2013 21:27:06 +0000 (19:27 -0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 8 Jan 2013 19:25:35 +0000 (17:25 -0200)
commitb09408d00fd82be80289a329dd94d1a0d6b77dc2
treea4c09381f06a7b821cd388579dc5a4c1a7651433
parentb0cfeb5dedf9109b8a8bd594abe60791b135a643
KVM: VMX: fix incorrect cached cpl value with real/v8086 modes

CPL is always 0 when in real mode, and always 3 when virtual 8086 mode.

Using values other than those can cause failures on operations that
check CPL.

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