Re: [PATCH v3 4/4] KVM: x86 emulator: Allow PM/VM86 switch during task switch

2012-02-06 Thread Avi Kivity
On 02/03/2012 08:29 PM, Kevin Wolf wrote: 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

Re: [PATCH v3 4/4] KVM: x86 emulator: Allow PM/VM86 switch during task switch

2012-02-06 Thread Kevin Wolf
Am 06.02.2012 11:32, schrieb Avi Kivity: On 02/03/2012 08:29 PM, Kevin Wolf wrote: 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

[PATCH v3 4/4] KVM: x86 emulator: Allow PM/VM86 switch during task switch

2012-02-03 Thread Kevin Wolf
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