Re: [RFT] kvm with Windows optimization

Anthony Liguori
2007-10-25T18:38:39Z

Avi Kivity wrote:
> Haydn Solomon wrote:
>
>> I also had a problem installing windows xp. Got the following error
>>
>
>
> I guess I'll have to test that too.
>

I hit it again, this time about half-way through the second stage
install of Windows XP (last time it was almost immediately). This is
with your updated tree. I'll next try to reproduce with the latest git.

Regards,

Anthony Liguori

[ 1577.621100] ------------[ cut here ]------------
[ 1577.621106] kernel BUG at /home/anthony/tmp/2/tpr-opt-1/kernel/mmu.c:308!
[ 1577.621108] invalid opcode: 0000 [1] SMP
[ 1577.621111] CPU 1
[ 1577.621113] Modules linked in: tun kvm_intel kvm i915 drm af_packet
rfcomm l2cap thinkpad_acpi ppdev acpi_cpufreq cpufreq_stats
cpufreq_ondemand freq_table cpufreq_userspace cpufreq_conservative
cpufreq_powersave sbs ac battery bay dock container button video ipv6
bridge ipt_REJECT xt_state xt_tcpudp iptable_filter ipt_MASQUERADE
iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nfnetlink ip_tables
x_tables sbp2 lp arc4 ecb blkcipher snd_hda_intel snd_pcm_oss
snd_mixer_oss snd_pcm snd_seq_dummy iwl4965 iwlwifi_mac80211 snd_seq_oss
parport_pc snd_seq_midi snd_rawmidi parport cfg80211 pcmcia hci_usb
bluetooth snd_seq_midi_event snd_seq snd_timer snd_seq_device intel_agp
sdhci mmc_core serio_raw psmouse pcspkr yenta_socket rsrc_nonstatic
pcmcia_core snd soundcore shpchp pci_hotplug snd_page_alloc joydev evdev
ext3 jbd mbcache usbhid hid sg sr_mod sd_mod cdrom ata_piix ehci_hcd
ohci1394 ieee1394 ata_generic libata scsi_mod uhci_hcd usbcore e1000
thermal processor fan fuse apparmor commoncap
[ 1577.621172] Pid: 7788, comm: qemu-system-x86 Not tainted
2.6.22-14-generic #1
[ 1577.621175] RIP: 0010:[<ffffffff8837d905>] [<ffffffff8837d905>]
:kvm:mmu_memory_cache_alloc+0x25/0x30
[ 1577.621188] RSP: 0018:ffff8100441819b8 EFLAGS: 00010246
[ 1577.621190] RAX: 0000000000000000 RBX: ffffc200010c1968 RCX:
ffff81001eebc080
[ 1577.621193] RDX: ffff81001eebc088 RSI: 0000000000000028 RDI:
ffff8100388543e0
[ 1577.621195] RBP: ffff81000377f060 R08: 0000000000000000 R09:
0000000000000004
[ 1577.621197] R10: 00000000081ed163 R11: 0000000000000000 R12:
ffff810038854000
[ 1577.621200] R13: 0000000000000000 R14: ffff81000377f060 R15:
ffff810038854000
[ 1577.621202] FS: 00002b7827310d40(0000) GS:ffff81000102c280(0000)
knlGS:0000000000000000
[ 1577.621205] CS: 0010 DS: 002b ES: 002b CR0: 000000008005003b
[ 1577.621207] CR2: 0000000001002ff8 CR3: 0000000054f45000 CR4:
00000000000026e0
[ 1577.621210] Process qemu-system-x86 (pid: 7788, threadinfo
ffff810044180000, task ffff81000d4d8dc0)
[ 1577.621212] Stack: ffffc200010c1968 ffffffff8837da16
00000000441c6043 0000000000000002
[ 1577.621216] 00000000441c6000 ffffffff8837e1ad 00002b7828552000
00000000000081ed
[ 1577.621220] 0000000000000000 0000000000000000 00000000081ed000
00000000081ed000
[ 1577.621223] Call Trace:
[ 1577.621233] [<ffffffff8837da16>] :kvm:rmap_add+0xf6/0x110
[ 1577.621243] [<ffffffff8837e1ad>]
:kvm:paging32_set_pte_common+0x10d/0x2b0
[ 1577.621258] [<ffffffff8837e399>] :kvm:paging32_set_pte+0x49/0x50
[ 1577.621269] [<ffffffff8837e9dd>] :kvm:kvm_mmu_pte_write+0x33d/0x3b0
[ 1577.621287] [<ffffffff883786cd>]
:kvm:emulator_write_emulated_onepage+0x9d/0x100
[ 1577.621298] [<ffffffff88380da8>] :kvm:x86_emulate_insn+0x5e8/0x4450
[ 1577.621308] [<ffffffff88396467>] :kvm_intel:vmcs_readl+0x17/0x20
[ 1577.621320] [<ffffffff88378cff>] :kvm:emulate_instruction+0x1af/0x2f0
[ 1577.621328] [<ffffffff88399090>] :kvm_intel:handle_exception+0x240/0x2b0
[ 1577.621336] [<ffffffff88385ab9>] :kvm:apic_update_ppr+0x29/0x60
[ 1577.621347] [<ffffffff8837aa74>] :kvm:kvm_vcpu_ioctl+0xe54/0x11b0
[ 1577.621355] [<ffffffff8026e000>] file_read_actor+0x0/0x150
[ 1577.621366] [<ffffffff8022cacc>] task_rq_lock+0x4c/0x90
[ 1577.621372] [<ffffffff8022f30c>] try_to_wake_up+0x5c/0x3f0
[ 1577.621385] [<ffffffff802a84f5>] core_sys_select+0x275/0x300
[ 1577.621391] [<ffffffff8022ca03>] __wake_up+0x43/0x70
[ 1577.621402] [<ffffffff80240719>] __dequeue_signal+0x19/0x1d0
[ 1577.621409] [<ffffffff8023ffce>] recalc_sigpending+0xe/0x30
[ 1577.621412] [<ffffffff8024212c>] dequeue_signal+0x5c/0x190
[ 1577.621416] [<ffffffff8024f4f9>] getnstimeofday+0x39/0xa0
[ 1577.621423] [<ffffffff802a6e05>] do_ioctl+0x35/0xe0
[ 1577.621428] [<ffffffff802a6f24>] vfs_ioctl+0x74/0x2d0
[ 1577.621435] [<ffffffff802a7215>] sys_ioctl+0x95/0xb0
[ 1577.621442] [<ffffffff80209e8e>] system_call+0x7e/0x83
[ 1577.621452]
[ 1577.621453]
[ 1577.621454] Code: 0f 0b eb fe 0f 1f 80 00 00 00 00 48 81 c7 e0 03 00
00 be 28
[ 1577.621462] RIP [<ffffffff8837d905>]
:kvm:mmu_memory_cache_alloc+0x25/0x30
[ 1577.621471] RSP <ffff8100441819b8>