From: Kevin Wolf Date: Wed, 8 Feb 2012 13:34:41 +0000 (+0100) Subject: KVM: x86 emulator: Allow PM/VM86 switch during task switch X-Git-Tag: v3.4-rc1~59^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cee4798a304ee1ea579423ca048f16ceaccdfb5;p=pandora-kernel.git KVM: x86 emulator: Allow PM/VM86 switch during task switch Task switches can switch between Protected Mode and VM86. The current mode must be updated during the task switch emulation so that the new segment selectors are interpreted correctly. In order to let privilege checks succeed, rflags needs to be updated in the vcpu struct as this causes a CPL update. Signed-off-by: Kevin Wolf Signed-off-by: Avi Kivity --- Reading git-diff-tree failed