[COMMIT master] KVM: Fix apic_mmio_write return for unaligned write

2009-07-06 Thread Avi Kivity
From: Sheng Yang sh...@linux.intel.com Some in-famous OS do unaligned writing for APIC MMIO, and the return value has been missed in recent change, then the OS hangs. Signed-off-by: Sheng Yang sh...@linux.intel.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/lapic.c

[COMMIT master] Fix warning with DEVICE_ASSIGNMENT disabled

2009-07-06 Thread Avi Kivity
From: Jan Kiszka jan.kis...@web.de Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 66fa377..1180758 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -256,7 +256,9 @@ void

[COMMIT master] Fix kvm-disabled build

2009-07-06 Thread Avi Kivity
From: Jan Kiszka jan.kis...@web.de This addresses all issues that currently block building qemu-kvm with kvm support switched off. It's a pragmatic approach as more cleanups are actually required /wrt {kvm,libkvm,qemu-kvm}.h. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi

[COMMIT master] Backward compatibility for MSR_AMD64_PATCH_LOADER

2009-07-06 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h index 658255f..6dfe1ff 100644 --- a/x86/external-module-compat.h +++ b/x86/external-module-compat.h @@ -206,6 +206,10 @@ static inline int

[COMMIT master] KVM: handle AMD microcode MSR

2009-07-06 Thread Avi Kivity
From: Andre Przywara andre.przyw...@amd.com Windows 7 tries to update the CPU's microcode on some processors, so we ignore the MSR write here. The patchlevel register is already handled (returning 0), because the MSR number is the same as Intel's. Signed-off-by: Andre Przywara

[COMMIT master] KVM: PIT: fix kpit_elapsed division by zero

2009-07-06 Thread Avi Kivity
From: Marcelo Tosatti mtosa...@redhat.com Fix division by zero triggered by latch count command on uninitialized counter. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index 14bbaae..8c3ac30

[COMMIT master] KVM: Fix KVM_GET_MSR_INDEX_LIST

2009-07-06 Thread Avi Kivity
From: Jan Kiszka jan.kis...@web.de So far, KVM copied the emulated_msrs (only MSR_IA32_MISC_ENABLE) to a wrong address in user space due to broken pointer arithmetic. This caused subtle corruption up there (missing MSR_IA32_MISC_ENABLE had probably no practical relevance). Moreover, the size

[COMMIT master] Revert KVM: x86: check for cr3 validity in ioctl_set_sregs

2009-07-06 Thread Avi Kivity
From: Jan Kiszka jan.kis...@web.de This reverts commit 6c20e1442bb1c62914bb85b7f4a38973d2a423ba. To my understanding, it became obsolete with the advent of the more robust check in mmu_alloc_roots (89da4ff17f). Moreover, it prevents the conceptually safe pattern 1. set sregs 2. register

[COMMIT master] KVM: MMU: Trace guest pagetable walker

2009-07-06 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 1f24d88..cf7c770 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -140,6 +140,9 @@ module_param(oos_shadow, bool, 0644); #define ACC_USER_MASK

[COMMIT master] KVM: Trace shadow page lifecycle

