Re: [kvm-devel] soft lockup in kvm_flush_remote_tlbs

2007-10-25 Thread Avi Kivity
david ahern wrote: I am trying, unsuccessfully so far, to get a vm running with 4 cpus. It is failing with a soft lockup: BUG: soft lockup detected on CPU#3! [c044a05f] softlockup_tick+0x98/0xa6 [c042ccd4] update_process_times+0x39/0x5c [c04176ec] smp_apic_timer_interrupt+0x5c/0x64

[kvm-devel] [ kvm-Bugs-1819768 ] xp and win2k3 guest crashes

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

[kvm-devel] KVM Test result, kernel 948c098.. , userspace f33b8d57e.. -- One new issue

2007-10-25 Thread Zhao, Yunfeng
Hi, Here is the testing result for latest KVM commits, kernel 948c098f17a7a64a067d25f9e95651fef4bfc34e, userspace, f33b8d57e92d7ce82a7b30fc5bdc274552f6ad63. One new issue 1. xp and win2k3 guest crashes on pae host: https://sourceforge.net/tracker/?func=detailatid=893831aid=1819768gro

[kvm-devel] [PATCH 3/4] Let gcc to choose which registers to save (svm-i386)

2007-10-25 Thread Laurent Vivier
This patch lets GCC to determine which registers to save when we switch to/from a VCPU in the case of AMD i386 * Original code saves following registers: ebx, ecx, edx, esi, edi, ebp * Patched code: - informs GCC that we modify following registers using the clobber description:

[kvm-devel] [PATCH 1/4] Let gcc to choose which registers to save (vmx-x86_64)

2007-10-25 Thread Laurent Vivier
This patch lets GCC to determine which registers to save when we switch to/from a VCPU in the case of intel x86_64. * Original code saves following registers: rax, rbx, rcx, rdx, rsi, rdi, rbp, r8, r9, r10, r11, r12, r13, r14, r15 * Patched code: - informs GCC that we modify

[kvm-devel] [PATCH 0/4] Let gcc to choose which registers to save

2007-10-25 Thread Laurent Vivier
This patch lets GCC to determine which registers to save when we switch to/from a VCPU. [PATCH 1/4] Let gcc to choose which registers to save (vmx-x86_64) drivers/kvm/vmx.c | 21 + 1 files changed, 9 insertions(+), 12 deletions(-) This patch lets GCC to

[kvm-devel] [PATCH 4/4] Let gcc to choose which registers to save (vmx-i386)

2007-10-25 Thread Laurent Vivier
This patch lets GCC to determine which registers to save when we switch to/from a VCPU in the case of intel i386. I don't know if its patch is really usefull as it replaces a popa/pusha by several pop/push. * Original code saves following registers: eax,

Re: [kvm-devel] soft lockup in kvm_flush_remote_tlbs

2007-10-25 Thread david ahern
As a quick test I added a printk to the loop, right after the while(): while (atomic_read(completed) != needed) { printk(kvm_flush_remote_tlbs: completed = %d, needed = %d\n, atomic_read(completed), needed); cpu_relax(); barrier(); } This is the output

Re: [kvm-devel] soft lockup in kvm_flush_remote_tlbs

2007-10-25 Thread Avi Kivity
david ahern wrote: As a quick test I added a printk to the loop, right after the while(): while (atomic_read(completed) != needed) { printk(kvm_flush_remote_tlbs: completed = %d, needed = %d\n, atomic_read(completed), needed); cpu_relax(); barrier(); }

Re: [kvm-devel] soft lockup in kvm_flush_remote_tlbs

2007-10-25 Thread david ahern
I'll give your suggestions I try. I need to move to a server that I can forcibly reboot remotely (to recover), so it will be a while. david Avi Kivity wrote: david ahern wrote: As a quick test I added a printk to the loop, right after the while(): while (atomic_read(completed) !=

[kvm-devel] [PATCH] kvm-userspace: Add a target to create the tarball

2007-10-25 Thread Laurent Vivier
This patch adds a target tar in the Makefile of kvm-userspace to create a tarball of kvm, including kvm kernel modules sources. Use make tar or make LINUX=/usr/src/linux-2.6 tar to create kvm-snapshot-date.tar.gz with module sources from /usr/src/linux-2.6 or make VERSION=latest to create

