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: [PATCH] vtdt: add a missing change (RE: [Xen-devel] Re: xen guest ha

To: Christoph Egger <Christoph.Egger@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [PATCH] vtdt: add a missing change (RE: [Xen-devel] Re: xen guest hang with TSC_DEADLINE)
From: "Wei, Gang" <gang.wei@xxxxxxxxx>
Date: Wed, 5 Jan 2011 18:26:13 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "Morgan, KeirX" <keirx.morgan@xxxxxxxxx>, Fraser <Keir.Fraser@xxxxxxxxxxxxx>, "Wei, Gang" <gang.wei@xxxxxxxxx>
Delivery-date: Wed, 05 Jan 2011 02:27:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201101051107.32280.Christoph.Egger@xxxxxxx>
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>
References: <201012171529.56897.Christoph.Egger@xxxxxxx> <F26D193E20BBDC42A43B611D1BDEDE7124EF2BCFA3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <201101041200.22612.Christoph.Egger@xxxxxxx> <201101051107.32280.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcuswHdG9rOoip1HSbGwWRij7E018gAAhi/g
Thread-topic: [PATCH] vtdt: add a missing change (RE: [Xen-devel] Re: xen guest hang with TSC_DEADLINE)
Christoph Egger wrote on 2011-01-05:
>>>>>> c/s 22529 and 22530 cause a xen guest hang.
>>>>>> 
>>>>>> While "normal" guests like Linux and NetBSD boot fine I boot
>>>>>> Xen itself as a xen guest for my nested virtualization.
>>>>>> 
>>>>>> When I do that then the guest dom0 hangs at boot when it tries
>>>>>> to initialize the first vcpu.
>>>>>> The bug is introduced somewhere in c/s 22529 and triggers with
>>>>>> c/s 22530.
>>>>> 
>>>>> Can you enable apic_timer debug info var hvm_debug and give
>>>>> more serial port log around the guest dom0 hangs? I used to
>>>>> test xen guest, it works well expect that it boot a little bit slowly.
>>>> 
>>>> This is the log output I get with TSC_DEADLINE feature enabled:
>>> 
>>> Just found one change was missed while the whole patch was checked in.
>>> Apply below patch, it should be ok now.
>>> ...
>> 
>> The hang is still reproducable with this change. Sorry.
> 
> I took a deeper look into this problem.
> The guest dom0 depends on the xen clock to continue ticking.
> When the guest xen hypervisor uses the TSC Deadline Timer then the xen
> clock for the guest dom0 does not continue ticking.
> By "xen clock" I mean the timer a PV guest uses.
> 
> When the dom0 initializes the first virtual cpu it determines cpu
> frequency by reading the TSC, waits 1 second and reads the TSC again.
> To finish the 1 second wait it depends on the xen clock to tick.

Along with the serial log, guest dom0 output, could you also give the host grub 
.conf, guest grub.conf and the hvm guest config file?

Jimmy



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