From: Ian Campbell Subject: Re: [PATCH 11/13] libxl: set nic type to VIF by default Date: Tue, 29 May 2012 15:46:57 +0100 Message-ID: <1338302817.14158.120.camel@zakaz.uk.xensource.com> References: <1337184716-49276-1-git-send-email-roger.pau@citrix.com> <1337184716-49276-12-git-send-email-roger.pau@citrix.com> <20406.31676.266501.253510@mariner.uk.xensource.com> <4FBA6D52.9050809@citrix.com> <20420.57290.841831.831419@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20420.57290.841831.831419@mariner.uk.xensource.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: Ian Jackson Cc: "xen-devel@lists.xen.org" , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Tue, 2012-05-29 at 15:40 +0100, Ian Jackson wrote: > Roger Pau Monne writes ("Re: [PATCH 11/13] libxl: set nic type to VIF by default"): > > Ian Jackson wrote: > > > Roger Pau Monne writes ("[PATCH 11/13] libxl: set nic type to VIF by default"): > > >> - nic->nictype = LIBXL_NIC_TYPE_IOEMU; > > >> + nic->nictype = LIBXL_NIC_TYPE_VIF; > > > > > > But doesn't this set the default type to VIF even for HVM guests ? > > > > Shouldn't HVM guests use the "ioemu" parameter if they want an emulated > > card? If no parameter is provided then the default type should be VIF, > > because there's no other way to specifically set the type to VIF. > > Sorry. I seem to have failed to reply to this. > > I'm a bit confused about all this, I confess. What does xend do ? > > ATM it seems that this change would mean that a guest config file > specified in the most obvious way wouldn't get an emulated nic at > all. That can't be right, can it ? It's confusingly named. IOEMU -> emulated only on HVM, meaningless on PV. VIF -> both emulated and PV (on HVM) or just PV (on PV) So a default of "VIF" is what you normally want. Ian.