From: Johannes Berg Subject: BUG: using smp_processor_id() in preemptible Date: Wed, 24 Jun 2009 16:15:19 +0200 Message-ID: <1245852919.21314.56.camel@johannes.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-tbhLproTcTywLKrs8gWl" To: kvm@vger.kernel.org Return-path: Received: from xc.sipsolutions.net ([83.246.72.84]:51178 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752047AbZFXOPT (ORCPT ); Wed, 24 Jun 2009 10:15:19 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1MJTFw-0004yY-DH for kvm@vger.kernel.org; Wed, 24 Jun 2009 16:15:21 +0200 Sender: kvm-owner@vger.kernel.org List-ID: --=-tbhLproTcTywLKrs8gWl Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I'm trying to run a test environment in kvm (because uml doesn't have lockdep), and am running into the following problems: 1) I get the $subject warning a lot, when starting kvm: [85763.262707] BUG: using smp_processor_id() in preemptible [00000000] code= : kvm/13877 [85763.262719] caller is kvm_write_guest_time+0x40/0x220 [kvm] [85763.262722] Pid: 13877, comm: kvm Not tainted 2.6.30-wl-26837-g0ee651a-d= irty #54 [85763.262725] Call Trace: [85763.262729] [] debug_smp_processor_id+0xf2/0x100 [85763.262741] [] kvm_write_guest_time+0x40/0x220 [kvm] [85763.262753] [] vcpu_enter_guest+0x320/0x580 [kvm] [85763.262780] [] __vcpu_run+0x74/0x2f0 [kvm] [85763.262792] [] kvm_arch_vcpu_ioctl_run+0x8f/0x200 [kv= m] [85763.262804] [] kvm_vcpu_ioctl+0x4b8/0x900 [kvm] [85763.262816] [] vfs_ioctl+0x36/0xb0 [85763.262819] [] do_vfs_ioctl+0x89/0x320 [85763.262826] [] sys_ioctl+0x4f/0x80 [85763.262830] [] system_call_fastpath+0x16/0x1b That kernel version is wireless-testing, which is currently based on v2.6.30, and the -dirty is for some wireless patches I did. 2) The second problem is that it doesn't actually work. I use this command line: kvm -kernel arch/x86_64/boot/bzImage \ -hda ../uml/Ubuntu-IntrepidIbex-amd64-root_fs \ -append "root=3D/dev/hda console=3DttyS0" -curses and the system hangs after Plex86/Bochs VGABios (PCI) current-cvs 12 Jun 2009 This VGA/VBE Bios is released under the GNU LGPL Please visit : . http://bochs.sourceforge.net . http://www.nongnu.org/vgabios cirrus-compatible VGA is detected QEMU BIOS - build: 06/12/09 $Revision: 1.182 $ $Date: 2007/08/01 17:09:51 $ Options: apmbios pcibios eltorito rombios32 ata0 master: QEMU HARDDISK ATA-7 Hard-Disk (1024 MBytes) ata1 master: QEMU DVD-ROM ATAPI-4 CD-Rom/DVD-Rom Press F12 for boot menu. Decompressing Linux... Parsing ELF... done. Booting the kernel. The guest kernel is the same as the host, but with somewhat different config options. The strange thing here is that the exact same command line, with qemu-system-x86_64 instead of kvm works perfectly. johannes --=-tbhLproTcTywLKrs8gWl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJKQjTyAAoJEODzc/N7+QmapVUP/18337xbuDQ57NRPI1MVqew+ DCZVdDmmy5HCUPXTg2s87bRUuoizWo0st5tWTtjkG3/EGqOobRv6imu1SBR+Vo4c rrhGsAxssXSyozRmQOGVK9X+WOm+8vHU9LsYg7vyP2IASlrjbewg76ClqLWTUVEk 6n742CWLRzWe7hbg5uQWEMG+KQT4S9sF0ef3c+LYklpouF7yHyNl6W8wGnIu8BvO knOdZzoSiK8x3NRtziqYsIw5T30jG5Qbr7nRQW+wAGe9YzmbPde+bD2kvaDpuR8+ q7taba2ucqsrwLhjNvR53W+fkcf/vxmnZuBzn8FB2HEJFunE1WdFoqMAQWXmIzRz kcy/bD4cLjpasPtpqLU44F4197bnHIocAs57h6KyDBAv08MjnYS8S0EqOdeVSzwq z3wripyhv92QSL+7zQy2BsAuiKb5QolSK3rhQhvVxlqgZ2KixpWfJV0fD9M/JAXD NjQL/H9N46j2JSAAqn/Ri7Rp7rQmzpuvifCdnmdltklEiiOCar8S1s96JVzVh/FW TFeanghmRK12wsnVGEbX6Wae1attDm9m/cZmA/ln4uiYYgMuKEJxnNEes8QA2AQg g8IjKmFsP3clsYUElN7+/dKpYFlVfNRsGwUUMoWtJvlm6hCwoNOVa35M1BqyX2Tk GPo2S/nHVebbuBeJXZqn =F9yb -----END PGP SIGNATURE----- --=-tbhLproTcTywLKrs8gWl--