2009-07-06 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Create, sync, unsync, zap. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index cf7c770..231d880 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -1102,6 +1102,7 @@ static int kvm_sync_page(struct

[COMMIT master] KVM: Document basic API

2009-07-06 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Document the basic API corresponding to the 2.6.22 release. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/Documentation/kvm/api.txt b/Documentation/kvm/api.txt new file mode 100644 index 000..1b1c22d --- /dev/null +++ b/Documentation/kvm/api.txt @@

[PATCH] Adds the LTP control file under tests/kvm/autotest_control/

2009-07-06 Thread sudhir kumar
This change I had made manually but it needs a patch. Hence sending it. This patch adds the control file under kvm/autotest_control. Signed-off-by: Sudhir Kumar sku...@linux.vnet.ibm.com Index: autotest/client/tests/kvm/autotest_control/ltp.control

[PATCH] sample entry in kvm_tests.cfg for LTP

2009-07-06 Thread sudhir kumar
Just for info, the entry looks like this. Signed-off-by: Sudhir Kumar sku...@linux.vnet.ibm.com Index: autotest/client/tests/kvm/kvm_tests.cfg.sample === --- autotest.orig/client/tests/kvm/kvm_tests.cfg.sample +++

Re: [AUTOTEST] [PATCH 1/2] Add latest LTP test in autotest

2009-07-06 Thread Lucas Meneghel Rodrigues
On Mon, 2009-07-06 at 11:10 +0530, sudhir kumar wrote: This patch updates the ltp wrapper in autotest to execute the latest ltp. At present autotest contains ltp which is more than 1 year old. There have been added lots of testcases in ltp within this period. So this patch updates the wrapper

Re: [Autotest] [AUTOTEST] [PATCH 2/2] View LTP execution results under kvm's results.html file

2009-07-06 Thread Lucas Meneghel Rodrigues
On Mon, 2009-07-06 at 11:13 +0530, sudhir kumar wrote: This patch creates a link to the results html file generated by the test under autotest. This is specific to the kvm part only. The assumption made is that the file name is test_name_results.html and it is located under test_name/results/

Re: [PATCH] Adds the LTP control file under tests/kvm/autotest_control/

2009-07-06 Thread Lucas Meneghel Rodrigues
On Mon, 2009-07-06 at 11:50 +0530, sudhir kumar wrote: This change I had made manually but it needs a patch. Hence sending it. This patch adds the control file under kvm/autotest_control. Signed-off-by: Sudhir Kumar sku...@linux.vnet.ibm.com Index:

Re: [Autotest] [PATCH] Add a client-side test qemu_iotests

2009-07-06 Thread Lucas Meneghel Rodrigues
On Mon, 2009-07-06 at 13:17 +0800, Yolkfull Chow wrote: Hi Lucas, since the qemu_iotests test suite itself has checked qemu, qemu-img and qemu-io ELF files before running, I would skip the duplicated step. Fair enough. Making the check on the autotest module would make things more apparent to

Re: [PATCH] KVM: Fix apic_mmio_write return for unaligned write

2009-07-06 Thread Avi Kivity
On 07/06/2009 06:05 AM, Sheng Yang wrote: Some in-famous OS do unaligned writing for APIC MMIO, and the return value has been missed in recent change, then the OS hangs. Applied, thanks. (it's curious that the compilation warning have been ignored...) Yes, need to be more careful.

Re: KVM crashes when using certain USB device

2009-07-06 Thread G
On Sat, Jul 4, 2009 at 12:01 PM, Gtjmad...@gmail.com wrote: On Fri, Jul 3, 2009 at 6:18 PM, Jim Parisj...@jtan.com wrote: G wrote: Hello again, I've continued my attempts to get the HASP dongle working, but with no success: [snip] Anyone got any ideas what I might try out to find the

Re: R/W HG memory mappings with kvm?

2009-07-06 Thread Avi Kivity
On 07/06/2009 01:41 AM, Stephen Donnelly wrote: I am looking at how to do memory mapped IO between host and guests under kvm. I expect to use the PCI emulation layer to present a PCI device to the guest. I see virtio_pci uses cpu_physical_memory_map() which provides either read or write

Re: [PATCH] qemu-kvm: Fix warning with DEVICE_ASSIGNMENT disabled

2009-07-06 Thread Avi Kivity
On 07/04/2009 12:00 PM, Jan Kiszka wrote: Applied, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH] qemu-kvm: Fix kvm-disabled build

2009-07-06 Thread Avi Kivity
On 07/04/2009 12:03 PM, Jan Kiszka wrote: This addresses all issues that currently block building qemu-kvm with kvm support switched off. It's a pragmatic approach as more cleanups are actually required /wrt {kvm,libkvm,qemu-kvm}.h. Applied, thanks. -- error compiling committee.c: too

Re: KVM: PIT: fix kpit_elapsed division by zero

2009-07-06 Thread Avi Kivity
On 07/03/2009 02:02 AM, Marcelo Tosatti wrote: Fix division by zero triggered by latch count command on uninitialized counter. Applied, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a

Re: [PATCH] KVM: x86: Fix KVM_GET_MSR_INDEX_LIST

2009-07-06 Thread Avi Kivity
On 07/02/2009 10:45 PM, Jan Kiszka wrote: So far, KVM copied the emulated_msrs (only MSR_IA32_MISC_ENABLE) to a wrong address in user space due to broken pointer arithmetic. This caused subtle corruption up there (missing MSR_IA32_MISC_ENABLE had probably no practical relevance). Moreover, the

Re: [PATCH] qemu-kvm: Work around borken MSR_GET_INDEX_LIST

2009-07-06 Thread Avi Kivity
On 07/02/2009 10:50 PM, Jan Kiszka wrote: Allocate enough memory for KVM_GET_MSR_INDEX_LIST as older kernels shot far beyond their limits, corrupting user space memory. Applied, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send

Re: guest gettimeofday behavior

2009-07-06 Thread Eran Rom
Eran Rom eranr at il.ibm.com writes: Avi Kivity avi at redhat.com writes: 2.6.27 has kvmclock. Thanks a lot! Will try the kvmclock Eran Still getting a misbehaving clock: guest uses kvmclock with kernel 2.6.27 host kernel is 2.6.27 with kvm-qemu-87 kvm-kmod-87 doing: now =

bridge + KVM performance

2009-07-06 Thread Martin Petermann
I'm currently looking at the network performance between two KVM guests running on the same host. The host system is applied with two quad core Xeons each 3GHz and 32G memory. 2G memory is assigned to the guests, enough that swap is not used. I'm using RHEL 5.3 (2.6.18-128.1.10.el5) on all the

Re: [DRBD-user] kvm, drbd, elevator, rotational - quite an interesting co-operation

2009-07-06 Thread Lars Ellenberg
On Fri, Jul 03, 2009 at 05:59:05PM -0500, Javier Guerra wrote: On Fri, Jul 3, 2009 at 9:00 AM, Lars Ellenberglars.ellenb...@linbit.com wrote: the elevator of the lower level block device (in this case, the kvm virtual block device, or the host real block device) so, the original post

[ kvm-Bugs-2817367 ] Network doesn't work anymore switching from kvm-86 to kvm-87

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

kvm segfault when starting a 32bit linux kernel

2009-07-06 Thread Christoph Hellwig
kvm built with: ./configure \ --target-list=i386-softmmu \ --kerneldir=/home/hch/work/linux-2.6 \ --prefix=/opt/qemu and then started as /opt/qemu/bin/qemu -m 1000 -kernel $kernel \ -drive file=/dev/vg00/qemu-root,if=virtio,media=disk \ -drive

netperf in autotest

2009-07-06 Thread sudhir kumar
Hi, In order to include netperf tests under kvm guests run I have been trying to run netperf testsuit in autotest but I am getting barrier failures. I want to understand the philosophy of implementation of the autotest wrappers, so thought of quickly asking it on the list. Here are my questions:

Re: bridge + KVM performance

2009-07-06 Thread Dor Laor
On 07/06/2009 12:34 PM, Martin Petermann wrote: I'm currently looking at the network performance between two KVM guests running on the same host. The host system is applied with two quad core Xeons each 3GHz and 32G memory. 2G memory is assigned to the guests, enough that swap is not used. I'm

How to mount the qcow2.img image?

2009-07-06 Thread John Wong
Can i mount the qcow2.img image on my linux-2.6.30/amd64 host? the qcow2.img is winxp(ntfs) qcow2.img image. Thank you. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH] add trace points in irqchip code

2009-07-06 Thread Gleb Natapov
Add tracepoint in msi/ioapic/pic set_irq() functions, in IPI sending and in the point where IRQ is placed into apic's IRR. Signed-off-by: Gleb Natapov g...@redhat.com diff --git a/arch/x86/kvm/i8259.c b/arch/x86/kvm/i8259.c index 1d1bb75..e4bcbdd 100644 --- a/arch/x86/kvm/i8259.c +++

Re: How to mount the qcow2.img image?

2009-07-06 Thread Charles Duffy
John Wong wrote: Can i mount the qcow2.img image on my linux-2.6.30/amd64 host? the qcow2.img is winxp(ntfs) qcow2.img image. See qemu-nbd, nbd-client and kpartx. For simpler manipulations, however, you might find Guestfish (or other libguestfs components) an appropriate tool. -- To

Re: kvm, drbd, elevator, rotational - quite an interesting co-operation

2009-07-06 Thread Michael Tokarev
Javier Guerra wrote: On Thu, Jul 2, 2009 at 2:55 PM, Michael Tokarevm...@tls.msk.ru wrote: kvm: i/o threads - should there be a way to control the amount of threads? With default workload generated by drbd on secondary node having less thread makes more sense. +1 on this. it seems

EOI acceleration for high bandwidth IO

