From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= Subject: Re: [PATCH v2 1/2] libxl: use xen-blkback for 'vbd' disk types by default Date: Tue, 1 Aug 2017 14:02:15 +0200 Message-ID: <20170801120215.GW1095@mail-itl> References: <1501260134-11837-1-git-send-email-marmarek@invisiblethingslab.com> <20170731155604.swaso75zbtx4t43g@citrix.com> <20170731160108.bhrcjfzdjvv6kdhf@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5196563736658500837==" Return-path: In-Reply-To: <20170731160108.bhrcjfzdjvv6kdhf@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Wei Liu Cc: Ian Jackson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============5196563736658500837== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="x6WbTf3mk6CN6FA8" Content-Disposition: inline --x6WbTf3mk6CN6FA8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 31, 2017 at 05:01:08PM +0100, Wei Liu wrote: > On Mon, Jul 31, 2017 at 04:56:04PM +0100, Wei Liu wrote: > > On Fri, Jul 28, 2017 at 06:42:13PM +0200, Marek Marczykowski-G=C3=B3rec= ki wrote: > > > This will allow later to make HVM domain without qemu in dom0 (in > > > addition to the one in stubdomain). > > >=20 > > > Signed-off-by: Marek Marczykowski-G=C3=B3recki > > >=20 > > > --- > > > This is extracted from v1 of "libxl: do not start dom0 qemu for > > > stubdomain when not needed". > > >=20 > > > Signed-off-by: Marek Marczykowski-G=C3=B3recki > > > --- > > > tools/libxl/libxl_disk.c | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > >=20 > > > diff --git a/tools/libxl/libxl_disk.c b/tools/libxl/libxl_disk.c > > > index 63de75c..7842d9b 100644 > > > --- a/tools/libxl/libxl_disk.c > > > +++ b/tools/libxl/libxl_disk.c > > > @@ -56,10 +56,12 @@ static void disk_eject_xswatch_callback(libxl__eg= c *egc, libxl__ev_xswatch *w, > > > "/local/domain/%d/backend/%" TOSTRING(BACKEND_STRING_SIZ= E) > > > "[a-z]/%*d/%*d", > > > &disk->backend_domid, backend_type); > > > - if (!strcmp(backend_type, "tap") || !strcmp(backend_type, "vbd")= ) { > > > + if (!strcmp(backend_type, "tap")) { > > > disk->backend =3D LIBXL_DISK_BACKEND_TAP; > > > } else if (!strcmp(backend_type, "qdisk")) { > > > disk->backend =3D LIBXL_DISK_BACKEND_QDISK; > > > + } else if (!strcmp(backend_type, "vbd")) { > > > + disk->backend =3D LIBXL_DISK_BACKEND_PHY; > >=20 > > Wait, it only occurred to me until now this patch is changing > > disk_eject_xswatch_callback. > >=20 > > Is this a bug fix? How is it possible for the backend_type to be "vbd" > > when there isn't such thing in libxl_types.idl? >=20 > Oh, I'm an idiot. That's read from xenstore path. I think this patch is > correct. But I still tend to think this is a bug fix. How do you > discover this problem? Has disk eject ever worked for you? Hmm, I think I've failed with forward-porting this patch. In current Xen it isn't possible to create cdrom with backend_type!=3Dqdisk... So, this patch alone isn't sufficient. Please ignore it. --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --x6WbTf3mk6CN6FA8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJZgG3HAAoJENuP0xzK19csWPEH/07VA35Cx32ESdYqMhbZdW/2 mo1VgKDi8Id/61opakaziYGTfxx/8QOprnRqK96ZTTEVsOagSs31okngmzQ2YyQx EzwYsl+2h9Csmo7TbhgpjdNEROCGXMzignYunMW+s2EnXwXoVl2BDBNk3I29ETrw +gUPm+UgijWLZvLFq39uGgBbUzVMa4ld4UJixAsoAPR5zZgSJe8xEltOC5gbhDnG m9/TofF8b6KSf6PntpBDRek0YoYi5KK5TDjEVI+kJYl8Yq8NTLNXJCYcY7qXDIxO iQnFzp7TU4uLFb2/ZnLHZ/0bA6KDS6emg/OHYYFZ4oXrWne/6+WNuE8DoYqFoYs= =qg2T -----END PGP SIGNATURE----- --x6WbTf3mk6CN6FA8-- --===============5196563736658500837== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============5196563736658500837==--