From: Arjan van de Ven Subject: Re: [Xen-devel] [PATCH 10/24] xen: mask XSAVE from cpuid Date: Sun, 15 Mar 2009 17:09:45 -0700 Message-ID: <20090315170945.08344b86@infradead.org> References: <1236931920-6861-1-git-send-email-jeremy@goop.org> <1236931920-6861-11-git-send-email-jeremy@goop.org> <49BA3A84.76E4.0078.0@novell.com> <49BA7810.6090807@goop.org> <49BD4CE1.6040100@zytor.com> <49BD6D0E.1010107@goop.org> <20090315154718.00353625@infradead.org> <49BD97C6.2070401@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49BD97C6.2070401@goop.org> Sender: linux-kernel-owner@vger.kernel.org To: Jeremy Fitzhardinge Cc: "H. Peter Anvin" , Jan Beulich , Xen-devel , Jeremy Fitzhardinge , the arch/x86 maintainers , Linux Kernel Mailing List List-Id: xen-devel@lists.xenproject.org On Sun, 15 Mar 2009 17:05:26 -0700 Jeremy Fitzhardinge wrote: > Arjan van de Ven wrote: > > This is indicative of something that might be a huge bug in Xen: > > Xen should never ever pass through CPUID bits it does not know. > > If Xen does not honor that, there is a fundamental and eternally > > recurring problem.... every time something new gets introduced Xen > > likely breaks. > > Yes, I'd agree; Xen should whitelist cpu capabilities rather than > blacklist them. Jan expressed the opposite opinion (on the grounds > that it precludes using features which don't require special OS or > hypervisor support without Xen modifications). Well.. pretty much all new instructions need Xen modifications due to the need to be emulate to deal with traps/vmexits/etc right? So I don't quite see many cpuid bits that would NOT involve some Xen modification or another ;) -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org