WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] write_tsc in a PV domain?

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: Re: [Xen-devel] write_tsc in a PV domain?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 26 Aug 2009 07:23:54 +0100
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 25 Aug 2009 23:24:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <668261e0-d1b8-49d0-8105-9aa70a30faa6@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acol2TZEeNtdJMWvQhutBJQPKDDk9AAPJKeD
Thread-topic: [Xen-devel] write_tsc in a PV domain?
User-agent: Microsoft-Entourage/12.20.0.090605
On 26/08/2009 00:09, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

>> arch/x86/traps.c:emulate_privileged_op(), case 0x30.  It looks like
>> writing to 0x10 would be silently ignored.
> 
> Hmmm... maybe I am misreading the code but it looks like the
> default case will end up with "goto fail" which will not
> update IP and so will infinite loop trapping on that instruction.
> 
> It appears that write_tsc calls are made in linux-2.6.18 (though
> apparently never get executed) but disappear somewhere before
> 2.6.24 and don't exist in 2.6.30 either.  So perhaps write_tsc
> has never been executed in a PV guest and just doesn't work.

Jeremy is correct. The TSC MSR cannot be written. Most that will happen is
that Xen will print a warning message, but the WRMSR instruction will always
be skipped over.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel