Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Kevin Wolf
Am 27.01.2012 20:52, schrieb Gleb Natapov: On Fri, Jan 27, 2012 at 08:23:33PM +0100, Kevin Wolf wrote: I believe this should work with both VMX and SVM now. Gleb, Jörg, can one of you test this with SVM? I did some testing on my buggy processor and it looks as good as it gets, but it would be

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Gleb Natapov
On Mon, Jan 30, 2012 at 09:48:33AM +0100, Kevin Wolf wrote: Am 27.01.2012 20:52, schrieb Gleb Natapov: On Fri, Jan 27, 2012 at 08:23:33PM +0100, Kevin Wolf wrote: I believe this should work with both VMX and SVM now. Gleb, Jörg, can one of you test this with SVM? I did some testing on my

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Gleb Natapov
On Mon, Jan 30, 2012 at 10:55:41AM +0200, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 09:48:33AM +0100, Kevin Wolf wrote: Am 27.01.2012 20:52, schrieb Gleb Natapov: On Fri, Jan 27, 2012 at 08:23:33PM +0100, Kevin Wolf wrote: I believe this should work with both VMX and SVM now. Gleb,

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Kevin Wolf
Am 30.01.2012 09:55, schrieb Gleb Natapov: On Mon, Jan 30, 2012 at 09:48:33AM +0100, Kevin Wolf wrote: Am 27.01.2012 20:52, schrieb Gleb Natapov: On Fri, Jan 27, 2012 at 08:23:33PM +0100, Kevin Wolf wrote: I believe this should work with both VMX and SVM now. Gleb, Jörg, can one of you test

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Avi Kivity
On 01/30/2012 12:35 PM, Kevin Wolf wrote: Am 30.01.2012 09:55, schrieb Gleb Natapov: On Mon, Jan 30, 2012 at 09:48:33AM +0100, Kevin Wolf wrote: Am 27.01.2012 20:52, schrieb Gleb Natapov: On Fri, Jan 27, 2012 at 08:23:33PM +0100, Kevin Wolf wrote: I believe this should work with both VMX

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Gleb Natapov
On Mon, Jan 30, 2012 at 11:35:00AM +0100, Kevin Wolf wrote: Am 30.01.2012 09:55, schrieb Gleb Natapov: On Mon, Jan 30, 2012 at 09:48:33AM +0100, Kevin Wolf wrote: Am 27.01.2012 20:52, schrieb Gleb Natapov: On Fri, Jan 27, 2012 at 08:23:33PM +0100, Kevin Wolf wrote: I believe this should

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Gleb Natapov
On Mon, Jan 30, 2012 at 12:45:15PM +0200, Avi Kivity wrote: On 01/30/2012 12:35 PM, Kevin Wolf wrote: Am 30.01.2012 09:55, schrieb Gleb Natapov: On Mon, Jan 30, 2012 at 09:48:33AM +0100, Kevin Wolf wrote: Am 27.01.2012 20:52, schrieb Gleb Natapov: On Fri, Jan 27, 2012 at 08:23:33PM

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Avi Kivity
On 01/30/2012 12:50 PM, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 12:45:15PM +0200, Avi Kivity wrote: On 01/30/2012 12:35 PM, Kevin Wolf wrote: Am 30.01.2012 09:55, schrieb Gleb Natapov: On Mon, Jan 30, 2012 at 09:48:33AM +0100, Kevin Wolf wrote: Am 27.01.2012 20:52, schrieb Gleb

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Gleb Natapov
On Mon, Jan 30, 2012 at 01:59:34PM +0200, Avi Kivity wrote: On 01/30/2012 12:50 PM, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 12:45:15PM +0200, Avi Kivity wrote: On 01/30/2012 12:35 PM, Kevin Wolf wrote: Am 30.01.2012 09:55, schrieb Gleb Natapov: On Mon, Jan 30, 2012 at 09:48:33AM

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Gleb Natapov
On Mon, Jan 30, 2012 at 01:59:34PM +0200, Avi Kivity wrote: It's best to make it independent (like svm, and force vmx to emulate this behaviour). Real mode forces cpl to 0, vm86 forces cpl to 3, protected mode (and I think long mode) uses cs.rpl. This is what vmx does, not svm.

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Avi Kivity
On 01/30/2012 02:16 PM, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 01:59:34PM +0200, Avi Kivity wrote: On 01/30/2012 12:50 PM, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 12:45:15PM +0200, Avi Kivity wrote: On 01/30/2012 12:35 PM, Kevin Wolf wrote: Am 30.01.2012 09:55, schrieb Gleb

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Avi Kivity
On 01/30/2012 02:31 PM, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 01:59:34PM +0200, Avi Kivity wrote: It's best to make it independent (like svm, and force vmx to emulate this behaviour). Real mode forces cpl to 0, vm86 forces cpl to 3, protected mode (and I think long mode) uses

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Gleb Natapov
On Mon, Jan 30, 2012 at 03:28:07PM +0200, Avi Kivity wrote: On 01/30/2012 02:31 PM, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 01:59:34PM +0200, Avi Kivity wrote: It's best to make it independent (like svm, and force vmx to emulate this behaviour). Real mode forces cpl to 0, vm86

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-30 Thread Avi Kivity
On 01/30/2012 03:29 PM, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 03:28:07PM +0200, Avi Kivity wrote: On 01/30/2012 02:31 PM, Gleb Natapov wrote: On Mon, Jan 30, 2012 at 01:59:34PM +0200, Avi Kivity wrote: It's best to make it independent (like svm, and force vmx to emulate

Re: [PATCH v2 0/3] Fix task switches into/out of VM86

2012-01-27 Thread Gleb Natapov
On Fri, Jan 27, 2012 at 08:23:33PM +0100, Kevin Wolf wrote: I believe this should work with both VMX and SVM now. Gleb, Jörg, can one of you test this with SVM? I did some testing on my buggy processor and it looks as good as it gets, but it would be better if you could confirm. You forgot to