Re: TSC in nested SVM and VMX

2010-10-03 Thread Alexander Graf
On 03.10.2010, at 10:35, Nadav Har'El wrote: > On Sun, Oct 03, 2010, Alexander Graf wrote about "Re: TSC in nested SVM and > VMX": >> Looking through the spec, the only indicator I've found is this passage: >> >> TSC_OFFSET - an offset to add when th

Re: TSC in nested SVM and VMX

2010-10-03 Thread Nadav Har'El
On Sun, Oct 03, 2010, Alexander Graf wrote about "Re: TSC in nested SVM and VMX": > Looking through the spec, the only indicator I've found is this passage: > > TSC_OFFSET - an offset to add when the guest reads the TSC (time stamp > counter). Guest writes to the

Re: TSC in nested SVM and VMX

2010-10-02 Thread Alexander Graf
01/2010 04:46 AM, Alexander Graf wrote: >>>> >>>>> On 01.10.2010, at 13:21, Nadav Har'El wrote: >>>>> >>>>> >>>>> >>>>>> On Thu, Sep 30, 2010, Zachary Amsden wrote about "Re: TSC in ne

Re: TSC in nested SVM and VMX

2010-10-02 Thread Zachary Amsden
chary Amsden wrote about "Re: TSC in nested SVM and VMX": 1) When reading an MSR, we are not emulating the L2 guest; we are DIRECTLY reading the MSR for the L1 emulation. Any emulation of the L2 guest is actually done by the code running /inside/ the L1 emulation, so MSR r

Re: TSC in nested SVM and VMX

2010-10-02 Thread Alexander Graf
On 02.10.2010, at 03:56, Alexander Graf wrote: > > Am 01.10.2010 um 21:22 schrieb Zachary Amsden : > >> On 10/01/2010 04:46 AM, Alexander Graf wrote: >>> On 01.10.2010, at 13:21, Nadav Har'El wrote: >>> >>> >>>> On Thu, Sep

Re: TSC in nested SVM and VMX

2010-10-02 Thread Alexander Graf
Am 01.10.2010 um 21:22 schrieb Zachary Amsden : > On 10/01/2010 04:46 AM, Alexander Graf wrote: >> On 01.10.2010, at 13:21, Nadav Har'El wrote: >> >> >>> On Thu, Sep 30, 2010, Zachary Amsden wrote about "Re: TSC in nested SVM and >>> VMX&qu

Re: TSC in nested SVM and VMX

2010-10-01 Thread Zachary Amsden
On 10/01/2010 04:46 AM, Alexander Graf wrote: On 01.10.2010, at 13:21, Nadav Har'El wrote: On Thu, Sep 30, 2010, Zachary Amsden wrote about "Re: TSC in nested SVM and VMX": 1) When reading an MSR, we are not emulating the L2 guest; we are DIRECTLY reading the

Re: TSC in nested SVM and VMX

2010-10-01 Thread Alexander Graf
On 01.10.2010, at 13:21, Nadav Har'El wrote: > On Thu, Sep 30, 2010, Zachary Amsden wrote about "Re: TSC in nested SVM and > VMX": >> 1) When reading an MSR, we are not emulating the L2 guest; we are >> DIRECTLY reading the MSR for the L1 emulation. Any

Re: TSC in nested SVM and VMX

2010-10-01 Thread Nadav Har'El
On Thu, Sep 30, 2010, Zachary Amsden wrote about "Re: TSC in nested SVM and VMX": > 1) When reading an MSR, we are not emulating the L2 guest; we are > DIRECTLY reading the MSR for the L1 emulation. Any emulation of the L2 > guest is actually done by the code running /insid

Re: TSC in nested SVM and VMX

2010-09-30 Thread Zachary Amsden
On 09/30/2010 12:50 PM, Nadav Har'El wrote: Hi, I noticed that the TSC handling code has recently changed, and since it wasn't done correctly in the nested VMX patch, I wanted to take the opportunity to fix it. I looked at what nested SVM does about TSC, and most of it I think I understand, but