From: Ian Campbell Subject: Re: Question re live migrate on Xen 4.2 re different cpu capabilities Date: Thu, 7 Feb 2013 16:16:55 +0000 Message-ID: <1360253815.32479.85.camel@zakaz.uk.xensource.com> References: <8B93B6FC00D1EC219B83AEDB@nimrod.local> <20130207091907.GA5540@aepfle.de> <1360230421.32479.46.camel@zakaz.uk.xensource.com> <496E7A8DB9DCF257D29E10F2@nimrod.local> <20130207151126.GA31180@aepfle.de> <13FBA4F2DA636D516C1AAB94@nimrod.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <13FBA4F2DA636D516C1AAB94@nimrod.local> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Alex Bligh Cc: Olaf Hering , Xen Devel List-Id: xen-devel@lists.xenproject.org On Thu, 2013-02-07 at 15:59 +0000, Alex Bligh wrote: > Olaf, > > --On 7 February 2013 16:11:26 +0100 Olaf Hering wrote: > > > cpuid= is what the guest sees, so its not so much a feature of Xen > > itself but what the host cpu provides. I'm not sure if Xen can emulate > > certain important bits. The wikipedia CPUID entry has a list what each > > bit means. > > I know what how to find out what the bits mean. But in some sense > I don't care. > > What I want to do is take a particular set of cpu features (which for the > sake of argument I will do by booting a kvm domain), and say "mask off > any additional cpuid flags beyond these", so if a new feature gets > introduced in the Xen codebase, it won't show in the guest. I think the > only thing I can do at the moment is check the Xen code for every cpu > feature Xen knows about, remove those I still want, and mask off the rest. > What I actually want to do is to say "please don't expose any features > other than these ones, and only expose these if the host supports them", > so that if we change versions of Xen to one supporting another feature, > we won't need to poke around in every domain config. I think you can do this using what xl.cfg(5) describes as the "xend" syntax, by setting all the ones you aren't explicitly exposing to 0. The "libxl syntax" is currently "=host,flag=value,..." which starts from the host and modifies the flags. I can't offhand thing of a reason why we wouldn't also want to support a different keyword ("explicit"?) which means "starting from an empty slate add these". Patches accepted... Ian.