From: Ian Campbell Subject: Re: [HYBRID]: status update... Date: Wed, 15 Aug 2012 10:42:11 +0100 Message-ID: <1345023731.5926.149.camel@zakaz.uk.xensource.com> References: <20120626181707.4203d336@mantra.us.oracle.com> <20120801153439.3f81c923@mantra.us.oracle.com> <501A4E0C.1090509@eu.citrix.com> <20120813151446.22ae85b5@mantra.us.oracle.com> <20120814103827.7dcf55f1@mantra.us.oracle.com> <20120814105157.044a755e@mantra.us.oracle.com> <502B77BC0200007800094FF2@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <502B77BC0200007800094FF2@nat28.tlf.novell.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: Jan Beulich Cc: George Dunlap , Keir Fraser , "Xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2012-08-15 at 09:19 +0100, Jan Beulich wrote: > >>> On 14.08.12 at 19:51, Mukesh Rathor wrote: > > BTW, being a good hybrid as it is, it uses fields from both pv_domain > > and hvm_domain structs. Combining into a union created difficulties for > > me. I experimented creating a new struct, hyb_domain, or adding hvm > > related fields to pv_domain struct for hybrid, but both involved way too > > much code change. So back to having them separated again. LMK if there > > any objections undoing the union. > > I suppose there are going to be fields that are used exclusively > for PV or HVM, and if so I'd like them to be retained as a union > as far as possible. I guess there will be some subset of fields which will be specific to the use of VT-d/SVM generally but not specifically to the emulation of a full PC ("HVM") or hybrid mode. I don't know what proportion that would be but it might be worth splitting along those lines, e.g. pull HW state out into its own sub-struct and have a union of the true pv-, hvm- and pvh-only fields? > The main point of the change was to shrink > the size of struct vcpu (which is required to fit into a page, > which you will need to make sure continues to be the case even > with all sorts of debugging options turned on). > > Jan >