[kvm-devel] [PATCH] vmx: fix exit qualification width on i386

2007-09-12 Thread He, Qing
According to Intel Software Developer's Manual, Vol. 3B, Appendix H.4.2, exit qualification should be of natural width. However, current code uses u64 as the data type for this register, which occasionally introduces invalid value to VMExit handling logics. This patch fixes this bug.

Re: [kvm-devel] [PATCH] (big) real mode emulation - push imm8

2007-09-12 Thread Avi Kivity
Nitin A Kamble wrote: Hi Avi, Attached is the patch to implement the push imm8 instruction opcode 0x6a. Please apply or comment. The patches look good, but I am holding on right now because of the emulator split. If that is not merged in the next couple of days, I will merge your

Re: [kvm-devel] kvm: Unknown symbol genapic

2007-09-12 Thread Avi Kivity
Dong, Eddie wrote: Made a wrong copy from old i386. the mask should be 0xff and clear in debug message too. reattached. GET_APIC_ID may use genapic instance for some machine configuration in i386 architecture, but it is not exported for outside usage. This patch remove this reference.

Re: [kvm-devel] Build of kvm-37 fails

2007-09-12 Thread Avi Kivity
Dong, Eddie wrote: This issue is fixed by Qing's patch to hrtimer migration yesterday, but it is not in yet given that the comments is not properly in. If you mean b25a47c1: KVM: fix apic timer migration when inactive, that's in now. -- error compiling committee.c: too many arguments to

Re: [kvm-devel] kvm-37 confusion

2007-09-12 Thread Avi Kivity
Gildas wrote: Hi all, It seems there was a lot of regressions on kvm-37. I've tried to follow the different patches and problem but the situation is full of confusion it seems. Sure, the lapic merge is large and complex. Some confusion is to be expected. Perhaps there is the need for

Re: [kvm-devel] [PATCH] vmx: fix exit qualification width on i386

2007-09-12 Thread Avi Kivity
He, Qing wrote: According to Intel Software Developer's Manual, Vol. 3B, Appendix H.4.2, exit qualification should be of natural width. However, current code uses u64 as the data type for this register, which occasionally introduces invalid value to VMExit handling logics. This patch fixes

Re: [kvm-devel] [PATCH] (big) real mode emulation - push imm8

2007-09-12 Thread Laurent Vivier
Avi Kivity wrote: Nitin A Kamble wrote: Hi Avi, Attached is the patch to implement the push imm8 instruction opcode 0x6a. Please apply or comment. The patches look good, but I am holding on right now because of the emulator split. If that is not merged in the next couple of

Re: [kvm-devel] [PATCH] (big) real mode emulation - push imm8

2007-09-12 Thread Avi Kivity
Laurent Vivier wrote: Avi Kivity wrote: Nitin A Kamble wrote: Hi Avi, Attached is the patch to implement the push imm8 instruction opcode 0x6a. Please apply or comment. The patches look good, but I am holding on right now because of the emulator split. If that

Re: [kvm-devel] kvm-37 problem w/ 64-bit division in lapic.c

2007-09-12 Thread Avi Kivity
Jindrich Makovicka wrote: On Mon, 10 Sep 2007 11:49:02 +0200 Jindrich Makovicka [EMAIL PROTECTED] wrote: On 9/10/07, Dong, Eddie [EMAIL PROTECTED] wrote: div64_32 is enough, does this function exist? afaik, __div64_32 is architecture specific, but do_div() could be

[kvm-devel] [ANNOUNCE] kvm-38 release

2007-09-12 Thread Avi Kivity
We're still recovering from the lapic merge; in addition many patches that were held up waiting for lapic have been merged. Changes since kvm-37: - fix fpu indication for Solaris (Amit Shah) - Avoid GFP_NOWAIT allocation in mmu - Fix runtime smp_processor_id() warning in lapic - Move vcpu loop

Re: [kvm-devel] QEMU vs KVM

