From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Teck Choon Giam <giamteckchoon@gmail.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
keir@xen.org, xen-devel@lists.xen.org
Subject: Re: backport requests for 4.x-testing
Date: Thu, 29 Mar 2012 12:23:18 -0400 [thread overview]
Message-ID: <20120329162318.GA9045@phenom.dumpdata.com> (raw)
In-Reply-To: <CAEwRVpO26caCHQYxAvn9z_y7PzDwnY+ujjKkO9w=CM65wba_FA@mail.gmail.com>
On Fri, Mar 30, 2012 at 12:20:05AM +0800, Teck Choon Giam wrote:
> On Thu, Mar 29, 2012 at 11:56 PM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
> >> >> > Applied 23225 and 24013. The other, toolstack-related, patches I will leave
> >> >> > for a tools maintainer to ack or apply.
> >> >>
> >> > Hey Teck,
> >> >
> >> > Thanks for reporting!
> >> >
> >> >> With the two backport patches committed in xen-4.1-testing (changeset
> >> >> 23271:13741fd6253b), xl list or xl create domU will cause 100% CPU and
> >> >
> >> > xl list?
> >>
> >> After a reboot with no domU running, xl list is fine but if I start a
> >> hvm domU will be stuck and caused high load then open another ssh
> >> terminal to issue xl list will stuck as well.
> >
> > This fix fixes it for me:
> >
> > diff -r 13741fd6253b xen/arch/x86/domain.c
> > --- a/xen/arch/x86/domain.c Thu Mar 29 10:20:58 2012 +0100
> > +++ b/xen/arch/x86/domain.c Thu Mar 29 11:44:54 2012 -0400
> > @@ -558,9 +558,9 @@ int arch_domain_create(struct domain *d,
> > d->arch.is_32bit_pv = d->arch.has_32bit_shinfo =
> > (CONFIG_PAGING_LEVELS != 4);
> >
> > - spin_lock_init(&d->arch.e820_lock);
> > }
> >
> > + spin_lock_init(&d->arch.e820_lock);
> > memset(d->arch.cpuids, 0, sizeof(d->arch.cpuids));
> > for ( i = 0; i < MAX_CPUID_INPUT; i++ )
> > {
> > @@ -605,8 +605,8 @@ void arch_domain_destroy(struct domain *
> >
> > if ( is_hvm_domain(d) )
> > hvm_domain_destroy(d);
> > - else
> > - xfree(d->arch.e820);
> > +
> > + xfree(d->arch.e820);
> >
> > vmce_destroy_msr(d);
> > free_domain_pirqs(d);
> >
> >
> > The issue is that upstream we have two 'domain structs' - one for PV and
> > one for HVM. In 4.1 it is just 'arch_domain' and the calls to create
> > the guests are going through the same interface (at least using xl, with
> > xm they are seperate). And I only initialized the spinlock in the PV case,
> > but not in the HVM case. This fix to the backport resolves the problem.
>
> Thanks for your fast and prompt fix ;)
>
> I am compiling with the fix patch you provided on top of
> xen-4.1-testing changeset 23271:13741fd6253b. Will test and report
> back if you are interested ;)
Yes please! If you find other issues, please report them immediately! Thanks
again for doing this.
next prev parent reply other threads:[~2012-03-29 16:23 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-06 10:13 backport requests for 4.x-testing Jan Beulich
2012-03-06 10:38 ` Keir Fraser
2012-03-06 11:04 ` Andrew Cooper
2012-03-07 7:25 ` Roderick Colenbrander
2012-03-07 9:43 ` Keir Fraser
2012-03-13 16:50 ` Ian Jackson
2012-03-13 17:25 ` Teck Choon Giam
2012-03-13 17:52 ` Teck Choon Giam
2012-03-13 18:23 ` Teck Choon Giam
2012-03-14 10:03 ` Ian Jackson
2012-03-14 9:58 ` Ian Jackson
2012-03-14 11:37 ` Ian Jackson
2012-03-14 23:08 ` Teck Choon Giam
2012-03-19 14:22 ` Teck Choon Giam
2012-04-03 15:04 ` Ian Jackson
2012-03-07 9:43 ` Keir Fraser
2012-03-07 10:44 ` Andrew Cooper
2012-03-07 10:59 ` Keir Fraser
2012-03-07 11:06 ` Jan Beulich
2012-03-07 11:08 ` Andrew Cooper
2012-03-07 19:38 ` Ian Campbell
2012-03-08 10:38 ` Andrew Cooper
2012-03-08 10:42 ` Keir Fraser
2012-03-13 16:52 ` Ian Jackson
2012-03-24 17:27 ` Konrad Rzeszutek Wilk
2012-03-29 9:22 ` Keir Fraser
2012-03-29 11:32 ` Teck Choon Giam
2012-03-29 11:42 ` Teck Choon Giam
2012-03-29 15:11 ` Konrad Rzeszutek Wilk
2012-03-29 15:26 ` Teck Choon Giam
2012-03-29 15:56 ` Konrad Rzeszutek Wilk
2012-03-29 16:20 ` Teck Choon Giam
2012-03-29 16:23 ` Konrad Rzeszutek Wilk [this message]
2012-03-29 16:39 ` Teck Choon Giam
2012-03-29 11:55 ` Stefano Stabellini
2012-03-29 15:31 ` Jan Beulich
2012-03-29 17:06 ` Stefano Stabellini
2012-03-30 8:23 ` Keir Fraser
2012-03-30 9:59 ` Stefano Stabellini
2012-04-03 15:08 ` Ian Jackson
2012-04-03 15:15 ` Teck Choon Giam
2012-04-03 16:58 ` Ian Jackson
2012-04-03 19:50 ` Teck Choon Giam
2012-04-03 20:02 ` Teck Choon Giam
2012-04-04 10:22 ` Ian Jackson
2012-04-04 12:54 ` Teck Choon Giam
2012-04-04 15:09 ` Ian Jackson
2012-03-07 9:18 ` Keir Fraser
2012-03-07 10:10 ` Jan Beulich
2012-03-08 10:00 ` Jan Beulich
2012-03-08 10:05 ` Keir Fraser
2012-03-08 10:45 ` Jan Beulich
2012-03-08 11:00 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120329162318.GA9045@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=andrew.cooper3@citrix.com \
--cc=giamteckchoon@gmail.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).