[ kvm-Bugs-2653899 ] seg fault with two nics

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

[PATCH] KVM: Merge kvm_ioapic_get_delivery_bitmask into kvm_get_intr_delivery_bitmask

2009-03-02 Thread Sheng Yang
Gleb fixed bitmap ops usage in kvm_ioapic_get_delivery_bitmask. Sheng merged two functions, as well as fix several issues in kvm_get_intr_delivery_bitmask: 1. deliver_bitmask is a bitmap rather than a unsigned long intereger. 2. Lowest priority target bitmap wrong calculated by mistake. 3.

[PATCH 02/10] Make device assignment depend on libpci

2009-03-02 Thread Sheng Yang
Which is used later for capability detection. Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu/Makefile.target |1 + qemu/configure | 20 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/qemu/Makefile.target b/qemu/Makefile.target index

[PATCH 01/10] kvm: Replace force type convert with container_of()

2009-03-02 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu/hw/device-assignment.c | 20 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/qemu/hw/device-assignment.c b/qemu/hw/device-assignment.c index b7cbcec..c9a3b8e 100644 --- a/qemu/hw/device-assignment.c

[PATCH 04/10] Support for device capability

2009-03-02 Thread Sheng Yang
This framework can be easily extended to support device capability, like MSI/MSI-x. Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu/hw/pci.c | 85 + qemu/hw/pci.h | 30 2 files changed, 115 insertions(+), 0

[PATCH 05/10] kvm: user interface for MSI type irq routing

2009-03-02 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- libkvm/libkvm.c | 98 --- libkvm/libkvm.h | 22 2 files changed, 101 insertions(+), 19 deletions(-) diff --git a/libkvm/libkvm.c b/libkvm/libkvm.c index 0ac1c28..050eacd

[PATCH 10/10] kvm: enable MSI-X capabilty for assigned device

2009-03-02 Thread Sheng Yang
The most important part here, is we emulate a page of MMIO region using a page of memory. That's because MSI-X table was put in the region and we have to intercept it. Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu/hw/device-assignment.c | 286

[PATCH 03/10] Figure out device capability

2009-03-02 Thread Sheng Yang
Try to figure out device capability in update_dev_cap(). Now we are only care about MSI capability. The function pci_find_cap_offset original function wrote by Allen for Xen. Notice the function need root privilege to work. This depends on libpci to work. Signed-off-by: Allen Kay

[PATCH 0/10 v4] MSI/MSI-X capability in userspace

2009-03-02 Thread Sheng Yang
OK, just resend the patchset... Patch 1-4 is a frame work for capability report in QEmu. Patch 5-7 is to expose MSI capability to the guest. Patch 8-10 is to expose MSI-X capability to the guest. I know it's huge, comments are welcome! Thanks! -- To unsubscribe from this list: send the line

[PATCH 08/10] Add MSI-X related macro to pci.c

