From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bareiro Subject: Re: Doubt on KVM-88 vulnerabilities Date: Mon, 14 Dec 2009 22:56:29 -0300 Message-ID: <20091215015629.GD7639@defiant.freesoftware> References: <20091108184240.GA29279@defiant.freesoftware> <4AF93AB8.3040504@redhat.com> <20091214110832.GA2977@defiant.freesoftware> <20091214173607.GA7639@defiant.freesoftware> <4B268651.70007@redhat.com> <20091214210757.GB7639@defiant.freesoftware> Reply-To: dbareiro@gmx.net Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JwB53PgKC5A7+0Ej" To: KVM General Return-path: Received: from mail.gmx.net ([213.165.64.20]:60821 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757119AbZLOB4f (ORCPT ); Mon, 14 Dec 2009 20:56:35 -0500 Received: from defiant (defiant.freesoftware [10.1.0.65]) by hermes.freesoftware (Postfix) with ESMTP id 173819B6 for ; Mon, 14 Dec 2009 22:57:55 -0300 (ART) Content-Disposition: inline In-Reply-To: <20091214210757.GB7639@defiant.freesoftware> Sender: kvm-owner@vger.kernel.org List-ID: --JwB53PgKC5A7+0Ej Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Avi and Chris. On Monday, 14 December 2009 18:07:57 -0300, Daniel Bareiro wrote: > >> According to I found looking for in Internet, qemu-kvm does not > >> include the kernel modules but only the userspace and it is > >> considered to be stable. I've downloaded qemu-kvm-0.11.0 and I > >> build it with 'make' and 'make install' like did with kvm-nn but it > >> seems that KSM is not working: =20 > > The qemu-kvm-0.11 series does not support ksm. Try the 0.12 series. =20 > Ah! I see you upload it today :-) >=20 > After a ./configure, I'm obtaining the following error when doing make: >=20 >=20 > root@ubuntu:~/qemu-kvm-0.12.0-rc2# make > GEN config-host.h > CC qemu-nbd.o > CC qemu-tool.o > CC cutils.o > CC cache-utils.o > CC qemu-malloc.o > CC qemu-option.o > CC module.o > CC nbd.o > CC block.o > CC aio.o > CC aes.o > CC osdep.o > CC posix-aio-compat.o > CC compatfd.o > compatfd.c: In function =E2=80=98qemu_eventfd=E2=80=99: > compatfd.c:137: error: =E2=80=98ret=E2=80=99 undeclared (first use in thi= s function) > compatfd.c:137: error: (Each undeclared identifier is reported only once > compatfd.c:137: error: for each function it appears in.) > make: *** [compatfd.o] Error 1 I confirm that applying the patch sent by Chris Wright, no longer I have this problem. Thanks, Chris! Even so, KSM seems not to be working: root@ubuntu:~# cat /sys/kernel/mm/ksm/max_kernel_pages 253738 root@ubuntu:~# cat /sys/kernel/mm/ksm/run 1 root@ubuntu:~# cat /sys/kernel/mm/ksm/pages_sharing 0 root@ubuntu:~# cat /sys/kernel/mm/ksm/pages_shared 0 Is it possible that, as I've mentioned in another message of this thread, the version of glibc of Ubuntu Hardy Heron doesn't have support for KSM? Regards, Daniel --=20 Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Lenny - Linux user #188.598 --JwB53PgKC5A7+0Ej Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksm7M0ACgkQZpa/GxTmHTfoYQCeMgAnZ3nR8fHGtDJAwBClpbJz 8GYAoIBzR8UYOizS9Wd04j71IA1TH//A =/wF7 -----END PGP SIGNATURE----- --JwB53PgKC5A7+0Ej--