From: Tim Deegan Subject: Re: [PATCH v14 00/20] Introduce PVH domU support Date: Mon, 4 Nov 2013 18:34:52 +0100 Message-ID: <20131104173452.GB45309@deinos.phlegethon.org> References: <1383567306-6636-1-git-send-email-george.dunlap@eu.citrix.com> <20131104165905.GA6979@phenom.dumpdata.com> <5277D7FB.30208@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5277D7FB.30208@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Keir Fraser , Ian Campbell , Jan Beulich , xen-devel@lists.xen.org, Ian Jackson List-Id: xen-devel@lists.xenproject.org At 17:23 +0000 on 04 Nov (1383582187), George Dunlap wrote: > On 04/11/13 16:59, Konrad Rzeszutek Wilk wrote: > >> This also means no support for "legacy" forced invalid ops -- only native > >> cpuid is supported in this series. > > OK. > > (FWIW, support for legacy forced invalid ops was requested by Tim.) I was worried about existing PV kernel code that used the fake-CPUID, which would break if the 'core' kernel code went from PV to PVH. But I guess I could be convinced that such kernel code is buggy? Really, the high-order bit was consistency. The version I commented on supported them for user-space but not for kernel, which seemed like risking trouble for no benefit. > >> - Interface-wise: Right now PVH is special-cased for bringing up > >> CPUs. Is this what we want to do going forward, or would it be better > >> to try to make it more like PV (which was tried before and is hard), or more > >> like HVM (which would involve having emulated APICs, &c &c). > > How is it hard? From the Linux standpoint it is just an hypercall? > > This is my understanding of a discussion that happened between Tim and > Mukesh just as I was joining the conversation. My understanding was > that the issue had to do with pre-loading segments and DTs, which for PV > guests is easy because Xen controls the tables themselves, but is harder > to do in a reasonable way for HVM guests because the guest controls the > tables. Mukesh had initially implemented it the full PV way (or mostly > PV), but Tim was concerned about some kind of potential consistency > issue. But I didn't read the discussion very carefully, as I was just > trying to get my head around the series as a whole at that time. I don't think the PV code would be very hard. As I said, we already have code to load all that descriptor state for a HVM vcpu; it should just be a question of calling it all in the right order. Cheers, Tim.