From: Keir Fraser Subject: Re: write_tsc in a PV domain? Date: Wed, 26 Aug 2009 07:23:54 +0100 Message-ID: References: <668261e0-d1b8-49d0-8105-9aa70a30faa6@default> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <668261e0-d1b8-49d0-8105-9aa70a30faa6@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , Jeremy Fitzhardinge Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 26/08/2009 00:09, "Dan Magenheimer" 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