I just noticed something bad, I forgot to pass the -m argument when starting my kvm session. So I tried to load an initrd that was 100+M into the default memory size which is smaller using an etherboot image for the rtl8139 card. Obviously this is my bad but I got a kernel oopse and it froze the qemu process and wouldn't release the memory back to the system.
Could this be handled a little more cleanly? Maybe kill the qemu process and hand the memory back to the system saying that it couldn't allocate the memory or something? [ 5487.411029] Unable to handle kernel paging request at ffff810213a9ad04 RIP: [ 5487.411036] [<ffffffff88ae75b9>] :kvm:ioapic_mmio_write+0x59/0xa0 [ 5487.411052] PGD 8063 PUD 0 [ 5487.411055] Oops: 0002 [1] SMP [ 5487.411057] CPU 1 [ 5487.411058] Modules linked in: tun bitrev crc32 kvm_intel kvm nls_cp437 vfat fat udf nls_iso8859_1 ntfs nls_base ipv6 binfmt_misc snd_pcm_oss snd_mixer_oss snd_seq_midi snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_event snd_seq_midi_emul snd_seq bridge usb_storage libusual usbmouse usbkbd usbhid hid ff_memless snd_emu10k1 snd_rawmidi snd_ac97_codec ohci1394 ac97_bus snd_pcm snd_seq_device ieee1394 snd_timer snd_page_alloc snd_util_mem nvidia(P) firewire_ohci firewire_core snd_hwdep snd crc_itu_t i2c_nforce2 generic amd74xx soundcore tg3 emu10k1_gp gameport rtc i2c_core ide_core 8250_pnp 8250 serial_core serio_raw ehci_hcd ohci_hcd usbcore pcspkr shpchp pci_hotplug psmouse sr_mod cdrom sg evdev tsdev ext3 mbcache jbd ata_generic pata_amd sata_nv libata sd_mod scsi_mod dm_crypt aes sha512 sha256 dm_mod [ 5487.411097] Pid: 25075, comm: qemu-system-x86 Tainted: P 2.6.22.9 #2 [ 5487.411099] RIP: 0010:[<ffffffff88ae75b9>] [<ffffffff88ae75b9>] :kvm:ioapic_mmio_write+0x59/0xa0 [ 5487.411106] RSP: 0018:ffff8100321d9870 EFLAGS: 00010202 [ 5487.411108] RAX: 0000000037e835dd RBX: ffff810040a80000 RCX: 0000000053b9fb0f [ 5487.411110] RDX: 0000000000000001 RSI: 0000000037e835dd RDI: ffff81005467fe00 [ 5487.411112] RBP: 00000000000fec00 R08: 0000000000000004 R09: 0000000000000004 [ 5487.411114] R10: ffff810040a80000 R11: ffffffff88ad89f0 R12: 00000000fec00010 [ 5487.411116] R13: 0000000000000004 R14: ffff810040a810e8 R15: 0000000000000000 [ 5487.411118] FS: 00002ba48158ad30(0000) GS:ffff81007f968280(0000) knlGS:0000000000000000 [ 5487.411120] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 [ 5487.411122] CR2: ffff810213a9ad04 CR3: 0000000025c87000 CR4: 00000000000026e0 [ 5487.411125] Process qemu-system-x86 (pid: 25075, threadinfo ffff8100321d8000, task ffff8100168314a0) [ 5487.411126] Stack: ffffffff88ada2d2 0000000000000004 00000000fec00010 ffff810040a810b8 [ 5487.411131] ffff810040a81068 00000000fec00010 ffff810040a81110 ffffffff88af1ee0 [ 5487.411134] ffffffff88ae1638 0000000000000000 ffff810040a81110 0000000000000000 [ 5487.411137] Call Trace: [ 5487.411143] [<ffffffff88ada2d2>] :kvm:emulator_write_emulated_onepage+0xc2/0x190 [ 5487.411152] [<ffffffff88ae1638>] :kvm:x86_emulate_insn+0x618/0x4190 [ 5487.411161] [<ffffffff88af5467>] :kvm_intel:vmcs_readl+0x17/0x20 [ 5487.411169] [<ffffffff88ada0d1>] :kvm:emulate_instruction+0x1a1/0x2e0 [ 5487.411174] [<ffffffff88af83b3>] :kvm_intel:handle_exception+0x1f3/0x2c0 [ 5487.411182] [<ffffffff88ada6d2>] :kvm:kvm_vcpu_ioctl_run+0x102/0x460 [ 5487.411188] [<ffffffff88adc6c1>] :kvm:kvm_vm_ioctl+0x511/0xa70 [ 5487.411195] [<ffffffff88adafcb>] :kvm:kvm_vcpu_ioctl+0x59b/0xf40 [ 5487.411203] [<ffffffff810915e0>] fget_light+0x30/0x90 [ 5487.411208] [<ffffffff8109f0b8>] do_select+0x518/0x540 [ 5487.411215] [<ffffffff8109f6f0>] __pollwait+0x0/0x130 [ 5487.411219] [<ffffffff810272bc>] task_rq_lock+0x4c/0x90 [ 5487.411223] [<ffffffff810299ed>] try_to_wake_up+0x5d/0x4b0 [ 5487.411228] [<ffffffff81026b97>] __wake_up_common+0x47/0x70 [ 5487.411232] [<ffffffff810271f3>] __wake_up+0x43/0x70 [ 5487.411237] [<ffffffff8118f3f1>] sock_def_readable+0x61/0x70 [ 5487.411241] [<ffffffff81201cb4>] unix_stream_sendmsg+0x1c4/0x390 [ 5487.411244] [<ffffffff8111c8ad>] copy_user_generic_string+0xd/0x40 [ 5487.411252] [<ffffffff8118a031>] sock_aio_write+0x171/0x180 [ 5487.411260] [<ffffffff810ef20a>] avc_has_perm+0x5a/0x80 [ 5487.411266] [<ffffffff810f027b>] inode_has_perm+0x5b/0xa0 [ 5487.411268] [<ffffffff81039dc9>] __dequeue_signal+0x19/0x1d0 [ 5487.411272] [<ffffffff8103962e>] recalc_sigpending+0xe/0x30 [ 5487.411274] [<ffffffff8103b78c>] dequeue_signal+0x5c/0x190 [ 5487.411279] [<ffffffff8109dc95>] do_ioctl+0x35/0xe0 [ 5487.411282] [<ffffffff8109ddb4>] vfs_ioctl+0x74/0x2d0 [ 5487.411286] [<ffffffff8109e0a5>] sys_ioctl+0x95/0xb0 [ 5487.411290] [<ffffffff8100a0fe>] system_call+0x7e/0x83 [ 5487.411295] [ 5487.411296] [ 5487.411296] Code: 89 4c c7 1c b8 01 00 00 00 89 f1 d3 e0 85 47 10 74 c3 e9 b0 [ 5487.411303] RIP [<ffffffff88ae75b9>] :kvm:ioapic_mmio_write+0x59/0xa0 [ 5487.411310] RSP <ffff8100321d9870> [ 5487.411312] CR2: ffff810213a9ad04 [ 5487.421581] br0: port 2(tap0) entering disabled state [ 5487.427775] br0: port 2(tap0) entering disabled state This is using kvm 45 and linux kernel 2.6.22.9. Thanks, - David Brown ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel