Re: [PATCH kvm-unittests v2] x86/taskswitch2: Task switches into/out of VM86

2013-04-15 Thread Gleb Natapov
On Mon, Apr 15, 2013 at 05:42:27PM +0200, Kevin Wolf wrote: > Am 15.04.2013 um 17:38 hat Gleb Natapov geschrieben: > > On Mon, Apr 15, 2013 at 10:56:42AM +0200, Kevin Wolf wrote: > > > Am 14.04.2013 um 14:42 hat Gleb Natapov geschrieben: > > > > On Fri, Apr 12, 2013 at 01:14:47PM +0200, Kevin Wolf

Re: [PATCH kvm-unittests v2] x86/taskswitch2: Task switches into/out of VM86

2013-04-15 Thread Kevin Wolf
Am 15.04.2013 um 17:38 hat Gleb Natapov geschrieben: > On Mon, Apr 15, 2013 at 10:56:42AM +0200, Kevin Wolf wrote: > > Am 14.04.2013 um 14:42 hat Gleb Natapov geschrieben: > > > On Fri, Apr 12, 2013 at 01:14:47PM +0200, Kevin Wolf wrote: > > > > This adds a test case that jumps into VM86 by iret-in

Re: [PATCH kvm-unittests v2] x86/taskswitch2: Task switches into/out of VM86

2013-04-15 Thread Gleb Natapov
On Mon, Apr 15, 2013 at 10:56:42AM +0200, Kevin Wolf wrote: > Am 14.04.2013 um 14:42 hat Gleb Natapov geschrieben: > > On Fri, Apr 12, 2013 at 01:14:47PM +0200, Kevin Wolf wrote: > > > This adds a test case that jumps into VM86 by iret-ing to a TSS and back > > > to Protected Mode using a task gate

Re: [PATCH kvm-unittests v2] x86/taskswitch2: Task switches into/out of VM86

2013-04-15 Thread Kevin Wolf
Am 14.04.2013 um 14:42 hat Gleb Natapov geschrieben: > On Fri, Apr 12, 2013 at 01:14:47PM +0200, Kevin Wolf wrote: > > This adds a test case that jumps into VM86 by iret-ing to a TSS and back > > to Protected Mode using a task gate in the IDT. > > > > Signed-off-by: Kevin Wolf > Applied, thanks.

Re: [PATCH kvm-unittests v2] x86/taskswitch2: Task switches into/out of VM86

2013-04-14 Thread Gleb Natapov
On Fri, Apr 12, 2013 at 01:14:47PM +0200, Kevin Wolf wrote: > This adds a test case that jumps into VM86 by iret-ing to a TSS and back > to Protected Mode using a task gate in the IDT. > > Signed-off-by: Kevin Wolf Applied, thanks. Found a bug with it and emulate_invalid_guest_state=1 which is de

[PATCH kvm-unittests v2] x86/taskswitch2: Task switches into/out of VM86

2013-04-12 Thread Kevin Wolf
This adds a test case that jumps into VM86 by iret-ing to a TSS and back to Protected Mode using a task gate in the IDT. Signed-off-by: Kevin Wolf --- lib/x86/desc.c| 41 -- lib/x86/desc.h| 36 ++ lib/x86/vm.c | 4 ++-- li