From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Xen 4.x / Linux 3.x (dom0 and HVM domU) and NIC handling Date: Fri, 2 Dec 2011 23:49:53 +0200 Message-ID: <20111202214953.GM12984@reaktio.net> References: <4ED798B2.1040309@canonical.com> <20111201180944.GH12984@reaktio.net> <4ED8A45A.3050403@canonical.com> <20111202104110.GL12984@reaktio.net> <1322844048.29870.155.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1322844048.29870.155.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" , Stefan Bader , Alex Bligh , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, Dec 02, 2011 at 04:40:48PM +0000, Ian Campbell wrote: > On Fri, 2011-12-02 at 16:36 +0000, Alex Bligh wrote: > > = > > --On 2 December 2011 12:41:10 +0200 Pasi K=E4rkk=E4inen = wrote: > > = > > >> And then, ok this is probably a quite naive approach, it seemed to m= ake > > >> sense to go through the pain of always having potentially both > > >> interfaces available (emulated and pv) so in theory the same guest > > >> config can accommodate a guest os supporting one or the other (or ea= sily > > >> switch from one to the other). Otherwise I would expect an emulated > > >> device only when I have hd? in the config and a pv device when I wri= te > > >> xvd?. > > >> > > > > > > This works for both HVM and PVHVM (also mentioned on the wiki page): > > > vif =3D [ 'mac=3D00:16:5e:02:07:45, bridge=3Dxenbr0, model=3De1000' ] > > > > > > So there's no need for "type=3Dioemu" option with xm/xend. > > > > > > You can switch between HVM and PVHVM with: > > > xen_platform_pci=3D0|1 > > = > > AFAIK changing xen_platform_pci=3D0|1 will switch rather more than just > > the NIC. It will switch your disk too, instantly causing your previously > > happily booting OS to fail to boot as the root device name changes. > = > We recommend you use "root=3DLABEL=3Dfoo" rather than "root=3D/dev/blah" = for > this reason. Fortunately most distros use that scheme by default these > days. > = Yep, for example Fedora works out-of-the-box with both HVM and PVHVM.. -- Pasi