2007-09-12 Thread Avi Kivity
[EMAIL PROTECTED] wrote: Hello All, I am a bit unclear about the differences between QEMU and KVM. If I understand correctly, QEMU can run in a mode on an x86 where it executes user space code directly on the cpu without emulation. This seems to be very similar to what KVM is doing with

Re: [kvm-devel] [ANNOUNCE] kvm-38 release

2007-09-12 Thread Pelle
Hi, What kernel is required to run this version? I get the message kvm: unknown symbol div64_64 when inserting this module in my ubuntu feisty 2.6.20-16-generic kernel. A quick google led me to believe this is only recently included in the kernel. regards, Pelle Avi Kivity wrote: We're still

Re: [kvm-devel] [ANNOUNCE] kvm-38 release

2007-09-12 Thread Avi Kivity
Pelle wrote: Hi, What kernel is required to run this version? I get the message kvm: unknown symbol div64_64 when inserting this module in my ubuntu feisty 2.6.20-16-generic kernel. A quick google led me to believe this is only recently included in the kernel. Looks like it's

[kvm-devel] [ kvm-Bugs-1792999 ] high cpu usage of 32bit windows xp/2003

2007-09-12 Thread SourceForge.net
Bugs item #1792999, was opened at 2007-09-12 17:23 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1792999group_id=180599 Please note that this message will contain a full copy of

Re: [kvm-devel] [ANNOUNCE] kvm-38 release

2007-09-12 Thread Avi Kivity
Pelle wrote: Hi, What kernel is required to run this version? I get the message kvm: unknown symbol div64_64 when inserting this module in my ubuntu feisty 2.6.20-16-generic kernel. A quick google led me to believe this is only recently included in the kernel. Please try the attached

Re: [kvm-devel] kvm: Unknown symbol genapic

