From: Ian Campbell Subject: Re: [RFC] Virtual disk configuration, PV vs. emulated, backward compatibility etc Date: Wed, 28 Jul 2010 10:45:51 +0100 Message-ID: <1280310351.24292.2.camel@zakaz.uk.xensource.com> References: <1280246290.5872.8932.camel@zakaz.uk.xensource.com> <20100727204126.GR17817@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100727204126.GR17817@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Pasi =?ISO-8859-1?Q?K=E4rkk=E4inen?= Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2010-07-27 at 21:41 +0100, Pasi K=C3=A4rkk=C3=A4inen wrote: > > Backward compatible disk configuration > > -------------------------------------- > >=20 > > Given the above configuration options several short hands are > defined > > for backwards compatibility with existing configuration files and > > guests. > >=20 > > These will be implemented by a straight textual substitution before > > parsing the configuration. > >=20 > > hda =3D> d0p0,pv=3Dtrue,emul=3Dide0.0,_vdevice=3D3:0 > > hdb =3D> d1p0,pv=3Dtrue,emul=3Dide0.1,_vdevice=3D3:64 > > hdc =3D> d2p0,pv=3Dtrue,emul=3Dide1.0,_vdevice=3D22:0 > > hdd =3D> d3p0,pv=3Dtrue,emul=3Dide1.1,_vdevice=3D22:64 > >=20 > > xvda =3D> d0p0,pv=3Dtrue,emul=3D_ide0.0,_vdevice=3D202:0 > > xvdb =3D> d1p0,pv=3Dtrue,emul=3D_ide0.1,_vdevice=3D202:16 > > xvdc =3D> d2p0,pv=3Dtrue,emul=3D_ide1.0,_vdevice=3D202:32 > > xvdd =3D> d3p0,pv=3Dtrue,emul=3D_ide1.1,_vdevice=3D202:64 > > xvde =3D> d4p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D202:80 > > ... > > xvdo =3D> d15p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D202:240 > > xvdp =3D> d16p0,pv=3Dtrue,emul=3Dnone > > ... > > xvdz =3D> d25,pv=3Dtrue,emul=3Dnone > > =20 > > xvda[1..15] =3D> > > d0p[1..15],pv=3Dtrue,emul=3D_ide0.0,_vdevice=3D202:[0..15] > > xvdb[1..15] =3D> etc > >=20 > > Note that all the above are Linux (guest) specific. > >=20 > > The sd* syntax is not covered. It's unclear if this is used in the=20 > > wild or what the existing semantics of emul=3D are for SCSI devices. > > If someone cares to investigate the existing behaviour then it can=20 > > be added. > > >=20 > sd* devices are still often used for Xen PV domUs.. > (yeah, people should use xvd*, but many people still have sd*).=20 Thanks. We can therefore add to the shorthands (emul=3Dnone unless anyone knows better): sda =3D> d0p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D8:0 sdb =3D> d1p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D8:16 sdc =3D> d2p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D8:32 sdd =3D> d3p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D8:48 ... sdp =3D> d15p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D8:240 sdq =3D> d16p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D65:0 sdr =3D> d17p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D65:16 ... etc through: ... ... major 65 (sdq ->sdaf) ... ... major 66 (sdag->sdav) ... ... major 67 (sdaw->sdbl) ... ... major 68 (sdbm->sdcr) ... ... major 69 (sdcc->sdcr) ... ... major 70 (sdcs->sddh) ... ... major 71 (sddi->sddx) sddx =3D> d127p0,pv=3Dtrue,emul=3Dnone,_vdevice=3D71:240 (perhaps supporting all these is overkill ;-)) Ian.=20