From: Dan Magenheimer Subject: RE: Live migration fails due to c/s 20627 Date: Tue, 15 Dec 2009 20:14:27 -0800 (PST) Message-ID: <562bba8c-64a3-4876-b0ff-ae9349c76d3c@default> References: Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Zhang, Xiantao" , "Xu, Dongxiao" , Keir Fraser Cc: kurt.hackel@oracle.com, Jeremy Fitzhardinge , xen-devel@lists.xensource.com, "Nakajima, Jun" , "Dugger, Donald D" List-Id: xen-devel@lists.xenproject.org > >. And, as I've said before, > > the node/cpu info provided by Linux in TSC_AUX is > > wrong anyway (except in very constrained environments > > such as where the admin has pinned vcpus to pcpus). >=20 > I don't agree with you at this point. For guest numa support,=20 > it should be a must to pin virtual node's vcpus to its=20 > related physical node and crossing-node vcpu migration should=20 > be disallowed by default, otherwise guest numa support is=20 > meaningless, right ? It's not a must. A system administrator should always have the option of choosing flexibility vs performance. I agree that when performance is higher priority, pinning is a must, but pinning may even have issues when the guest's nvcpus exceeds the number of cores in a node. So I am saying there are many cases where TSC_AUX, when set by a guest OS, will be incorrect. And yes I agree there are cases (with pinning) where it will be correct. But how does an app or OS know whether to trust TSC_AUX or not? Better to have some other method to get pcpu/pnode information that is known to be always correct (via some method of querying the hypervisor directly). > If vcpu's migration only happens in its physical node, I=20 > can't see why you thought the info provided in the MSR is=20 > wrong. Actually, each vcpu should have a virtual=20 > TSC_AUX_MSR(guest should set it before using it), and this=20 > virtual MSR is saved/restored from/to physical TSC_AUX_MSR=20 > between context switch, so in vmx non-root mode the value in=20 > physical TSC_AUX_MSR should follow guest's setting rather=20 > than host's setting , and it also reflect guest's info=20 > related to virtual node/virtual cpu, and it still should be=20 > the expected value for guest's applications. In addition, we=20 > have to know host's TSC_AUX_MSR and guest's TSC_AUX_MSR are=20 > totally two different things except that they are saved in=20 > one physical register in cpu's different execution phases,=20 > shouldn't mix them together. =20 My argument is simply that if TSC_AUX cannot ALWAYS be trusted by an application, apps will NEVER trust it. And if apps NEVER trust it, why expose it at all? Thanks, Dan