From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [RFT] kvm with Windows optimization
Date: Thu, 25 Oct 2007 13:08:33 -0500 [thread overview]
Message-ID: <4720DBA1.7050003@codemonkey.ws> (raw)
In-Reply-To: <4720DA66.6040303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Avi Kivity wrote:
> Anthony Liguori wrote:
>> Avi Kivity wrote:
>>> This is a request for testing of an experimental kvm feature that
>>> dramatically accelerates some Windows releases (when running with
>>> the ACPI HAL, and especially with guest SMP). The feature detects
>>> accesses by the guest to the Task Priority Register (TPR) and
>>> patches them at runtime to a kvm-friendly code snipped that is
>>> provided by the BIOS.
>>>
>>> The upshot of all that is that
>>> http://kvm.qumranet.com/kvmwiki/Windows_ACPI_Workaround is no longer
>>> required, and Windows SMP no longer runs like a dog; it's quite
>>> snappy from my very limited testing.
>>>
>>> Please download the test release from
>>> http://people.qumranet.com/avi/tpr-opt-1.tar.gz and give it a spin.
>>> Once it has received some exposure, I'll merge it into mainline.
>>>
>>> Credit for the original idea is due to Ben Serebrin.
>>>
>>>
>>
>> Sweet!
>>
>> I needed the following patch to compile. Will let you know how
>> testing goes.
>>
>
> I already applied that, plus another minor fix, so I recommend
> re-downloading. Should have given it a new name.
What's the minor fix? During the second stage of installing winxp, I
just got the following BUG(). Have to reboot to check and see if this
is specific to your branch.
[68630.390361] ------------[ cut here ]------------
[68630.390367] kernel BUG at /home/anthony/tmp/b/kernel/mmu.c:308!
[68630.390370] invalid opcode: 0000 [1] SMP
[68630.390372] CPU 1
[68630.390374] Modules linked in: kvm_intel kvm nfs lockd sunrpc tun
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 snd_seq_oss joydev
iwl4965 snd_seq_midi iwlwifi_mac80211 hci_usb snd_rawmidi
snd_seq_midi_event snd_seq snd_timer bluetooth pcmcia cfg80211 usbhid
hid sdhci mmc_core snd_seq_device serio_raw parport_pc parport
yenta_socket rsrc_nonstatic pcmcia_core pcspkr psmouse snd soundcore
intel_agp shpchp pci_hotplug snd_page_alloc evdev ext3 jbd mbcache sg
sr_mod cdrom sd_mod ata_piix ohci1394 ieee1394 ata_generic libata
scsi_mod ehci_hcd uhci_hcd usbcore e1000 thermal processor fan fuse
apparmor commoncap
[68630.390435] Pid: 15055, comm: qemu-system-x86 Not tainted
2.6.22-14-generic #1
[68630.390437] RIP: 0010:[<ffffffff8837f905>] [<ffffffff8837f905>]
:kvm:mmu_memory_cache_alloc+0x25/0x30
[68630.390451] RSP: 0018:ffff810041e3b9b8 EFLAGS: 00010246
[68630.390453] RAX: 0000000000000000 RBX: ffffc2000109dea0 RCX:
ffff81003f47c080
[68630.390456] RDX: ffff81003f47c088 RSI: 0000000000000028 RDI:
ffff810042d103e0
[68630.390458] RBP: ffff81004eaf9460 R08: 0000000000000000 R09:
0000000000000004
[68630.390460] R10: 0000000003a94163 R11: 0000000000000000 R12:
ffff810042d10000
[68630.390463] R13: 0000000000000000 R14: ffff81004eaf9460 R15:
ffff810042d10000
[68630.390465] FS: 00002b08de4add40(0000) GS:ffff81000102c280(0000)
knlGS:0000000000000000
[68630.390468] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
[68630.390470] CR2: 0000000000010000 CR3: 00000000284ef000 CR4:
00000000000026e0
[68630.390473] Process qemu-system-x86 (pid: 15055, threadinfo
ffff810041e3a000, task ffff81003b9346e0)
[68630.390475] Stack: ffffc2000109dea0 ffffffff8837fa16
000000002149d043 0000000000000002
[68630.390480] 000000002149d000 ffffffff883801ad 00002b08df4e4000
0000000000003a94
[68630.390484] 0000000000000000 0000000000000000 0000000003a94000
0000000003a94000
[68630.390487] Call Trace:
[68630.390496] [<ffffffff8837fa16>] :kvm:rmap_add+0xf6/0x110
[68630.390507] [<ffffffff883801ad>]
:kvm:paging32_set_pte_common+0x10d/0x2b0
[68630.390523] [<ffffffff88380399>] :kvm:paging32_set_pte+0x49/0x50
[68630.390534] [<ffffffff883809dd>] :kvm:kvm_mmu_pte_write+0x33d/0x3b0
[68630.390553] [<ffffffff8837a6cd>]
:kvm:emulator_write_emulated_onepage+0x9d/0x100
[68630.390564] [<ffffffff88382da8>] :kvm:x86_emulate_insn+0x5e8/0x4450
[68630.390574] [<ffffffff8855f467>] :kvm_intel:vmcs_readl+0x17/0x20
[68630.390586] [<ffffffff8837acff>] :kvm:emulate_instruction+0x1af/0x2f0
[68630.390596] [<ffffffff88562090>] :kvm_intel:handle_exception+0x240/0x2b0
[68630.390603] [<ffffffff88387aa9>] :kvm:apic_update_ppr+0x29/0x60
[68630.390615] [<ffffffff8837ca74>] :kvm:kvm_vcpu_ioctl+0xe54/0x11b0
[68630.390622] [<ffffffff8026e624>] add_to_page_cache_lru+0x24/0x40
[68630.390628] [<ffffffff8028f088>] shmem_getpage+0x298/0x7e0
[68630.390652] [<ffffffff802a84f5>] core_sys_select+0x275/0x300
[68630.390670] [<ffffffff80240719>] __dequeue_signal+0x19/0x1d0
[68630.390677] [<ffffffff8023ffce>] recalc_sigpending+0xe/0x30
[68630.390680] [<ffffffff8024212c>] dequeue_signal+0x5c/0x190
[68630.390685] [<ffffffff8024f4f9>] getnstimeofday+0x39/0xa0
[68630.390692] [<ffffffff802a6e05>] do_ioctl+0x35/0xe0
[68630.390698] [<ffffffff802a6f24>] vfs_ioctl+0x74/0x2d0
[68630.390705] [<ffffffff802a7215>] sys_ioctl+0x95/0xb0
[68630.390712] [<ffffffff80209e8e>] system_call+0x7e/0x83
[68630.390723]
[68630.390724]
[68630.390725] Code: 0f 0b eb fe 0f 1f 80 00 00 00 00 48 81 c7 e0 03 00
00 be 28
[68630.390733] RIP [<ffffffff8837f905>]
:kvm:mmu_memory_cache_alloc+0x25/0x30
[68630.390742] RSP <ffff810041e3b9b8>
-------------------------------------------------------------------------
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/
next prev parent reply other threads:[~2007-10-25 18:08 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-25 17:23 [RFT] kvm with Windows optimization Avi Kivity
[not found] ` <4720D122.4070606-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 17:34 ` Haydn Solomon
[not found] ` <b75785ba0710251034q77a83b98pc784be19c842b807-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-25 17:35 ` Avi Kivity
[not found] ` <4720D3F0.8010103-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 17:39 ` Haydn Solomon
[not found] ` <b75785ba0710251039x63551396yc9d5e24df0f56ad7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-25 18:07 ` Jindrich Makovicka
2007-10-25 18:10 ` Avi Kivity
[not found] ` <4720DC12.8050303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 18:15 ` Haydn Solomon
[not found] ` <b75785ba0710251115h7ef5cbfek492a588e80349e04-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-25 18:20 ` Avi Kivity
[not found] ` <4720DE65.2030209-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 18:38 ` Anthony Liguori
[not found] ` <4720E2AF.3070404-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 18:49 ` Avi Kivity
[not found] ` <4720E53A.7040803-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 18:54 ` Anthony Liguori
[not found] ` <4720E65F.8070204-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 19:01 ` Avi Kivity
[not found] ` <4720E80E.5070506-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 19:09 ` Haydn Solomon
[not found] ` <b75785ba0710251209sdcba9cdrd2a6eb84c549581a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-25 19:09 ` Avi Kivity
2007-10-25 21:00 ` Anthony Liguori
[not found] ` <472103E8.8070605-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-26 8:16 ` Avi Kivity
[not found] ` <4721A255.5050603-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 13:52 ` Anthony Liguori
2007-10-25 23:31 ` Anthony Liguori
[not found] ` <47212748.4070001-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-26 1:14 ` Haydn Solomon
2007-10-28 16:26 ` Avi Kivity
2007-10-25 18:54 ` Fabian Deutsch
2007-10-26 10:09 ` Avi Kivity
[not found] ` <4721BCCD.4000401-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-27 18:45 ` Jindrich Makovicka
2007-10-25 17:51 ` Anthony Liguori
[not found] ` <4720D7A8.6060102-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 18:03 ` Avi Kivity
[not found] ` <4720DA66.6040303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-25 18:08 ` Anthony Liguori [this message]
[not found] ` <4720DBA1.7050003-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 18:09 ` Avi Kivity
2007-10-25 18:27 ` Anthony Liguori
[not found] ` <4720E023.8050804-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-25 18:34 ` Avi Kivity
2007-10-26 3:32 ` Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A0248295E-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-26 8:58 ` Avi Kivity
[not found] ` <4721AC51.3090108-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 9:46 ` Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A02482C0D-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-26 10:01 ` Avi Kivity
2007-10-26 13:20 ` Anthony Liguori
[not found] ` <4721E98F.3020807-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-26 13:24 ` Avi Kivity
[not found] ` <4721EAA9.1090202-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 13:35 ` Anthony Liguori
[not found] ` <4721ED0F.7080404-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-26 13:38 ` Avi Kivity
[not found] ` <4721EDED.8090204-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 13:47 ` Anthony Liguori
2007-10-26 14:08 ` Anthony Liguori
[not found] ` <4721F4DC.2010501-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-29 8:18 ` Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A024CE569-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-29 13:29 ` Anthony Liguori
[not found] ` <4725E022.6070202-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-30 4:03 ` Avi Kivity
[not found] ` <4726ACFC.5090907-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-30 5:02 ` Anthony Liguori
2007-10-26 9:47 ` Gildas
[not found] ` <b2ace7f20710260247s5b2a32cay5112a8931d57402f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-26 10:02 ` Avi Kivity
[not found] ` <4721BB45.20906-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 10:29 ` Gildas
[not found] ` <b2ace7f20710260329p1f1a8459q68c8a2274a5731c3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-10-26 10:34 ` Avi Kivity
[not found] ` <4721C2B2.7000205-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-26 12:42 ` Remove hardware from host and add to guest? Back, Michael (ext)
[not found] ` <003F437218F04842B2A6976FA19368B18B85DB-EA/R+3GEQKtclD5KMHf1bFOnKfhBOm/VrE5yTffgRl4@public.gmane.org>
2007-10-27 22:25 ` Dor Laor
2007-10-29 15:04 ` Test for the feature, RE: [RFT] kvm with Windows optimization Zhao, Yunfeng
[not found] ` <10EA09EFD8728347A513008B6B0DA77A02125FBD@pdsmsx411.ccr.corp.intel.com>
[not found] ` <10EA09EFD8728347A513008B6B0DA77A02125FBD-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-10-30 4:01 ` Test for the feature " Avi Kivity
[not found] ` <4726ACB6.6070207-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-30 4:21 ` Anthony Liguori
[not found] ` <4726B13D.2020101-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-10-30 4:27 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4720DBA1.7050003@codemonkey.ws \
--to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox