From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= Subject: Re: pvgrub2 is merged Date: Thu, 14 Nov 2013 18:32:08 +0100 Message-ID: <52850918.1040406__26885.1965120577$1384450463$gmane$org@gmail.com> References: <527EA084.6000706@gmail.com> <20131110084753.540b0107@opensuse.site> <5283DD8F.5080103@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7129235189332715076==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: M A Young Cc: The development of GNU GRUB , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============7129235189332715076== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2OOCSQLEGTXOQPJCMLIRB" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2OOCSQLEGTXOQPJCMLIRB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 14.11.2013 18:03, M A Young wrote: >=20 >=20 > On Thu, 14 Nov 2013, M A Young wrote: >=20 >> On Wed, 13 Nov 2013, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote:= >> >>> On 13.11.2013 20:06, M A Young wrote: >>>> It doesn't seem to understand sub-partitions. I can get it to work i= f >>>> the boot files are in /dev/xvda but not in /dev/xvda1 . >>>> >>> insmod part_msdos >>> insmod part_gpt >> >> Right, if I add those to the embedded grub.cfg file I get to the >> standard grub menu and the boot starts. However the boot doesn't get >> very far - it loads the kernel and the initrd file and starts the >> kernel but the kernel doesn't see the virtual disks so it doesn't get >> very far. >=20 > Using xenstore-ls from the dom0 on the guest when the boot stops the > local/domain/2/device/vbd/51712 section looks like > backend =3D "/local/domain/0/backend/vbd/2/51712" > backend-id =3D "0" > state =3D "6\000" > virtual-device =3D "51712" > device-type =3D "disk" > ring-ref =3D "\000" > event-channel =3D "\000" > protocol =3D "x86_64-abi\000" >=20 > As nothing else has null character endings I suspend that is wrong. >=20 Good catch. Could you test following: diff --git a/grub-core/kern/xen/init.c b/grub-core/kern/xen/init.c index 3bfd99f..ab74543 100644 --- a/grub-core/kern/xen/init.c +++ b/grub-core/kern/xen/init.c @@ -256,11 +256,10 @@ grub_xenstore_write_file (const char *dir, const vo= id *buf, grub_size_t len) =20 grub_memset (&msg, 0, sizeof (msg)); msg.type =3D XS_WRITE; - msg.len =3D dirlen + len + 1; + msg.len =3D dirlen + len; grub_xen_store_send (&msg, sizeof (msg)); grub_xen_store_send (dir, dirlen); grub_xen_store_send (buf, len); - grub_xen_store_send ("", 1); grub_xen_store_recv (&msg, sizeof (msg)); resp =3D grub_malloc (msg.len + 1); if (!resp) > Michael Young ------enig2OOCSQLEGTXOQPJCMLIRB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlKFCScACgkQmBXlbbo5nOuNUQEAkhgDKVYnSdhIJGcXhu6fq6tK sU6dxr9ytLJDBwM/+vYA+gKD+n67g33oiT3sjjLuQ1Sm1OXGkj6DHf+ofmAYAZSm =fD36 -----END PGP SIGNATURE----- ------enig2OOCSQLEGTXOQPJCMLIRB-- --===============7129235189332715076== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============7129235189332715076==--