2009-07-06 Thread Dong, Eddie
EOI is one of key VM Exit at high bandwidth IO such as VT-d with 10Gb/s NIC. This patch accelerate guest EOI emulation utilizing HW VM Exit information. Signed-off-by: Eddie Dong eddie.d...@intel.com diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index

Re: EOI acceleration for high bandwidth IO

2009-07-06 Thread Avi Kivity
On 07/06/2009 04:42 PM, Dong, Eddie wrote: EOI is one of key VM Exit at high bandwidth IO such as VT-d with 10Gb/s NIC. This patch accelerate guest EOI emulation utilizing HW VM Exit information. Won't this fail if the guest uses STOSD to issue the EOI? (of course, no

Re: kvm, drbd, elevator, rotational - quite an interesting co-operation

2009-07-06 Thread Javier Guerra
On Mon, Jul 6, 2009 at 8:28 AM, Michael Tokarevm...@tls.msk.ru wrote: Javier Guerra wrote: it also bothers me because when i have a couple of moderately disk-heavy VMs, the load average numbers skyrockets.  that's because each blocked thread counts as 1 on this figure, even if they're all

Re: [PATCH -tip -v10 5/7] x86: add pt_regs register and stack access APIs

2009-07-06 Thread Andi Kleen
Masami Hiramatsu mhira...@redhat.com writes: Add following APIs for accessing registers and stack entries from pt_regs. You forgot to state who calls these functions/why are they added? Who only has strings for registers? I can see the point of having a function for nth argument though, that's

[PATCH][RESEND] Add kvm_set_boot_cpu_id() API.

2009-07-06 Thread Gleb Natapov
Old kernel assumed that apic id of a boot cpus is zero, recent kernels have an IOCTL to configure BSP's apic id. The patch adds API function to use this capability. The BSP apic id is set to zero (now explicitly) since QEMU/BIOS not ready yet to take full advantage of the new API. diff --git

RE: EOI acceleration for high bandwidth IO

2009-07-06 Thread Dong, Eddie
Avi Kivity wrote: On 07/06/2009 04:42 PM, Dong, Eddie wrote: EOI is one of key VM Exit at high bandwidth IO such as VT-d with 10Gb/s NIC. This patch accelerate guest EOI emulation utilizing HW VM Exit information. Won't this fail if the guest uses STOSD to issue the EOI?

Re: EOI acceleration for high bandwidth IO

2009-07-06 Thread Avi Kivity
On 07/06/2009 05:34 PM, Dong, Eddie wrote: Avi Kivity wrote: On 07/06/2009 04:42 PM, Dong, Eddie wrote: EOI is one of key VM Exit at high bandwidth IO such as VT-d with 10Gb/s NIC. This patch accelerate guest EOI emulation utilizing HW VM Exit information.

Re: [KVM PATCH v9 0/5] irqfd fixes and enhancements

2009-07-06 Thread Gregory Haskins
Avi Kivity wrote: On 07/02/2009 06:50 PM, Avi Kivity wrote: On 07/02/2009 06:37 PM, Gregory Haskins wrote: (Applies to kvm.git/master:1f9050fd) The following is the latest attempt to fix the races in irqfd/eventfd, as well as restore DEASSIGN support. For more details, please read the

Re: [PATCH] KVM test: Fixing kvm release tag detection

2009-07-06 Thread Lucas Meneghel Rodrigues
On Sun, 2009-07-05 at 21:57 -0300, Lucas Meneghel Rodrigues wrote: The recent sourceforge facelift/changes broke our ability to determine KVM release tags. This patch fixes up things. Applied. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/kvm_utils.py |6

Re: Weird Windows license issue

2009-07-06 Thread Michael Jinks
Sorry for the slow response, mail sorting issue. No, this is a license our team purchased for doing large numbers of public lab installations. I've used it successfully with the same ISO image I'm trying now. Only difference (that I know of) is that my previous installations were on VMware and

Re: Weird Windows license issue

