[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: Avoid alloc for xsave before xsave_init


  • To: "Wei, Gang" <gang.wei@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Thu, 13 Jan 2011 21:13:09 +0000
  • Cc:
  • Delivery-date: Thu, 13 Jan 2011 13:14:18 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=eNkGr8bRKwCtwevdC0JC/yFccSh0Mr2XEVLIPBBxIzr/xlWh4VU0Zoxq9707U6jt1S bWRVolTzLcNhL53eLMYQYSqjYvfDp3l1s7xA+OOgUtgyz1qhay6FGhuaxu40xg18O9QD SL1abIYw+zzzJVjCxkLRxEky+8maNKD6xJiWw=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcuzUojLeS2z6tQSQCO88b+hMX2tAQAFCTB3
  • Thread-topic: Avoid alloc for xsave before xsave_init

On 13/01/2011 18:48, "Wei, Gang" <gang.wei@xxxxxxxxx> wrote:

> While debugging some weird booting failure bugs, just found currently,
> xsave_alloc_save_area will be called in
> init_idle_domain->scheduler_init->alloc_vcpu->vcpu_initialise calls, it is
> earlier than xsave_init called in identity_cpu(). This may causing buffer
> overflow on xmem_pool. I am thinking about how to fix it.

I doubt idle vcpus need an xsave context. Can we check for is_idle_vcpu() in
xsave_{alloc,free}_save_area()?

Is this an issue only for xen-unstable/4.1 (not 4.0)?

 -- Keir

> Jimmy



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.