2009-03-02 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu/hw/pci.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu/hw/pci.h b/qemu/hw/pci.h index 7f3548b..0d988da 100644 --- a/qemu/hw/pci.h +++ b/qemu/hw/pci.h @@ -192,6 +192,7 @@ typedef struct PCIIORegion { #define

[PATCH 06/10] kvm: libkvm: allocate unused gsi for irq routing

2009-03-02 Thread Sheng Yang
Notice here is a simple solution, can be replaced later. Signed-off-by: Sheng Yang sh...@linux.intel.com --- libkvm/kvm-common.h |1 + libkvm/libkvm.c | 10 ++ libkvm/libkvm.h |8 3 files changed, 19 insertions(+), 0 deletions(-) diff --git

[PATCH 07/10] kvm: expose MSI capability to guest

2009-03-02 Thread Sheng Yang
Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu/hw/device-assignment.c | 112 --- qemu/hw/device-assignment.h |7 +++ 2 files changed, 112 insertions(+), 7 deletions(-) diff --git a/qemu/hw/device-assignment.c b/qemu/hw/device-assignment.c

oops in kvm:gfn_to_rmap

2009-03-02 Thread Adrian Bridgett
We've had two machines crash (at a weekend of course! \o/ for IPMI remote reboot!) - both times the machines were pingable but ssh failed (no ssh banner via telnet). This time there was an oops. host is debian lenny: linux-image-2.6.26-1-amd64 kvm: 83+dfsg-1 box has several SMP guests on it and

Re: Virtio and WinXP (disk drivers)

2009-03-02 Thread Dor Laor
Alpár Török wrote: 2009/2/25 Tomasz Chmielewski man...@wpkg.org: Alpár Török schrieb: 2009/2/25 Tomasz Chmielewski man...@wpkg.org: Alpár Török schrieb: Indeed virtio performs better than e1000. It should work, please provide host kernel version, kvm version, virtio

Re: oops in kvm:gfn_to_rmap

2009-03-02 Thread Adrian Bridgett
In fact, we were running the kvm modules from the kernel tree, I've just swapped to KVM-83 modules - we'll see how it goes (it's just crashed twice today). Thanks, Adrian -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More

Re: oops in kvm:gfn_to_rmap

2009-03-02 Thread Marcelo Tosatti
On Mon, Mar 02, 2009 at 08:48:16AM +, Adrian Bridgett wrote: We've had two machines crash (at a weekend of course! \o/ for IPMI remote reboot!) - both times the machines were pingable but ssh failed (no ssh banner via telnet). This time there was an oops. host is debian lenny:

Re: kvm-autotest -- introducing kvm_runtest_2

2009-03-02 Thread Ryan Harper
* Uri Lublin u...@redhat.com [2009-03-01 13:10]: Hello, KVM-autotest is a test framework for kvm, based on autotest (http://autotest.kernel.org). Its purpose is to keep kvm stable. For developers, we want to find regressions early. For users, we want users to feel confident kvm runs

Re: kvm-84 screen corruption

2009-03-02 Thread Dustin Kirkland
On Tue, Feb 24, 2009 at 8:47 PM, Zhang, Xiantao xiantao.zh...@intel.com wrote: I can confirm it on ia64 platform with kvm-84 and kvm-userspace upstream source.  Another issue is that the text color is not correct. For what it's worth, I was able to fix this in kvm (1:84+dfsg-0ubuntu5) jaunty

Re: kvm-84 screen corruption

2009-03-02 Thread Aurelien Jarno
Dustin Kirkland a écrit : On Tue, Feb 24, 2009 at 8:47 PM, Zhang, Xiantao xiantao.zh...@intel.com wrote: I can confirm it on ia64 platform with kvm-84 and kvm-userspace upstream source. Another issue is that the text color is not correct. For what it's worth, I was able to fix this in

Re: oops in kvm:gfn_to_rmap

2009-03-02 Thread Adrian Bridgett
On Mon, Mar 2, 2009 at 12:12:09 -0300 (-0300), Marcelo Tosatti wrote: Adrian, Please paste a few lines above PGD 27a874067 PUD 4ba84d067 PMD 0 CPU 2 Oops! Missed those - sorry! BUG: unable to handle kernel NULL pointer dereference at IP: [a02935c4]

kvm-83 write performance raw

2009-03-02 Thread Malinka Rellikwodahs
Host: 2.6.27-gentoo-r8 AMD Opteron 2378 Guest: Windows XP SP2 when running with a raw disk image as a file or a raw disk image on an lvm vg, I'm getting very low performance on write (5-10 MB/s) however when using qcow2 format disk image the write speed is much better (~30MB/s), which is

Re: kvm-83 write performance raw

2009-03-02 Thread Anthony Liguori
Malinka Rellikwodahs wrote: Host: 2.6.27-gentoo-r8 AMD Opteron 2378 Guest: Windows XP SP2 when running with a raw disk image as a file or a raw disk image on an lvm vg, I'm getting very low performance on write (5-10 MB/s) however when using qcow2 format disk image the write speed is much

Re: kvm-83 write performance raw

2009-03-02 Thread Malinka Rellikwodahs
kvm-83 On Mon, Mar 2, 2009 at 15:35, Anthony Liguori anth...@codemonkey.ws wrote: Malinka Rellikwodahs wrote: Host: 2.6.27-gentoo-r8 AMD Opteron 2378 Guest: Windows XP SP2 when running with a raw disk image as a file or a raw disk image on an lvm vg, I'm getting very low performance on

Re: kvm-83 write performance raw

2009-03-02 Thread Malinka Rellikwodahs
On Mon, Mar 2, 2009 at 15:35, Anthony Liguori anth...@codemonkey.ws wrote: Malinka Rellikwodahs wrote: Host: 2.6.27-gentoo-r8 AMD Opteron 2378 Guest: Windows XP SP2 when running with a raw disk image as a file or a raw disk image on an lvm vg, I'm getting very low performance on write

Re: kvm-83 write performance raw

2009-03-02 Thread Malinka Rellikwodahs
On Mon, Mar 2, 2009 at 15:53, Mark van Walraven ma...@netvalue.net.nz wrote: On Mon, Mar 02, 2009 at 03:11:59PM -0500, Malinka Rellikwodahs wrote: when running with a raw disk image as a file or a raw disk image on an lvm vg, I'm getting very low performance on write (5-10 MB/s) however when

Re: kvm-83 write performance raw

2009-03-02 Thread Mark van Walraven
On Mon, Mar 02, 2009 at 03:11:59PM -0500, Malinka Rellikwodahs wrote: when running with a raw disk image as a file or a raw disk image on an lvm vg, I'm getting very low performance on write (5-10 MB/s) however when using qcow2 format disk image the write speed is much better (~30MB/s), which

Re: kvm-83 write performance raw

2009-03-02 Thread Anthony Liguori
Malinka Rellikwodahs wrote: What version of kvm is this? Is it kvm-68? You'll have better luck with something newer than that. kvm-83 is the one with the problem, kvm-68 is working correctly. kvm-68 and qcow2 both use cache=writeback by default which is less safe than

Re: kvm-83 write performance raw

2009-03-02 Thread Malinka Rellikwodahs
On Mon, Mar 2, 2009 at 16:22, Anthony Liguori anth...@codemonkey.ws wrote: Malinka Rellikwodahs wrote: What version of kvm is this?  Is it kvm-68?  You'll have better luck with something newer than that. kvm-83 is the one with the problem, kvm-68 is working correctly. kvm-68 and qcow2

KVM: x86: use smp_send_reschedule in kvm_vcpu_kick

2009-03-02 Thread Marcelo Tosatti
KVM uses a function call IPI to cause the exit of a guest running on a physical cpu. For virtual interrupt notification there is no need to wait on IPI receival, or to execute any function. This is exactly what the reschedule IPI does, without the overhead of function IPI. So use it instead of

Re: [PATCH] use bitmap ops on a bitmap instead of bit ops

2009-03-02 Thread Sheng Yang
On Monday 02 March 2009 15:12:00 Sheng Yang wrote: On Friday 27 February 2009 21:26:58 Gleb Natapov wrote: On Fri, Feb 27, 2009 at 11:19:09AM +0800, Sheng Yang wrote: - *mask = 0; I think the caller should not assume anything about the output, so let function itself do the

[PATCH] kvm: ia64: fix compilation error of kvm ia64

2009-03-02 Thread Zhang, Yang
hi please review it Thanks From d2ab64761b5e04895e61c052f8fb36d6998d5776 Mon Sep 17 00:00:00 2001 From: Yang Zhang yang.zh...@intel.com Date: Mon, 2 Mar 2009 22:06:41 -0500 Subject: [PATCH] KVM : IA64: fix compilation error for kvm ia64 Modify the arg of kvm_get_lowest_prio_vcpu(). Make it

[PATCH] kvm : qemu : fix compilation error in kvm-userspace for ia64

2009-03-02 Thread Zhang, Yang
Hi please to review it. thanks Best Regards --yang From 0cce141eae71bbb2012efd54ba38916c437cd030 Mon Sep 17 00:00:00 2001 From: Yang Zhang yang.zh...@intel.com Date: Mon, 2 Mar 2009 22:29:08 -0500 Subject: [PATCH] kvm : qemu : fix compilation error in kvm-userspace for ia64 when using

RE: [PATCH] kvm : qemu : fix compilation error in kvm-userspace for ia64

2009-03-02 Thread Zhang, Xiantao
diff --git a/kernel/Makefile b/kernel/Makefile index f8b341f..808f15e 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -61,7 +61,8 @@ headers-old = $(LINUX)/./include/asm-$(ARCH_DIR)/kvm*.h headers-new = $(LINUX)/arch/$(ARCH_DIR)/include/asm/./kvm*.h \

RE: [PATCH] kvm : qemu : fix compilation error in kvm-userspace for ia64

2009-03-02 Thread Zhang, Yang
ok, i see Best Regards --yang -Original Message- From: Zhang, Xiantao Sent: 2009年3月3日 11:51 To: Zhang, Yang; kvm-i...@vger.kernel.org Cc: kvm@vger.kernel.org; Avi Kivity Subject: RE: [PATCH] kvm : qemu : fix compilation error in kvm-userspace for ia64 diff --git a/kernel/Makefile

RE: [PATCH] kvm : qemu : fix compilation error in kvm-userspace for ia64

2009-03-02 Thread Zhang, Yang
Hi please drop the previous patch. This is the modifide patch. thanks From 4cdda47ee9d1fb19697eed36b82c1d8d614a2d4e Mon Sep 17 00:00:00 2001 From: Yang Zhang yang.zh...@intel.com Date: Mon, 2 Mar 2009 22:56:08 -0500 Subject: [PATCH] kvm : qemu : fix compilation error in kvm-userspace for

[PATCH] [KVM] qemu: clean up the warning info

2009-03-02 Thread Zhang, Yang
Hi please review it. thanks Best Regards --yang From 9f0b7ec112299eb644df790113722bce561f3729 Mon Sep 17 00:00:00 2001 From: Yang Zhang yang.zh...@intel.com Date: Mon, 2 Mar 2009 02:25:43 -0500 Subject: [PATCH] [KVM] qemu: clean up the warning info clean up the warning info in the

[PATCH] KVM: Fix assigned device with no irq

2009-03-02 Thread Sheng Yang
Some device like VF of SRIOV only support MSI-X. With this patch, SRIOV can be enabled with KVM assigned device(all kernel space patches are ready). Signed-off-by: Sheng Yang sh...@linux.intel.com --- virt/kvm/kvm_main.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff

[PATCH 1/1] kvm: fix irq 0 assignment

2009-03-02 Thread Sheng Yang
Shouldn't update assigned irq if host irq is 0, which means uninitialized or don't support INTx. Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu/hw/device-assignment.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu/hw/device-assignment.c

RE: x86: use smp_send_reschedule in kvm_vcpu_kick

2009-03-02 Thread Zhang, Xiantao
Marcelo Tosatti wrote: @@ -72,7 +73,6 @@ struct kvm_vcpu { struct mutex mutex; int cpu; struct kvm_run *run; - int guest_mode; unsigned long requests; unsigned long guest_debug; int fpu_active; The deletion will break other archs which depend on

Re: [PATCH v4 0/5] powerpc/kvm: Add MPC8544DS board support

2009-03-02 Thread Aurelien Jarno
On Thu, Feb 26, 2009 at 06:35:40PM +0800, Liu Yu wrote: patch 1: enable mpic for E500 platform. patch 2: add E500 pci controller emulation. patch 3: add E500 irq support. patch 4: add MPC8544DS board support. patch 5: FDT of MPC8544DS Thanks, whole series applied. -- Aurelien Jarno

Re: [PATCH 1/5] kvm/powerpc: Enable MPIC for E500 platform.

2009-03-02 Thread Aurelien Jarno
On Fri, Feb 27, 2009 at 10:04:17PM +0200, Blue Swirl wrote: On 2/27/09, Liu Yu-B13201 yu@freescale.com wrote: -Original Message- From: Blue Swirl [mailto:blauwir...@gmail.com] Sent: Friday, February 27, 2009 2:47 AM To: Liu Yu-B13201 Cc: qemu-de...@nongnu.org;