2009-07-06 Thread Dor Laor
On 07/06/2009 06:33 PM, Michael Jinks wrote: Sorry for the slow response, mail sorting issue. No, this is a license our team purchased for doing large numbers of public lab installations. I've used it successfully with the same ISO image I'm trying now. Only difference (that I know of) is that

Re: [KVM PATCH v9 5/5] KVM: create irqfd-cleanup-wq on demand

2009-07-06 Thread Michael S. Tsirkin
On Thu, Jul 02, 2009 at 11:38:22AM -0400, Gregory Haskins wrote: We currently create this wq on module_init, which may be wasteful if the host never creates a guest that uses irqfd. This patch changes the algorithm so that the workqueue is only created when at least one guest is using irqfd.

Re: [KVM PATCH v9 5/5] KVM: create irqfd-cleanup-wq on demand

2009-07-06 Thread Gregory Haskins
Michael S. Tsirkin wrote: On Thu, Jul 02, 2009 at 11:38:22AM -0400, Gregory Haskins wrote: We currently create this wq on module_init, which may be wasteful if the host never creates a guest that uses irqfd. This patch changes the algorithm so that the workqueue is only created when at

Re: [KVM PATCH v9 0/5] irqfd fixes and enhancements

2009-07-06 Thread Michael S. Tsirkin
On Mon, Jul 06, 2009 at 10:56:02AM -0400, Gregory Haskins wrote: Avi Kivity wrote: On 07/02/2009 06:50 PM, Avi Kivity wrote: On 07/02/2009 06:37 PM, Gregory Haskins wrote: (Applies to kvm.git/master:1f9050fd) The following is the latest attempt to fix the races in irqfd/eventfd, as

Re: [KVM PATCH v9 5/5] KVM: create irqfd-cleanup-wq on demand

2009-07-06 Thread Michael S. Tsirkin
On Mon, Jul 06, 2009 at 12:03:28PM -0400, Gregory Haskins wrote: Michael S. Tsirkin wrote: On Thu, Jul 02, 2009 at 11:38:22AM -0400, Gregory Haskins wrote: We currently create this wq on module_init, which may be wasteful if the host never creates a guest that uses irqfd. This patch

Re: [KVM PATCH v9 5/5] KVM: create irqfd-cleanup-wq on demand

2009-07-06 Thread Gregory Haskins
Michael S. Tsirkin wrote: On Mon, Jul 06, 2009 at 12:03:28PM -0400, Gregory Haskins wrote: Michael S. Tsirkin wrote: On Thu, Jul 02, 2009 at 11:38:22AM -0400, Gregory Haskins wrote: We currently create this wq on module_init, which may be wasteful if the host never

Re: [KVM PATCH v9 0/5] irqfd fixes and enhancements

2009-07-06 Thread Gregory Haskins
Michael S. Tsirkin wrote: On Mon, Jul 06, 2009 at 10:56:02AM -0400, Gregory Haskins wrote: Avi Kivity wrote: On 07/02/2009 06:50 PM, Avi Kivity wrote: On 07/02/2009 06:37 PM, Gregory Haskins wrote: (Applies to kvm.git/master:1f9050fd) The following is the latest

Re: [KVM PATCH v9 0/5] irqfd fixes and enhancements

2009-07-06 Thread Michael S. Tsirkin
On Mon, Jul 06, 2009 at 12:41:59PM -0400, Gregory Haskins wrote: Michael S. Tsirkin wrote: On Mon, Jul 06, 2009 at 10:56:02AM -0400, Gregory Haskins wrote: Avi Kivity wrote: On 07/02/2009 06:50 PM, Avi Kivity wrote: On 07/02/2009 06:37 PM, Gregory Haskins wrote:

Re: [KVM PATCH v9 5/5] KVM: create irqfd-cleanup-wq on demand

2009-07-06 Thread Michael S. Tsirkin
On Mon, Jul 06, 2009 at 12:32:42PM -0400, Gregory Haskins wrote: For the record, I would have rather just used my originally proposed slow-work thread instead of all this ;) Or just keep the idle thread around, it's not a big deal. -- MST -- To unsubscribe from this list: send the line

Re: netperf in autotest