2007-09-12 Thread Zhao, Yunfeng
Yes, I tested the patch. It works well. -Original Message- From: Avi Kivity [mailto:[EMAIL PROTECTED] Sent: 2007年9月12日 17:36 To: Zhao, Yunfeng Cc: kvm-devel@lists.sourceforge.net Subject: Re: [kvm-devel] kvm: Unknown symbol genapic Zhao, Yunfeng wrote: It's on x86_64. This ought to

Re: [kvm-devel] QEMU vs KVM

2007-09-12 Thread gerryw
Hi, Thanks! Sorry. Yes. I meant kqemu. Okay.. so would it be correct to say that kqemu formed the initial base of what is now kvm/kvm_intel/kvm_amd and that the mods to qemu are necessary for interfacing to the kernel drivers and possibly some paravirtualized drivers for enhanced I/O

Re: [kvm-devel] QEMU vs KVM

2007-09-12 Thread Avi Kivity
[EMAIL PROTECTED] wrote: Hi, Thanks! Sorry. Yes. I meant kqemu. Okay.. so would it be correct to say that kqemu formed the initial base of what is now kvm/kvm_intel/kvm_amd No. and that the mods to qemu are necessary for interfacing to the kernel drivers and possibly some

Re: [kvm-devel] [ANNOUNCE] kvm-38 release

2007-09-12 Thread Avi Kivity
Dong, Eddie wrote: [EMAIL PROTECTED] wrote: Pelle wrote: Hi, What kernel is required to run this version? I get the message kvm: unknown symbol div64_64 when inserting this module in my ubuntu feisty 2.6.20-16-generic kernel. A quick google led me to believe this is only

[kvm-devel] KVM Test result , kvm.git e91a389683e, kvm-userspace.git: ac427f90

2007-09-12 Thread Zhao, Yunfeng
Hi, We run some tests against latest kvm.git and kvm-userspace.git. For 32bit host, we applied Eddie's patch to fix kvm: Unknown symbol genapic error, and Qing's patch to fix exit qualification issue. In the testing, we found following issues have been fixed: 1. Blue screen issue of Vista guest.

Re: [kvm-devel] kvm-37 problem w/ 64-bit division in lapic.c

2007-09-12 Thread Avi Kivity
Dong, Eddie wrote: [EMAIL PROTECTED] wrote: Jindrich Makovicka wrote: On Mon, 10 Sep 2007 11:49:02 +0200 Jindrich Makovicka [EMAIL PROTECTED] wrote: On 9/10/07, Dong, Eddie [EMAIL PROTECTED] wrote: div64_32 is enough, does this function exist?

Re: [kvm-devel] KVM Test result , kvm.git e91a389683e, kvm-userspace.git: ac427f90

2007-09-12 Thread Avi Kivity
Zhao, Yunfeng wrote: But we still find 3 new issues: 1. guest timer 2 times faster than network timer https://sourceforge.net/tracker/index.php?func=detailaid=1791444group_ id=180599atid=893831 Does this happen with -no-kvm-irqchip? Eddie, the is very likely the lapic. Can you take a

[kvm-devel] current git master external module crashes my server

2007-09-12 Thread Sebastian Faerber
Hello, i just tried the current git master branch (last commit is 0fe149eb04e5e67f4d3ebc2ab9f2426356a308ba) as an external module with 2.6.23-rc3. My Host ist 32bit, running 2.6.23-rc3 equippped with Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz I start my Fedora Core 6 Image with --

[kvm-devel] [PATCH] Prevent setting CPU_BASED_TPR_SHADOW on i386 host

2007-09-12 Thread Yang, Sheng
Though tpr shadow feature can be used on i386 host, but it needs support from virtual apic access feature which hasn't been implemented yet, otherwise it will cause trouble on i386 machine which supports this feature. This patch disables tpr shadow feature for i386 host now. Signed-off-by: Sheng

Re: [kvm-devel] current git master external module crashes my server

2007-09-12 Thread Avi Kivity
Sebastian Faerber wrote: Hello, i just tried the current git master branch (last commit is 0fe149eb04e5e67f4d3ebc2ab9f2426356a308ba) as an external module with 2.6.23-rc3. My Host ist 32bit, running 2.6.23-rc3 equippped with Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz I start my

Re: [kvm-devel] [PATCH] Prevent setting CPU_BASED_TPR_SHADOW on i386 host

2007-09-12 Thread Avi Kivity
Yang, Sheng wrote: Though tpr shadow feature can be used on i386 host, but it needs support from virtual apic access feature which hasn't been implemented yet, otherwise it will cause trouble on i386 machine which supports this feature. This patch disables tpr shadow feature for i386 host

[kvm-devel] KVM behaves weird on AMD64

2007-09-12 Thread Miguel Araujo
Hello all, I have recently compiled kvm-36 in my Ubuntu Desktop 7.04 64 bits running 2.6.22. I can load the AMD module without problems. The issue started when I tried to install OpenBSD 4.1 on a Virtual Machine and It could not manage to write the MBR on disk. That should not happen. I also

Re: [kvm-devel] current git master external module crashes my server

2007-09-12 Thread Sebastian Färber
Hi Avi, 2007/9/12, Avi Kivity [EMAIL PROTECTED]: What was the last kvm version (or date of using kvm.git) that worked for you? kvm-36 is working for me, kvm-37 doesn't compile because of undefined symbol genapic and kvm-38 gives me: -- QEMU 0.9.0 monitor - type 'help' for more information

Re: [kvm-devel] current git master external module crashes my server

2007-09-12 Thread Avi Kivity
Sebastian Färber wrote: Hi Avi, 2007/9/12, Avi Kivity [EMAIL PROTECTED]: What was the last kvm version (or date of using kvm.git) that worked for you? kvm-36 is working for me, kvm-37 doesn't compile because of undefined symbol genapic and kvm-38 gives me: -- QEMU 0.9.0 monitor

Re: [kvm-devel] KVM behaves weird on AMD64

2007-09-12 Thread Avi Kivity
Miguel Araujo wrote: Hello all, I have recently compiled kvm-36 in my Ubuntu Desktop 7.04 64 bits running 2.6.22. I can load the AMD module without problems. The issue started when I tried to install OpenBSD 4.1 on a Virtual Machine and It could not manage to write the MBR on disk. That

Re: [kvm-devel] win2003 guest stutters

2007-09-12 Thread Avi Kivity
Joris wrote: Hi, Please CC me, I'm not a subscriber to the list. I have a Debian unstable 64bit host on an intel S3000 quad core xeon X3210. Kernel 2.6.22-2-amd64 (debian flavour) and KVM28 and KVM36. Linux guests run very well. I installed Win2003 EE SP2 with --no-kvm, and disabled

Re: [kvm-devel] current git master external module crashes my server

2007-09-12 Thread Sebastian Färber
Hi Avi, 2007/9/12, Avi Kivity [EMAIL PROTECTED]: vmwrite error: reg 401c value 0 (err -1040153552) Ah, this is the TPR shadow. I just committed a patch from Sheng Yang to fix this. kvm-39 (to be released shortly) will include it. I manually applied Sheng Yang's (Prevent setting

Re: [kvm-devel] KVM behaves weird on AMD64

2007-09-12 Thread Miguel Araujo
Avi Kivity escribió: Miguel Araujo wrote: Hello all, I have recently compiled kvm-36 in my Ubuntu Desktop 7.04 64 bits running 2.6.22. I can load the AMD module without problems. The issue started when I tried to install OpenBSD 4.1 on a Virtual Machine and It could not manage to write

Re: [kvm-devel] KVM behaves weird on AMD64

2007-09-12 Thread Avi Kivity
Miguel Araujo wrote: Avi Kivity escribió: Miguel Araujo wrote: Hello all, I have recently compiled kvm-36 in my Ubuntu Desktop 7.04 64 bits running 2.6.22. I can load the AMD module without problems. The issue started when I tried to install OpenBSD 4.1 on a Virtual Machine and It could

Re: [kvm-devel] current git master external module crashes my server

2007-09-12 Thread Avi Kivity
Sebastian Färber wrote: Hi Avi, 2007/9/12, Avi Kivity [EMAIL PROTECTED]: vmwrite error: reg 401c value 0 (err -1040153552) Ah, this is the TPR shadow. I just committed a patch from Sheng Yang to fix this. kvm-39 (to be released shortly) will include it. I manually

Re: [kvm-devel] [PATCH 0/5] Split the emulator: decode execute

2007-09-12 Thread Laurent Vivier
Avi Kivity wrote: Laurent Vivier wrote: These patches split the emulator in two parts: one to decode the instruction, the other to execute it. The decode part is then called only when needed. Patchset looks good, but fails booting FC6 x86-64 on Intel. It may be a merge error (did not

Re: [kvm-devel] [PATCH 0/5] Split the emulator: decode execute

2007-09-12 Thread Avi Kivity
Laurent Vivier wrote: Avi Kivity wrote: Laurent Vivier wrote: These patches split the emulator in two parts: one to decode the instruction, the other to execute it. The decode part is then called only when needed. Patchset looks good, but fails booting FC6 x86-64 on

Re: [kvm-devel] KVM behaves weird on AMD64

2007-09-12 Thread Miguel Araujo
Thanks Avi for your quick response and interest. Avi Kivity escribió: Miguel Araujo wrote: Avi Kivity escribió: Miguel Araujo wrote: Hello all, I have recently compiled kvm-36 in my Ubuntu Desktop 7.04 64 bits running 2.6.22. I can load the AMD module without problems. The

Re: [kvm-devel] [ANNOUNCE] kvm-38 release

2007-09-12 Thread Haydn Solomon
Thanks much guys for kvm release38. I have an issue when booting a windows xp machine that I've been using with kvm for some time now. When I tried starting the windows xp machine my screen went blank and my xwindows session restarted itself. I then proceeded to try to start the machine again and

Re: [kvm-devel] KVM Test result , kvm.git e91a389683e, kvm-userspace.git: ac427f90

2007-09-12 Thread Zhao, Yunfeng
But we still find 3 new issues: 1. guest timer 2 times faster than network timer https://sourceforge.net/tracker/index.php?func=detailaid=1791444group_ id=180599atid=893831 Does this happen with -no-kvm-irqchip? [Yunfeng] I will have a try with this option. Eddie, the is very likely the

[kvm-devel] Kernel oops with kvm-38, 100% cpu usage with kvm-35, 36

2007-09-12 Thread Paquet Daniel
Hello, I have a problem with kvm-38, there is a kernel oops and kvm dies with the guest os without even completely booting. KVM dies with reason 18240. I start my guests with : kvm -no-rtc -hda disks/windows-xp.qcow2 -localtime -m 512 -net nic,model=ne2k_pci,macaddr=00:00:00:00:00:01 -net

[kvm-devel] Offer

2007-09-12 Thread Hanker Group
Dear Sir/Madam, Inquire about one million Chinese end buyers and suppliers information freely. Establish the direct cooperation relationship with Chinese end suppliers and buyers,then you can decrease cost and win the biggest profit. Inquire about 100,000 world ship-owners database and

[kvm-devel] [ANNOUNCE] kvm-36 release

2007-09-12 Thread Avi Kivity
Fix a couple of lapic hiccups in kvm-38. Changes since kvm-38: - provide div64_64() for older kernels - improve emulation failure reporting - more x86 emulator work (push imm8, pushf, call near) (Nitin A Kamble) - don't use TPR shadow on i386 (Sheng Yang) Notes: If you use the modules bundled

Re: [kvm-devel] [ANNOUNCE] kvm-36 release

2007-09-12 Thread Avi Kivity
That's kvm-39 of course. Avi Kivity wrote: Fix a couple of lapic hiccups in kvm-38. Changes since kvm-38: - provide div64_64() for older kernels - improve emulation failure reporting - more x86 emulator work (push imm8, pushf, call near) (Nitin A Kamble) - don't use TPR shadow on i386

[kvm-devel] [ kvm-Bugs-1793201 ] [KVM-37 KVM-39] Unable to load kvm.ko

2007-09-12 Thread SourceForge.net
Bugs item #1793201, was opened at 2007-09-12 10:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1793201group_id=180599 Please note that this message will contain a full copy of

Re: [kvm-devel] [ANNOUNCE] kvm-36 release

2007-09-12 Thread Piero Ottuzzi
Hi Avi, all, trying to compile kvm-39 on Ubuntu 6.10 (Linux acaro 2.6.17-12-generic #2 SMP Wed Aug 29 18:53:01 UTC 2007 x86_64 GNU/Linux): [EMAIL PROTECTED]:~/tmp/kvm-39$ make make -C kernel make[1]: Entering directory `/home/piero/tmp/kvm-39/kernel' make -C /lib/modules/2.6.17-12-generic/build

Re: [kvm-devel] [ANNOUNCE] kvm-38 release

2007-09-12 Thread Haydn Solomon
You guys are quick! Ok, kvm-39 allows me to run my windows xp machine now. I just have one question that I'm not sure of.. should reboot be working now? I tried rebooting the windows xp and got the following output. rax ff00 rbx ff53 rcx rdx

Re: [kvm-devel] current git master external module crashes my server

2007-09-12 Thread Sebastian Färber
Hi, i just upgraded to lastet git and now get the following error in dmesg: -- emulation failed (mmio) rip c2008430 60 17 97 f8 -- qemu exits with: (qemu) exception 14 (2) rax rbx 00036380 rcx 9600 rdx 24f1 rsi 000a rdi

Re: [kvm-devel] [ANNOUNCE] kvm-36 release

2007-09-12 Thread Gildas
Hi, Some updates since kvm-37 Compilation worked fine for me on an intel Core2 64bits machine running ubuntu feisty with kernel 2.6.20 x86_64. Loading modules went ok. * Running a windows xp image with /usr/local/bin/qemu-system-x86_64 -smp 2 -m 768 -hda win_xp.qcow -net user -net nic -monitor

Re: [kvm-devel] win2003 guest stutters

2007-09-12 Thread Joris
Hi Avi, Please CC me, I'm not a subscriber to the list. Please try using 'taskset' to pin the VM to one cpu and report. That improves things significantly. The first minute the symptoms are still present, after that the VM appears to work smoothly. This is really great, thanks! Kind

Re: [kvm-devel] [PATCH] Add support for a basic boot menu to the bios

2007-09-12 Thread Anthony Liguori
Very cool! My mailer doesn't want to quote your patch, but I noticed the following: + +/* set the default based on the keypress or menu */ +switch(scan) { +case 0x3D: +outb_cmos(0x3d, 0x01); +break; +case 0x3E: +outb_cmos(0x3d, 0x02); +

Re: [kvm-devel] [PATCH] Add support for a basic boot menu to the bios

2007-09-12 Thread Jeremy Katz
On Wed, 2007-09-12 at 15:19 -0500, Anthony Liguori wrote: Very cool! Long-term itch of mine scratched :-) My mailer doesn't want to quote your patch, but I noticed the following: + +/* set the default based on the keypress or menu */ [snip] But the CMOS memory isn't persisted in

Re: [kvm-devel] [ANNOUNCE] kvm-36 release

2007-09-12 Thread Wei Huang
The compilation errors also showed up on my boxes. The attached patch fixes the errors by renaming variables. Signed-off-by: Wei Huang [EMAIL PROTECTED] Piero Ottuzzi wrote: Hi Avi, all, trying to compile kvm-39 on Ubuntu 6.10 (Linux acaro 2.6.17-12-generic #2 SMP Wed Aug 29 18:53:01 UTC

Re: [kvm-devel] [PATCH] (big) real mode emulation - push imm8

2007-09-12 Thread Kamble, Nitin A
Hi Avi, Thanks for pushing my patch in. Can you also take the attached patch? It will make my daily merges easier. Thanks Regards, Nitin Linux Open Source Technology Center, Intel Corporation The Mind is like a

[kvm-devel] [ kvm-Bugs-1793645 ] 64bit host crashes when boot guest

2007-09-12 Thread SourceForge.net
Bugs item #1793645, was opened at 2007-09-13 10:38 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1793645group_id=180599 Please note that this message will contain a full copy of

[kvm-devel] Test report for KVM, kvm.git: 6617597, kvm-userspace.git f8e8a8e1d

2007-09-12 Thread Zhao, Yunfeng
Hi, all, This is today's KVM test result against kvm.git: 6617597ecdbdff1419d2e942b6aa301f82fe4598 kvm-userspace.git f8e8a8e1df0bdda7e8ecc1f7e3a54e07d1d0e92a The testing on 64bit host has been blocked by this issue. 64bit host crashes when boot guest

[kvm-devel] (no subject)

2007-09-12 Thread Dong, Eddie
- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ kvm-devel mailing

Re: [kvm-devel] Test report for KVM, kvm.git: 6617597, kvm-userspace.git f8e8a8e1d

2007-09-12 Thread Dong, Eddie
Following commit crach the system. You may need to temply remove it for going on before a real fix comes out. commit 0663a73e366dd1df52c0ce4fec32f47455575324 Author: Avi Kivity [EMAIL PROTECTED] Date: Mon Sep 10 18:10:54 2007 +0300 KVM: Move main vcpu loop into subarch independent code

Re: [kvm-devel] Test report for KVM, kvm.git: 6617597, kvm-userspace.git f8e8a8e1d

2007-09-12 Thread Avi Kivity
Dong, Eddie wrote: Following commit crach the system. You may need to temply remove it for going on before a real fix comes out. commit 0663a73e366dd1df52c0ce4fec32f47455575324 Author: Avi Kivity [EMAIL PROTECTED] Date: Mon Sep 10 18:10:54 2007 +0300 KVM: Move main vcpu loop into

[kvm-devel] Failed loading kvm-intel module with kvm-39

2007-09-12 Thread Simon Gao
Hi, I am seeing problem with loading kvm-39 kvm-intel module. Here are errors: # modprobe kvm-intel WARNING: Error inserting kvm (/lib/modules/2.6.22-gentoo-r5/extra/kvm.ko): Unknown symbol in module, or unknown parameter (see dmesg) FATAL: Error inserting kvm_intel