From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Andreas Olsowski <andreas.olsowski@leuphana.de>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: xen/stable-2.6.32.x xen-4.1.1 live migration fails with kernels 2.6.39, 3.0.3 and 3.1-rc2.. between different physical machines and CPUs.
Date: Mon, 12 Sep 2011 12:47:56 -0400 [thread overview]
Message-ID: <20110912164756.GA31301@oracle.com> (raw)
In-Reply-To: <4E69AB53.5010702@leuphana.de>
> This does not neccessarily have sth to todo with the amount of memory.
> I do see this on hosts where both have the same amount of ram but
> are a different hardware platform.
<nods> Let me modify the subject a bit to reflect this.
> >I think the problem you are running into is that you are migrating between
> >different CPU families... Is the /proc/cpuinfo drastically different between
> >the boxes?
> diff:
> < model : 26
> < model name : Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
> < stepping : 5
> < cpu MHz : 2261.074
> < cache size : 8192 KB
> ---
> > model : 44
> > model name : Intel(R) Xeon(R) CPU E5640 @ 2.67GHz
> > stepping : 2
> > cpu MHz : 2660.050
> > cache size : 12288 KB
> 13,14c13,14
> < flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat
> clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc
> rep_good nonstop_tsc aperfmperf pni est ssse3 cx16 sse4_1 sse4_2
> popcnt hypervisor lahf_lm ida
> < bogomips : 4522.14
> ---
> > flags : fpu de tsc msr pae mce cx8 apic sep mtrr mca cmov pat
> clflush acpi mmx fxsr sse sse2 ss ht syscall lm constant_tsc
> rep_good nonstop_tsc aperfmperf pni pclmulqdq est ssse3 cx16 sse4_1
> sse4_2 popcnt aes hypervisor lahf_lm ida arat
> > bogomips : 5320.10
>
> diffrent flags are: nx and aes
On the Linux command line, try using 'noexec=off' - that should
take care of the 'nx' bit.
The aes.. the 'xl' command has a bit easier syntax for setting the CPUID:
cpuid='host,family=15,model=26,stepping=5,aes=s'
That ought to take care of that. I don't really understand how
the old 'cpuid=['...']' syntax worked (the one that 'xm' used).
It looks quite arcane - so I think doing some Google search is the
only way to figure that out.
But co-workers of mine remind me that CPUID instructions is
trapped by the hypervisor (both HVM and PV - PV via a special
opcode - look in arch/x86/include/asm/xen/interface.h for details) for
the kernel _only_. There is no such guarantee for applications. Meaning that
if the application uses the 'cpuid' to figure out if 'aes' is available
instead of using /proc/cpuinfo, it _will_ get the 'aes' on one machine.
This application using CPUID and getting and not getting the right
filtered value is not present with HVM guests - as the CPUID instruction
is trapped there irregardless of whether it is running in the kernel or
user-land.
next prev parent reply other threads:[~2011-09-12 16:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-19 17:56 xen/stable-2.6.32.x xen-4.1.1 live migration fails with kernels 2.6.39, 3.0.3 and 3.1-rc2 Andreas Olsowski
2011-08-22 7:32 ` Jan Beulich
2011-08-22 13:56 ` Andreas Olsowski
2011-08-24 20:34 ` Konrad Rzeszutek Wilk
2011-08-25 7:15 ` Andreas Olsowski
2011-08-26 15:00 ` Konrad Rzeszutek Wilk
2011-08-26 17:26 ` Andreas Olsowski
2011-08-29 19:49 ` Konrad Rzeszutek Wilk
2011-08-31 13:07 ` Andreas Olsowski
2011-09-07 13:50 ` Konrad Rzeszutek Wilk
2011-09-08 17:32 ` Konrad Rzeszutek Wilk
2011-09-08 18:12 ` Konrad Rzeszutek Wilk
2011-09-08 19:50 ` Konrad Rzeszutek Wilk
2011-09-09 5:59 ` Andreas Olsowski
2011-09-12 16:47 ` Konrad Rzeszutek Wilk [this message]
[not found] ` <19825_1315548082_p8961G08009635_4E69AB53.5010702@leuphana.de>
2011-09-09 9:18 ` Andreas Olsowski
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=20110912164756.GA31301@oracle.com \
--to=konrad.wilk@oracle.com \
--cc=andreas.olsowski@leuphana.de \
--cc=xen-devel@lists.xensource.com \
/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).