Re: [kvm-devel] RFC/patch portability: split kvm_vm_ioctl v2

2007-10-25 Thread Izik Eidus
On Thu, 2007-10-25 at 17:48 +0200, Carsten Otte wrote: This patch splits kvm_vm_ioctl into archtecture independent parts, and x86 specific parts which go to kvm_arch_vcpu_ioctl in x86.c. Common ioctls for all architectures are: KVM_CREATE_VCPU, KVM_GET_DIRTY_LOG, KVM_SET_USER_MEMORY_REGION

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Haydn Solomon
Thanks, that was quick. On 10/25/07, Avi Kivity [EMAIL PROTECTED] wrote: Haydn Solomon wrote: On compilation I get the following error. ../qemu-kvm.h:41: error: redefinition of 'kvm_log_tpr' ../qemu-kvm.h:41: error: previous definition of 'kvm_log_tpr' was here make[2]: *** [i8259.o]

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Anthony Liguori
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

Re: [kvm-devel] High vm-exit latencies during kvm boot-up/shutdown

2007-10-25 Thread Avi Kivity
Jan Kiszka wrote: Avi Kivity wrote: Jan Kiszka wrote: Got it! It's wbinvd from smm_init in rombios32.c! Anyone any comments on this? Ha! A real life 300usec instruction! Unfortunately, it cannot be trapped on Intel (it can be trapped on AMD). Looks like a minor

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Avi Kivity
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

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Jindrich Makovicka
On Thu, 25 Oct 2007 13:39:33 -0400 Haydn Solomon [EMAIL PROTECTED] wrote: Thanks, that was quick. Finally, this (pre)release solved the long standing Java IE Plugin lockup problem for me. Thanks a lot! -- Jindrich Makovicka

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Avi Kivity
Anthony Liguori wrote: 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

Re: [kvm-devel] [PATCH 0 of 2] [v2] Another attempt to Consolidate x86 makefiles tests

2007-10-25 Thread Avi Kivity
[EMAIL PROTECTED] wrote: This is the acutally the 3rd attempt. These patches consolidate the make files tests in user director for x86. This is to allow other architectures easier integration into the kvm source. Food fight seems to have died down, so I applied both. But please: -

[kvm-devel] somthing new for shared memory???

2007-10-25 Thread Francesco Cipollone
Hy somthing new about the shared memory support between VMs? or VM and host? bye - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Haydn Solomon
I also had a problem installing windows xp. Got the following error localhost kernel: [ cut here ] Message from syslogd@ at Thu Oct 25 13:59:27 2007 ... localhost kernel: invalid opcode: [1] SMP Installed windows xp with the following options

Re: [kvm-devel] [Patch] Make kvm sleep if eflag is unset

2007-10-25 Thread Avi Kivity
Dor Laor wrote: [PATCH] Make kvm Sleep if eflag is unset. The main loop checks whether a sleep is needed (kvm_main_loop_wait). If there is a need to sleep it polls 10msec for signals and select input from the devices. Otherwise it enters guest mode. In case halt is on and there is pending

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Avi Kivity
Haydn Solomon wrote: I also had a problem installing windows xp. Got the following error I guess I'll have to test that too. -- error compiling committee.c: too many arguments to function - This SF.net email is

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Anthony Liguori
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

Re: [kvm-devel] soft lockup in kvm_flush_remote_tlbs

2007-10-25 Thread david ahern
The issue appears to be with the RHEL5 kernel (host OS is rhel5). I tried your suggestions below -- no effect; still hit the softlockup. I then moved the host to the 2.6.23.1 kernel but with the kvm-48 code base. Surprisingly, I had no issues starting my guest with '-smp 4'. david Avi Kivity

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Avi Kivity
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

Re: [kvm-devel] soft lockup in kvm_flush_remote_tlbs

2007-10-25 Thread Avi Kivity
david ahern wrote: The issue appears to be with the RHEL5 kernel (host OS is rhel5). I tried your suggestions below -- no effect; still hit the softlockup. I then moved the host to the 2.6.23.1 kernel but with the kvm-48 code base. Surprisingly, I had no issues starting my guest with '-smp

[kvm-devel] userspace repositories

2007-10-25 Thread Hollis Blanchard
Avi, what do you think about breaking the kvm-userspace repository into separate kvm-qemu, kvmctl, and libkvm repositories? -- Hollis Blanchard IBM Linux Technology Center - This SF.net email is sponsored by: Splunk Inc.

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Anthony Liguori
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