2009-07-06 Thread Lucas Meneghel Rodrigues
On Mon, 2009-07-06 at 16:44 +0530, sudhir kumar wrote: Hi, In order to include netperf tests under kvm guests run I have been trying to run netperf testsuit in autotest but I am getting barrier failures. I want to understand the philosophy of implementation of the autotest wrappers, so

Re: netperf in autotest

2009-07-06 Thread Martin Bligh
On Mon, Jul 6, 2009 at 4:14 AM, sudhir kumarsmalik...@gmail.com wrote: Hi, In order to include netperf tests under kvm guests run I have been trying to run netperf testsuit in autotest but I am getting barrier failures. I want to understand the philosophy of implementation of the autotest

Re: [PATCHv5 0/5] qemu misc save/load fixes

2009-07-06 Thread Glauber Costa
On Sun, Jul 05, 2009 at 03:58:09PM +0300, Michael S. Tsirkin wrote: Anthony, please commit the following patches that fix save/load issues with qemu.git They all seem fine to me. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to

Re: [KVM PATCH v9 5/5] KVM: create irqfd-cleanup-wq on demand

2009-07-06 Thread Gregory Haskins
Michael S. Tsirkin wrote: On Mon, Jul 06, 2009 at 12:32:42PM -0400, Gregory Haskins wrote: For the record, I would have rather just used my originally proposed slow-work thread instead of all this ;) Or just keep the idle thread around, it's not a big deal. If everyone is fine

Re: [Autotest] [AUTOTEST] [PATCH 1/2] Add latest LTP test in autotest

2009-07-06 Thread Martin Bligh
Issues: LTP has a history of some of the testcases getting broken. Right, that's always the concern with doing this. Anyways that has nothing to worry about with respect to autotest. One of the known issue is broken memory controller issue with latest kernels(cgroups and memory resource

Re: [KVM PATCH v9 0/5] irqfd fixes and enhancements

2009-07-06 Thread Gregory Haskins
Michael S. Tsirkin wrote: On Mon, Jul 06, 2009 at 12:41:59PM -0400, Gregory Haskins wrote: Michael S. Tsirkin wrote: wouldn't it be cleaner to error out in the for each loop if we don't find an entry to deactivate? Might be helpful for apps to get an error if they

Re: [PATCH -tip -v10 5/7] x86: add pt_regs register and stack access APIs

2009-07-06 Thread Masami Hiramatsu
Andi Kleen wrote: Masami Hiramatsu mhira...@redhat.com writes: Add following APIs for accessing registers and stack entries from pt_regs. You forgot to state who calls these functions/why are they added? Who only has strings for registers? Oh, yes. This patch is needed for kprobes based

Re: bridge + KVM performance

2009-07-06 Thread Martin Petermann
On Mon, 2009-07-06 at 14:53 +0300, Dor Laor wrote: On 07/06/2009 12:34 PM, Martin Petermann wrote: I'm currently looking at the network performance between two KVM guests running on the same host. The host system is applied with two quad core Xeons each 3GHz and 32G memory. 2G memory is

[patch 0/8] RFC: in-kernel timer emulation changes

