From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= Subject: Re: PVH hypercall interface Date: Mon, 8 Aug 2016 14:13:20 +0200 Message-ID: <20160808121319.GO32095@mail-itl> References: <20160808102140.GF24847@mail-itl> <76bd8c8a-a062-1ee2-c215-7d30ee0f5671@citrix.com> <20160808111943.3rzizfhnh4mmhqau@mac> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6241113395732034306==" Return-path: In-Reply-To: <20160808111943.3rzizfhnh4mmhqau@mac> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Roger Pau Monne Cc: Andrew Cooper , Joanna Rutkowska , xen-devel List-Id: xen-devel@lists.xenproject.org --===============6241113395732034306== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Aqxj+GViP82BhQLt" Content-Disposition: inline --Aqxj+GViP82BhQLt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 08, 2016 at 01:19:43PM +0200, Roger Pau Monne wrote: > On Mon, Aug 08, 2016 at 11:42:03AM +0100, Andrew Cooper wrote: > > On 08/08/16 11:21, Marek Marczykowski-G=C3=B3recki wrote: > > > Hi, > > > > > > What hypercalls are available for PVH guests? > >=20 > > First of all, be aware that there is currently some chaos in the > > codebase which is soon to be resolved. > >=20 > > What you are looking for is HVMLite, which will likely be renamed to PVH > > once it is complete. Original PVH will then be filed in /dev/null, > > leaving only a set of lessons in git history. > >=20 > > > How is it different for HVM guests? > >=20 > > HVMLite guests are just HVM guests without qemu. > >=20 > > Roger (CC'd) is leading the effort. You select an HVMLite guest by > > choosing device-model =3D None in the xl configuration file, rather than > > setting pvh=3D1 > >=20 > > > Is it documented somewhere? > >=20 > > There are patches on the list. > >=20 > > Also, docs/misc/hvmlite.markdown > >=20 > > > For example I'd expect that do_mmu_update is available only for PV > > > guests, but looking at the code I can't find anything preventing other > > > guest types from using it (no, some obscure conditions deep in execut= ion > > > path doesn't count). > >=20 > > HVM guests use the hvm_hypercall_table, not the hypercall tables in ent= ry.S >=20 > They have access to the same set of hypercalls as HVM guests, in fact the= =20 > hypercall table is shared between HVM and HVMlite guests (to become PVH,= =20 > just using HVMlite here to avoid confusion). Classic PVH guests had their= =20 > own hypercall table, but as Andrew said you should not look at those. Thanks for the explanation. What is the current state of HVMlite? I see "none" is valid value for "device_model_version" already, but if I try to start such guest, it fails at x86_compat call (tries to boot it as PV guest). I guess it's because of missing kernel support. Is "[PATCH v2 00/11] HVMlite domU support" sent in Feb the latest version available? When it is planned to have it in vanilla kernel? --=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? --Aqxj+GViP82BhQLt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXqHdhAAoJENuP0xzK19cstgIH+wWtIVXupNtzssDK5whQWEHA NOX7ziGca6nc10kAKzKH+FU9ygKJjXuUyvYA0sS07lSNrRNm4iWRpv0oeiz3ugcV 4fSrl8yUzKgKjaROXrwpYn+9Wjtlwnefpztt8Yt38UzXnkbHWVWc3yX9r/gMVuhN WbSmcPNlOaRPKAkCgTx7t0dkcbdX7HD0DFHezUjKmuf5LNo+x31HmASFBDLjcGXU HnC2xLIA/jADChN8uxa5BOy4xra8++82jyHEkj+/q49MivsUhl4Hp//zpo83GnrE ajFC8LFdL8hVQggjFkQ/o/ad6wVxOd7AHh5PJw8q/ONTCgczHEXjibZJbIHOOMA= =ktXN -----END PGP SIGNATURE----- --Aqxj+GViP82BhQLt-- --===============6241113395732034306== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============6241113395732034306==--