From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgDGq-0002E7-7P for qemu-devel@nongnu.org; Sun, 17 Jun 2012 07:03:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SgDGo-0000Ur-8O for qemu-devel@nongnu.org; Sun, 17 Jun 2012 07:03:51 -0400 Received: from mout.web.de ([212.227.17.12]:52351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SgDGn-0000Qe-VQ for qemu-devel@nongnu.org; Sun, 17 Jun 2012 07:03:50 -0400 Message-ID: <4FDDB981.8070309@web.de> Date: Sun, 17 Jun 2012 13:03:29 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <1339922831-23002-1-git-send-email-avi@redhat.com> In-Reply-To: <1339922831-23002-1-git-send-email-avi@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8404C01377B6CD106D64AD75" Subject: Re: [Qemu-devel] [PATCH] kvm: align ram_size to page boundary List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Marcelo Tosatti , Michael Tokarev , qemu-devel@nongnu.org, kvm@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8404C01377B6CD106D64AD75 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 2012-06-17 10:47, Avi Kivity wrote: > kvm is not able to execute out of partial pages; align the RAM size > so partial pages aren't present. >=20 > Reported-by: Michael Tokarev > Signed-off-by: Avi Kivity > --- > kvm-all.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/kvm-all.c b/kvm-all.c > index 4ea7d85..482768f 100644 > --- a/kvm-all.c > +++ b/kvm-all.c > @@ -1311,6 +1311,8 @@ int kvm_init(void) > =20 > cpu_interrupt_handler =3D kvm_handle_interrupt; > =20 > + ram_size =3D TARGET_PAGE_ALIGN(ram_size); > + > return 0; > =20 > err: I think this should rather go into generic code. What sense does it make to have partial pages with TCG? Jan --------------enig8404C01377B6CD106D64AD75 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/duYcACgkQitSsb3rl5xS8GwCePKbBiM4QnpTkw/PbixAI55/f wD0AniQomX9RxDdvzid8SxL/s4vxXCrs =Y4eP -----END PGP SIGNATURE----- --------------enig8404C01377B6CD106D64AD75--