Re: [kvm-devel] [RFC v3] passthrough for configure options to qemu

2007-10-25 Thread Avi Kivity
Carlo Marcelo Arenas Belon wrote: The following patch implement a configure passthrough for qemu and migrate all currently implemented qemu specific configuration flags (enable-alsa, disable-vnc-tls and disable-gcc-check) to use it. It uses qemu's configure to get a list of hints for

Re: [kvm-devel] userspace repositories

2007-10-25 Thread Avi Kivity
Hollis Blanchard wrote: Avi, what do you think about breaking the kvm-userspace repository into separate kvm-qemu, kvmctl, and libkvm repositories? Firstly, I think kvmctl and libkvm should stay together. I'm not thrilled about breaking up the repositories even more; it makes bisecting

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Avi Kivity
Anthony Liguori wrote: 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

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: 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

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Fabian Deutsch
Hey, 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

Re: [kvm-devel] [PATCH] Enable memory mapped TPR shadow(FlexPriority)

2007-10-25 Thread Avi Kivity
Yang, Sheng wrote: Exporting an ioctl handler isn't very pretty. Izik is working on a patch that also requires an internal memory slot, so he will add an API for it. OK, that's my hope :-) I will wait for that. I've just merged and pushed that bit. -- error

Re: [kvm-devel] userspace repositories