2009-07-06 Thread Marcelo Tosatti
This still needs to survive kvm-autotest, posting early for comments. It replaces hrtimer based emulation with ktime_t comparisons on guest entry (avoids host load when guests are scheduled out, removes a spinlock acquision on entry (i8254.c's inject_lock), and makes future improvements easier).

[patch 6/8] KVM: timer: optimize next_timer_event and vcpu_arm_exit

2009-07-06 Thread Marcelo Tosatti
Which reduces the added entry/exit overhead down to ~= 30 cycles. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: kvm-new/arch/x86/kvm/timer.c === --- kvm-new.orig/arch/x86/kvm/timer.c +++ kvm-new/arch/x86/kvm/timer.c @@

[patch 4/8] KVM: x86: replace hrtimer based timer emulation

2009-07-06 Thread Marcelo Tosatti
Replace hrtimer based timer emulation with host timebase (ktime_t) comparisons on guest entry. This avoids host load when guests are scheduled out, removes a spinlock acquision on entry (i8254.c's inject_lock), and makes future improvements easier. Signed-off-by: Marcelo Tosatti

[patch 7/8] KVM: PIT: removed unused code

2009-07-06 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: kvm-new/arch/x86/kvm/i8254.c === --- kvm-new.orig/arch/x86/kvm/i8254.c +++ kvm-new/arch/x86/kvm/i8254.c @@ -228,10 +228,7 @@ static void kvm_pit_ack_irq(struct kvm_i {

[patch 5/8] KVM: timer: honor noreinject tunable

2009-07-06 Thread Marcelo Tosatti
Skip events which have been missed by the guest. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: kvm-new/arch/x86/kvm/timer.c === --- kvm-new.orig/arch/x86/kvm/timer.c +++ kvm-new/arch/x86/kvm/timer.c @@ -58,6 +58,21 @@

[patch 1/8] KVM: timer interface unification

2009-07-06 Thread Marcelo Tosatti
Hide details of timer emulation behind an interface, and unify the hrtimer based implementation. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: kvm-new/arch/x86/kvm/i8254.c === --- kvm-new.orig/arch/x86/kvm/i8254.c +++

Re: [PATCH -tip -v10 5/7] x86: add pt_regs register and stack access APIs

2009-07-06 Thread Andi Kleen
On Mon, Jul 06, 2009 at 03:28:02PM -0400, Masami Hiramatsu wrote: I'm not so sure about your idea. Would you mean below code? int offs_table[NR_REGPARMS] = { not REGPARMS of course [0] = offsetof(struct pt_regs, di), ... }; if (n NR_REGPARMS) return *((unsigned long

kvm guest for 486 sx

2009-07-06 Thread Jerry Geis
I wish to run as a guest a 486 SX equivalent is there an option to disable the floating point support? Is it possible to do this? Thanks, Jerry -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH v3 1/5] qemu-kvm.c memory cleanup

2009-07-06 Thread Glauber Costa
Now that libkvm is merged into this file, there is a lot of things we don't need. kvm_create_phys_mem() is only used by user/ files, and so can be removed from this implementation. kvm_cpu_register_physical_memory() morphs into kvm_set_phys_mem(), and uses qemu types. Signed-off-by: Glauber

[PATCH v3 0/5] Further qemu-kvm cleanups

2009-07-06 Thread Glauber Costa
Now that I've definitely flushed my backlog, here's a resend of the last cleanup series I sent. It fixes the segfault avi noticed. -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH v3 2/5] cleanup mmio coalescing functions

2009-07-06 Thread Glauber Costa
remove wrappers that existed only due to qemu/libkvm separation. Use qemu types for function definitions. Signed-off-by: Glauber Costa glom...@redhat.com --- qemu-kvm.c | 27 --- qemu-kvm.h |5 - 2 files changed, 4 insertions(+), 28 deletions(-) diff --git

[PATCH v3 3/5] kvm finalize

2009-07-06 Thread Glauber Costa
Signed-off-by: Glauber Costa glom...@redhat.com --- qemu-kvm.c | 11 +++ qemu-kvm.h |1 - 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index e4af96e..3b5326e 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -2262,12 +2262,12 @@ int

[PATCH v3 5/5] remove wrappers around ex-libkvm functions

2009-07-06 Thread Glauber Costa
Some functions in qemu existed only to call libkvm counterparts. Merge some of them Signed-off-by: Glauber Costa glom...@redhat.com --- libkvm-all.h |6 ++-- qemu-kvm.c | 75 ++ 2 files changed, 21 insertions(+), 60 deletions(-)

[PATCH v3 4/5] remove callbacks structure

2009-07-06 Thread Glauber Costa
The purpose of that was only to allow the user of libkvm to register functions pointers that corresponded to possible actions. We don't need that anymore. Signed-off-by: Glauber Costa glom...@redhat.com --- libkvm-all.h |4 +- qemu-kvm-x86.c | 16 +-- qemu-kvm.c | 370

Re: [DRBD-user] kvm, drbd, elevator, rotational - quite an interesting co-operation

2009-07-06 Thread Carson Gaspar
Michael Tokarev wrote: To be fair, I can't construct an example when deeper queue may be bad (not counting bad NCQ implementations). Increased latency for new requests. Larger queue depths improve throughput at the expense of latency. -- Carson -- To unsubscribe from this list: send the

[KVM PATCH v9 1/2] KVM: make io_bus interface more robust

2009-07-06 Thread Gregory Haskins
Today kvm_io_bus_regsiter_dev() returns void and will internally BUG_ON if it fails. We want to create dynamic MMIO/PIO entries driven from userspace later in the series, so we need to enhance the code to be more robust with the following changes: 1) Add a return value to the registration

[KVM PATCH v9 2/2] KVM: add iosignalfd support

2009-07-06 Thread Gregory Haskins
iosignalfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a guest. Host userspace can register any arbitrary IO address with a corresponding eventfd and then pass the eventfd to a specific end-point of interest for handling. Normal IO requires a

[KVM PATCH v9 0/2] iosignalfd

2009-07-06 Thread Gregory Haskins
(Applies to kvm.git/master:c5b13264e) This is v9 of the series. For more details, please see the header to patch 2/2. This series has been tested against the kvm-eventfd unit test, and appears to be functioning properly. You can download this test here:

[PATCH -tip -v10 5/7] x86: add pt_regs register and stack access APIs

2009-07-06 Thread Masami Hiramatsu
Andi Kleen wrote: On Mon, Jul 06, 2009 at 03:28:02PM -0400, Masami Hiramatsu wrote: I'm not so sure about your idea. Would you mean below code? int offs_table[NR_REGPARMS] = { not REGPARMS of course [0] = offsetof(struct pt_regs, di), ... }; if (n NR_REGPARMS) return

Re: [PATCH -v6] QEMU: MCE: Add MCE simulation to qemu/tcg

2009-07-06 Thread Huang Ying
Hi, Anthony, On Wed, 2009-07-01 at 02:12 +0800, Anthony Liguori wrote: Hi Huang, Huang Ying wrote: - MCE features are initialized when VCPU is intialized according to CPUID. - A monitor command mce is added to inject a MCE. - A new interrupt mask: CPU_INTERRUPT_MCE is added to inject

kvm-87 fails to compile under uClibc

2009-07-06 Thread Cristi Magherusan
Hi there, I'm trying to compile kvm using uClibc instead of glibc. Besides the fact that kvm needs --extra-ldflags=-lrt (otherwise there are some missing symbols), there's an error caused by another missing symbol that I was unable to fix yet. It's about ioperm, and this is the error I get:

Re: kvm-87 fails to compile under uClibc

2009-07-06 Thread Mike Frysinger
On Monday 06 July 2009 22:42:46 Cristi Magherusan wrote: /home/cristi/devel/avatt/buildroot/build_i586/kvm-87/qemu-kvm-x86.c:1538: undefined reference to `ioperm' ioperm is enabled only if your kernel headers declare __NR_ioperm. if it isnt enabled in your C library, check your headers. -mike

Re: [PATCH 0/2] RFC use dirty bit for page dirty tracking (v2)

2009-07-06 Thread Ryan Harper
* Avi Kivity a...@redhat.com [2009-06-15 10:19]: On 06/15/2009 05:58 PM, Ryan Harper wrote: * Izik Eidusiei...@redhat.com [2009-06-10 11:25]: RFC move to dirty bit tracking using the page table dirty bit (v2) Where is this series at? Did you want me to test one of the ept

Re: [PATCH 0/2] RFC use dirty bit for page dirty tracking (v2)

2009-07-06 Thread Avi Kivity
On 07/07/2009 06:32 AM, Ryan Harper wrote: * Avi Kivitya...@redhat.com [2009-06-15 10:19]: On 06/15/2009 05:58 PM, Ryan Harper wrote: * Izik Eidusiei...@redhat.com [2009-06-10 11:25]: RFC move to dirty bit tracking using the page table dirty bit (v2) Where

Re: [KVM PATCH v9 5/5] KVM: create irqfd-cleanup-wq on demand

2009-07-06 Thread Avi Kivity
On 07/06/2009 09:28 PM, Gregory Haskins wrote: Michael S. Tsirkin wrote: On Mon, Jul 06, 2009 at 12:32:42PM -0400, Gregory Haskins wrote: For the record, I would have rather just used my originally proposed slow-work thread instead of all this ;) Or just keep the idle

[ kvm-Bugs-2817367 ] Network doesn't work anymore switching from kvm-86 to kvm-87

2009-07-06 Thread SourceForge.net
Bugs item #2817367, was opened at 2009-07-06 07:33 Message generated for change (Comment added) made by djgera You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2817367group_id=180599 Please note that this message will contain a full copy of the comment