2007-10-25 Thread Hollis Blanchard
On Thu, 2007-10-25 at 20:40 +0200, Avi Kivity wrote: Hollis Blanchard wrote: Avi, what do you think about breaking the kvm-userspace repository into separate kvm-qemu, kvmctl, and libkvm repositories? Firstly, I think kvmctl and libkvm should stay together. Why? As far as I can see, there

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Avi Kivity
Anthony Liguori wrote: static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu) { int r; kvm_mmu_free_some_pages(vcpu); r = mmu_topup_memory_cache(vcpu-mmu_pte_chain_cache, pte_chain_cache, 4); if (r) goto out; r =

Re: [kvm-devel] userspace repositories

2007-10-25 Thread Avi Kivity
Hollis Blanchard wrote: On Thu, 2007-10-25 at 20:40 +0200, Avi Kivity wrote: Hollis Blanchard wrote: Avi, what do you think about breaking the kvm-userspace repository into separate kvm-qemu, kvmctl, and libkvm repositories? Firstly, I think kvmctl and libkvm should stay

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Haydn Solomon
I was able to complete an installation of windows xp using -smp 1. However, I would like to test on an existing virtual machine with applications already installed on it. Changing the HAL to ACPI should be enough for me to test the windows optimization right feature right? On 10/25/07, Avi Kivity

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Avi Kivity
Haydn Solomon wrote: I was able to complete an installation of windows xp using -smp 1. However, I would like to test on an existing virtual machine with applications already installed on it. Changing the HAL to ACPI should be enough for me to test the windows optimization right feature

Re: [kvm-devel] RFC/patch portability: split kvm_vm_ioctl v2

2007-10-25 Thread Izik Eidus
Hollis Blanchard wrote: On Thu, 2007-10-25 at 17:48 +0200, Izik Eidus wrote: On Thu, 2007-10-25 at 17:48 +0200, Carsten Otte wrote: This patch splits kvm_vm_ioctl into archtecture independent parts, and x86 specific parts which go to kvm_arch_vcpu_ioctl in x86.c. Common ioctls for

[kvm-devel] Fw: somthing new for shared memory???

2007-10-25 Thread Francesco Cipollone
- Original Message - From: Francesco Cipollone [EMAIL PROTECTED] To: Izik Eidus [EMAIL PROTECTED] Sent: Thursday, October 25, 2007 10:43 PM Subject: Re: [kvm-devel] somthing new for shared memory??? - Original Message - From: Izik Eidus [EMAIL PROTECTED] To: Francesco

Re: [kvm-devel] Fw: somthing new for shared memory???

2007-10-25 Thread Izik Eidus
Francesco Cipollone wrote: - Original Message - From: Francesco Cipollone [EMAIL PROTECTED] To: Izik Eidus [EMAIL PROTECTED] Sent: Thursday, October 25, 2007 10:43 PM Subject: Re: [kvm-devel] somthing new for shared memory??? - Original Message - From: Izik Eidus

Re: [kvm-devel] [kvm-ppc-devel] RFC/patch portability: split kvm_vm_ioctl v2

2007-10-25 Thread Izik Eidus
Hollis Blanchard wrote: On Fri, 2007-10-26 at 00:12 +0200, Izik Eidus wrote: ok i was thinking, maybe we can rewrite the way kvm hold memory so more code would be shared, lets say we throw away all the slots and arch depended stuff, and we let kvm just hold the userspace allocated memory

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu) { int r; kvm_mmu_free_some_pages(vcpu); r = mmu_topup_memory_cache(vcpu-mmu_pte_chain_cache, pte_chain_cache, 4); if (r) goto out; r =

Re: [kvm-devel] [kvm-ppc-devel] RFC/patch portability: split kvm_vm_ioctl v2

2007-10-25 Thread Hollis Blanchard
On Fri, 2007-10-26 at 00:12 +0200, Izik Eidus wrote: ok i was thinking, maybe we can rewrite the way kvm hold memory so more code would be shared, lets say we throw away all the slots and arch depended stuff, and we let kvm just hold the userspace allocated memory address, With that approach,

Re: [kvm-devel] [kvm-ppc-devel] RFC/patch portability: split kvm_vm_ioctl v2

2007-10-25 Thread Izik Eidus
Izik Eidus wrote: Hollis Blanchard wrote: On Fri, 2007-10-26 at 00:12 +0200, Izik Eidus wrote: ok i was thinking, maybe we can rewrite the way kvm hold memory so more code would be shared, lets say we throw away all the slots and arch depended stuff, and we let kvm just hold the

Re: [kvm-devel] soft lockup in kvm_flush_remote_tlbs

2007-10-25 Thread david ahern
It appears to be a problem with the kernel proper (ie., not a Red Hat patch). I hit the soft lockup problem with kvm-48 and the 2.6.18.4 kernel which is the base for RHEL5. That suggests a delivery between 2.6.18.4 (November 2006) and 2.6.23.1 fixed it. david Avi Kivity wrote: david ahern

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu) { int r; kvm_mmu_free_some_pages(vcpu); r = mmu_topup_memory_cache(vcpu-mmu_pte_chain_cache, pte_chain_cache, 4); if (r) goto out; r =

Re: [kvm-devel] RFC/patch portability: split kvm_vm_ioctl v2

2007-10-25 Thread Zhang, Xiantao
Carsten Otte wrote: This patch splits kvm_vm_ioctl into archtecture independent parts, and x86 specific parts which go to kvm_arch_vcpu_ioctl in x86.c. Common ioctls for all architectures are: KVM_CREATE_VCPU, KVM_GET_DIRTY_LOG, KVM_SET_USER_MEMORY_REGION KVM_SET_USER_MEMORY_REGION is

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Haydn Solomon
I've been running windows xp sp2 all day with acpi uniprocessor HAL and it's noticeable much faster...blazing fast. I can imagine how much faster it will be when -smp 2 works. Once it did hang up on me after installing an office application and prompted for registration online. Other than that

Re: [kvm-devel] High vm-exit latencies during kvm boot-up/shutdown

2007-10-25 Thread Dong, Eddie
There's a two-liner required to make it work. I'll add it soon. But you still needs to issue WBINVD to all pCPUs which just move non-response time from one place to another, not? Eddie - This SF.net email is sponsored

[kvm-devel] compile kvm on fc6

2007-10-25 Thread Zhao, Yunfeng
Kvm cannot be compiled on fc6 which doesn't define CONFIG_HAS_IOMEM. Here is the error messages: [EMAIL PROTECTED] kvm-userspace]# make make -C kernel make[1]: Entering directory `/root/kvm-userspace/kernel' make -C /lib/modules/2.6.18-1.2798.fc6/build M=`pwd` $@ make[2]: Entering directory

Re: [kvm-devel] [RFT] kvm with Windows optimization

2007-10-25 Thread Dong, Eddie
BTW, is it wise to enable this by default for all guests? Ignoring the fact that we're modifying guest's memory without its knowledge, if a guest unmaps the VA mappings for the BIOS then all sorts of problems could occur. Good movement! But, Vista won't work with patching. The memory