Re: [kvm-devel] Extboot Option ROM rewritten in C - v3

2008-04-17 Thread H. Peter Anvin
Nguyen Anh Quynh wrote: This patch replaces the current assembly code of Extboot option rom with new C code. Patch is against kvm-66. This version returns an error code in case int 13 handler cannot handle a requested function. Signed-off-by: Nguyen Anh Quynh [EMAIL PROTECTED] +

Re: [kvm-devel] Extboot Option ROM rewritten in C - v3

2008-04-17 Thread H. Peter Anvin
+ .globl linux_boot +linux_boot: + cli + cld + mov $0x9000, %ax + mov %ax, %ds + mov %ax, %es + mov %ax, %fs + mov %ax, %gs + mov %ax, %ss + mov $0x8ffe, %sp + ljmp $0x9000 + 0x20, $0 The hard use of segment 9000 is really highly unfortunate

Re: [kvm-devel] Extboot Option ROM rewritten in C - v3

2008-04-17 Thread Carlo Marcelo Arenas Belon
On Thu, Apr 17, 2008 at 10:30:27AM +0900, Nguyen Anh Quynh wrote: +++ b/extboot/farvar.h @@ -0,0 +1,113 @@ +// Code to access multiple segments within gcc. +// +// Copyright (C) 2008 Kevin O'Connor [EMAIL PROTECTED] +// +// This file may be distributed under the terms of the GNU GPLv3 license.

Re: [kvm-devel] [PATCH 1/2] kvm-s390: provide get/set_mp_state stubs to fix compile error

2008-04-17 Thread Avi Kivity
Marcelo Tosatti wrote: On Wed, Apr 16, 2008 at 11:21:05AM -0500, Hollis Blanchard wrote: By the way Marcelo, it would be polite to provide these stubs yourself to avoid breaking the build on other architectures. Indeed, should have been more careful. And I should have caught

Re: [kvm-devel] [PATCH 0/2] kvm-s390 fixes

2008-04-17 Thread Avi Kivity
Carsten Otte wrote: Hi Avi, these two fixes repair two things in kvm-s390: - #1 makes kvm complile again on s390 after a common code change - #2 changes our virtio interrupt definitions to the values that will be reserved for kvm use in s390 architecture I'd be great if both could make

Re: [kvm-devel] [PATCH 2/2] virtio-s390: Change virtio interrupt definitions to follow architecture

2008-04-17 Thread Avi Kivity
Carsten Otte wrote: From: Christian Borntraeger [EMAIL PROTECTED] This patch changes the interrupt defintions for virtio on s390. We now use the extint number 0x2603, which is used as a host interrupt already by z/VM for pfault and dasd_diag. We will use subcode 0x0D to distinguish virtio

[kvm-devel] [PATCH 01/45] s390: fixup for kvm

2008-04-17 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] Temporary commit, should appear in mainline shortly. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/s390/lib/uaccess_pt.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/s390/lib/uaccess_pt.c b/arch/s390/lib/uaccess_pt.c

[kvm-devel] [PATCH 04/45] s390: KVM preparation: address of the 64bit extint parm in lowcore

2008-04-17 Thread Avi Kivity
From: Christian Borntraeger [EMAIL PROTECTED] The address 0x11b8 is used by z/VM for pfault and diag 250 I/O to provide a 64 bit extint parameter. virtio uses the same address, so its time to update the lowcore structure. Acked-by: Martin Schwidefsky [EMAIL PROTECTED] Signed-off-by: Christian

[kvm-devel] [PATCH 02/45] s390: KVM preparation: provide hook to enable pgstes in user pagetable

2008-04-17 Thread Avi Kivity
From: Martin Schwidefsky [EMAIL PROTECTED] From: Carsten Otte [EMAIL PROTECTED] The SIE instruction on s390 uses the 2nd half of the page table page to virtualize the storage keys of a guest. This patch offers the s390_enable_sie function, which reorganizes the page tables of a single-threaded

[kvm-devel] [PATCH 13/45] KVM: s390: API documentation

2008-04-17 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] This patch adds Documentation/s390/kvm.txt, which describes specifics of kvm's user interface that are unique to s390 architecture. Signed-off-by: Carsten Otte [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- Documentation/s390/kvm.txt |

[kvm-devel] [PATCH 12/45] KVM: s390: add kvm to kconfig on s390

2008-04-17 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] From: Christian Borntraeger [EMAIL PROTECTED] This patch adds the virtualization submenu and the kvm option to the kernel config. It also defines HAVE_KVM for 64bit kernels. Acked-by: Martin Schwidefsky [EMAIL PROTECTED] Signed-off-by: Christian Borntraeger

[kvm-devel] [PATCH 09/45] KVM: s390: intercepts for privileged instructions

2008-04-17 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] From: Christian Borntraeger [EMAIL PROTECTED] This patch introduces in-kernel handling of some intercepts for privileged instructions: handle_set_prefix()sets the prefix register of the local cpu handle_store_prefix() stores the content of the

[kvm-devel] [PATCH 05/45] s390: KVM preparation: split sysinfo defintions for kvm use

2008-04-17 Thread Avi Kivity
From: Christian Borntraeger [EMAIL PROTECTED] drivers/s390/sysinfo.c uses the store system information intruction to query the system about information of the machine, the LPAR and additional hypervisors. KVM has to implement the host part for this instruction. To avoid code duplication, this

[kvm-devel] [PATCH 11/45] KVM: s390: intercepts for diagnose instructions

2008-04-17 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] From: Christian Borntraeger [EMAIL PROTECTED] This patch introduces interpretation of some diagnose instruction intercepts. Diagnose is our classic architected way of doing a hypercall. This patch features the following diagnose codes: - vm storage size, that

[kvm-devel] [PATCH 07/45] KVM: s390: sie intercept handling

2008-04-17 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] From: Christian Borntraeger [EMAIL PROTECTED] This path introduces handling of sie intercepts in three flavors: Intercepts are either handled completely in-kernel by kvm_handle_sie_intercept(), or passed to userspace with corresponding data in struct kvm_run

[kvm-devel] [PATCH 10/45] KVM: s390: interprocessor communication via sigp

2008-04-17 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] From: Christian Borntraeger [EMAIL PROTECTED] This patch introduces in-kernel handling of _some_ sigp interprocessor signals (similar to ipi). kvm_s390_handle_sigp() decodes the sigp instruction and calls individual handlers depending on the operation

[kvm-devel] [PATCH 25/45] KVM: s390: Fix incorrect return value

2008-04-17 Thread Avi Kivity
From: Heiko Carstens [EMAIL PROTECTED] kvm_arch_vcpu_ioctl_run currently incorrectly always returns 0. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Carsten Otte [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/s390/kvm/kvm-s390.c |2 +- 1 files

[kvm-devel] [PATCH 29/45] ia64: Implement smp_call_function_mask for ia64

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] This interface provides more flexible functionality for smp infrastructure. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kernel/smp.c | 82

[kvm-devel] [PATCH 35/45] KVM: ia64: Add TLB virtulization support

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] vtlb.c includes tlb/VHPT virtulization. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/vtlb.c | 636 ++

[kvm-devel] [PATCH 27/45] KVM: s390: Improve pgste accesses

2008-04-17 Thread Avi Kivity
From: Heiko Carstens [EMAIL PROTECTED] There is no need to use interlocked updates when the rcp lock is held. Therefore the simple bitops variants can be used. This should improve performance. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Carsten Otte [EMAIL PROTECTED]

[kvm-devel] [PATCH 22/45] KVM: add vm refcounting

2008-04-17 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] the main purpose of adding this functions is the abilaty to release the spinlock that protect the kvm list while still be able to do operations on a specific kvm in a safe way. Signed-off-by: Izik Eidus [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL

[kvm-devel] [PATCH 14/45] KVM: s390: update maintainers

2008-04-17 Thread Avi Kivity
From: Christian Borntraeger [EMAIL PROTECTED] This patch adds an entry for kvm on s390 to the MAINTAINERS file :-). We intend to push all patches regarding this via Avi's kvm.git. Signed-off-by: Christian Borntraeger [EMAIL PROTECTED] Signed-off-by: Carsten Otte [EMAIL PROTECTED] Signed-off-by:

[kvm-devel] [PATCH 44/45] KVM: ia64: Enable kvm build for ia64

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] Update the related Makefile and KConfig for kvm build Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/Kconfig |3 ++ arch/ia64/Makefile |1 + arch/ia64/kvm/Kconfig | 46

[kvm-devel] [PATCH 39/45] KVM: ia64: Add processor virtulization support

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] vcpu.c provides processor virtualization logic for kvm. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/vcpu.c | 2163

[kvm-devel] [PATCH 37/45] KVM: ia64: Add mmio decoder for kvm/ia64

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] mmio.c includes mmio decoder, and related mmio logics. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/mmio.c | 341

[kvm-devel] [PATCH 31/45] KVM: ia64: Add header files for kvm/ia64

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] Three header files are added: asm-ia64/kvm.h asm-ia64/kvm_host.h asm-ia64/kvm_para.h Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- include/asm-ia64/kvm.h | 205 +-

[kvm-devel] [PATCH 40/45] KVM: ia64: Add optimization for some virtulization faults

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] optvfault.S Add optimization for some performance-critical virtualization faults. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/optvfault.S | 918

[kvm-devel] [PATCH 30/45] KVM: ia64: Prepare some structure and routines for kvm use

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] Register structures are defined per SDM. Add three small routines for kernel: ia64_ttag, ia64_loadrs, ia64_flushrs Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- include/asm-ia64/gcc_intrin.h | 12

[kvm-devel] [PATCH 26/45] KVM: s390: rename stfl to kvm_stfl

2008-04-17 Thread Avi Kivity
From: Heiko Carstens [EMAIL PROTECTED] Temporarily rename this function to avoid merge conflicts and/or dependencies. This function will be removed as soon as git-s390 and kvm.git are finally upstream. Signed-off-by: Heiko Carstens [EMAIL PROTECTED] Signed-off-by: Carsten Otte [EMAIL PROTECTED]

[kvm-devel] [PATCH 32/45] KVM: ia64: Add kvm arch-specific core code for kvm/ia64

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] kvm_ia64.c is created to handle kvm ia64-specific core logic. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/kvm-ia64.c | 1789 ++ 1 files changed,

Re: [kvm-devel] [PATCH 2/2] virtio-s390: Change virtio interrupt definitions to follow architectu re

2008-04-17 Thread Christian Borntraeger
Am Donnerstag, 17. April 2008 schrieb Avi Kivity: Don't you need to change KVM_S390_INT_VIRTIO as well? Good catch. It works without that change, but its cleaner to change that. We can also remove another fixme, as the host interrupt uses the same control register bit 9. Can you merge this

Re: [kvm-devel] [PATCH 2/2] virtio-s390: Change virtio interrupt definitions to follow architecture

2008-04-17 Thread Avi Kivity
Christian Borntraeger wrote: Am Donnerstag, 17. April 2008 schrieb Avi Kivity: Don't you need to change KVM_S390_INT_VIRTIO as well? Good catch. It works without that change, but its cleaner to change that. We can also remove another fixme, as the host interrupt uses the same

[kvm-devel] [PATCH 21/45] KVM: function declaration parameter name cleanup

2008-04-17 Thread Avi Kivity
From: Joerg Roedel [EMAIL PROTECTED] The kvm_host.h file for x86 declares the functions kvm_set_cr[0348]. In the header file their second parameter is named cr0 in all cases. This patch renames the parameters so that they match the function name. Signed-off-by: Joerg Roedel [EMAIL PROTECTED]

[kvm-devel] [PATCH 42/45] KVM: ia64: Add guest interruption injection support

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] process.c mainly handle interruption injection, and some faults handling. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/process.c | 970

[kvm-devel] [PATCH 15/45] s390: KVM guest: detect when running on kvm

2008-04-17 Thread Avi Kivity
From: Christian Borntraeger [EMAIL PROTECTED] From: Carsten Otte [EMAIL PROTECTED] This patch adds functionality to detect if the kernel runs under the KVM hypervisor. A macro MACHINE_IS_KVM is exported for device drivers. This allows drivers to skip device detection if the systems runs

[kvm-devel] [PATCH 43/45] KVM: ia64: Add kvm sal/pal virtulization support

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] Some sal/pal calls would be traped to kvm for virtulization from guest firmware. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/kvm_fw.c | 500 1

[kvm-devel] [PATCH 19/45] KVM: MMU: allow the vm to shrink the kvm mmu shadow caches

2008-04-17 Thread Avi Kivity
From: Izik Eidus [EMAIL PROTECTED] Allow the Linux memory manager to reclaim memory in the kvm shadow cache. Signed-off-by: Izik Eidus [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/x86/kvm/mmu.c | 58 ++- 1 files

[kvm-devel] [PATCH 06/45] KVM: s390: arch backend for the kvm kernel module

2008-04-17 Thread Avi Kivity
From: Carsten Otte [EMAIL PROTECTED] From: Christian Borntraeger [EMAIL PROTECTED] From: Heiko Carstens [EMAIL PROTECTED] This patch contains the port of Qumranet's kvm kernel module to IBM zSeries (aka s390x, mainframe) architecture. It uses the mainframe's virtualization instruction SIE to

[kvm-devel] [PATCH 45/45] KVM: ia64: Add a guide about how to create kvm guests on ia64

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] Guide for creating virtual machine on kvm/ia64. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- Documentation/ia64/kvm.txt | 82 1 files changed, 82 insertions(+),

[kvm-devel] [PATCH 20/45] KVM: Free apic access page on vm destruction

2008-04-17 Thread Avi Kivity
Noticed by Marcelo Tosatti. Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/x86/kvm/x86.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e6a38bf..c7ad235 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@

[kvm-devel] [PATCH 34/45] KVM: ia64: VMM module interfaces

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] vmm.c adds the interfaces with kvm/module, and initialize global data area. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/vmm.c | 66 +++ 1

[kvm-devel] [PATCH 36/45] KVM: ia64: Add interruption vector table for vmm

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] vmm_ivt.S includes an ivt for vmm use. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- arch/ia64/kvm/vmm_ivt.S | 1424 +++

[kvm-devel] [PATCH 28/45] ia64: Add API for allocating Dynamic TR resource

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] Dynamic TR resource should be managed in the uniform way. Add two interfaces for kernel: ia64_itr_entry: Allocate a (pair of) TR for caller. ia64_ptr_entry: Purge a (pair of ) TR by caller. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by:

[kvm-devel] [PATCH 18/45] KVM: MMU: unify slots_lock usage

2008-04-17 Thread Avi Kivity
From: Marcelo Tosatti [EMAIL PROTECTED] Unify slots_lock acquision around vcpu_run(). This is simpler and less error-prone. Also fix some callsites that were not grabbing the lock properly. [avi: drop slots_lock while in guest mode to avoid holding the lock for indefinite periods]

[kvm-devel] [PATCH 23/45] KVM: MMU: Only mark_page_accessed() if the page was accessed by the guest

2008-04-17 Thread Avi Kivity
If the accessed bit is not set, the guest has never accessed this page (at least through this spte), so there's no need to mark the page accessed. This provides more accurate data for the eviction algortithm. Noted by Andrea Arcangeli. Signed-off-by: Avi Kivity [EMAIL PROTECTED] ---

[kvm-devel] [PATCH 17/45] KVM: VMX: Enable MSR Bitmap feature

2008-04-17 Thread Avi Kivity
From: Sheng Yang [EMAIL PROTECTED] MSR Bitmap controls whether the accessing of an MSR causes VM Exit. Eliminating exits on automatically saved and restored MSRs yields a small performance gain. Signed-off-by: Sheng Yang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] ---

Re: [kvm-devel] [patch 2/2] QEMU: decrease console refresh rate with -nographic

2008-04-17 Thread Avi Kivity
Anthony Liguori wrote: There is a 5th option. Do away with the use of posix aio. We get absolutely no benefit from it because it's limited to a single thread. Even one async request is much better than zero. Fabrice has reverted a patch to change that in the past. Perhaps he can

Re: [kvm-devel] [PATCH] [KVM] Rename debugfs_dir to kvm_debugfs_dir

2008-04-17 Thread Avi Kivity
Hollis Blanchard wrote: It's a globally exported symbol now. Applied, thanks. -- error compiling committee.c: too many arguments to function - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't

[kvm-devel] [PATCH 41/45] KVM: ia64: Generate offset values for assembly code use

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] asm-offsets.c will generate offset values used for assembly code for some fileds of special structures. Signed-off-by: Anthony Xu [EMAIL PROTECTED] Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] ---

Re: [kvm-devel] [PATCH 0 of 2] [RESEND] Fix PowerPC cpu initiliaztion

2008-04-17 Thread Avi Kivity
Jerone Young wrote: This patch apparently fell through the cracks or I didn't send the rised version to the list. These patches fix cpu initilization for PowerPC. Without them guest cannot be launched. Applied both, thanks. -- error compiling committee.c: too many arguments to

Re: [kvm-devel] [PATCH 0 of 4] [v3] KVM for PowerPC 440

2008-04-17 Thread Avi Kivity
Hollis Blanchard wrote: [POWERPC KVM] Implement KVM for PowerPC 440 Avi, these patches have now been acked by Paul Mackerras, so I think they're ready to be committed. Applied all, thanks. -- error compiling committee.c: too many arguments to function

[kvm-devel] [PATCH 33/45] KVM: ia64: Add header files for kvm/ia64

2008-04-17 Thread Avi Kivity
From: Xiantao Zhang [EMAIL PROTECTED] kvm_minstate.h : Marcos about Min save routines. lapic.h: apic structure definition. vcpu.h : routions related to vcpu virtualization. vti.h : Some macros or routines for VT support on Itanium. Signed-off-by: Xiantao Zhang [EMAIL PROTECTED] Signed-off-by:

[kvm-devel] [PATCH 24/45] KVM: MMU: prepopulate guest pages after write-protecting

2008-04-17 Thread Avi Kivity
From: Marcelo Tosatti [EMAIL PROTECTED] Zdenek reported a bug where a looping dmsetup status eventually hangs on SMP guests. The problem is that kvm_mmu_get_page() prepopulates the shadow MMU before write protecting the guest page tables. By doing so, it leaves a window open where the guest can

[kvm-devel] Make her take off her clothes

2008-04-17 Thread Szollosi
When push comes to shove, push harder, cum harder and shove harder. http://www.buryeoag.com/ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to

Re: [kvm-devel] [PATCH 1 of 9] Lock the entire mm to prevent any mmu related operation to happen

2008-04-17 Thread Robin Holt
On Wed, Apr 16, 2008 at 12:15:08PM -0700, Christoph Lameter wrote: On Wed, 16 Apr 2008, Robin Holt wrote: On Wed, Apr 16, 2008 at 11:35:38AM -0700, Christoph Lameter wrote: On Wed, 16 Apr 2008, Robin Holt wrote: I don't think this lock mechanism is completely working. I have

Re: [kvm-devel] [PATCH 4 of 4] [KVM POWERPC] PowerPC 440 KVM implementation

2008-04-17 Thread Avi Kivity
Hollis Blanchard wrote: +config KVM + tristate Kernel-based Virtual Machine (KVM) support + depends on EXPERIMENTAL + select PREEMPT_NOTIFIERS + select ANON_INODES + ---help--- + Support hosting virtualized guest machines. You will also + need to select one

Re: [kvm-devel] [PATCH 4 of 4] [KVM POWERPC] PowerPC 440 KVM implementation

2008-04-17 Thread Avi Kivity
Avi Kivity wrote: Hollis Blanchard wrote: +config KVM + tristate Kernel-based Virtual Machine (KVM) support + depends on EXPERIMENTAL + select PREEMPT_NOTIFIERS + select ANON_INODES + ---help--- + Support hosting virtualized guest machines. You will also + need to select one or more of the

[kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Ian Kirk
Hi, I was able to boot and install Soarlis 10 U4 but since upgraded the host, I have issues. Host: Fedora 8 - 2.6.24.4-64.fc8PAE SMP CPU AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ 32 bit Previously: 2.6.24.4-64.fc8 Running the standard F8 KVM kernel drivers, with either 65 or 66

Re: [kvm-devel] [patch 2/2] QEMU: decrease console refresh rate with -nographic

2008-04-17 Thread Avi Kivity
Carsten Otte wrote: Anthony Liguori wrote: There is a 5th option. Do away with the use of posix aio. We get absolutely no benefit from it because it's limited to a single thread. Fabrice has reverted a patch to change that in the past. How about using linux aio for it? It seems much

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Alexey Eremenko
KVM-65/66 has some bugs on AMD. I suggest you to degrade to KVM-64 for stability. Other than that, only Solaris-10 32-bit is supposed to work fine, while Solaris 64-bit will need some patches to KVM to work at all. For more info see: http://kvm.qumranet.com/kvmwiki/Guest_Support_Status --

Re: [kvm-devel] [PATCH 4 of 4] [KVM POWERPC] PowerPC 440 KVM implementation

2008-04-17 Thread Christian Ehrhardt
Avi Kivity wrote: Avi Kivity wrote: Hollis Blanchard wrote: +config KVM + tristate Kernel-based Virtual Machine (KVM) support + depends on EXPERIMENTAL + select PREEMPT_NOTIFIERS + select ANON_INODES + ---help--- + Support hosting virtualized guest machines. You will also + need to select one

[kvm-devel] [Reminder] Call for Presentations: KVM Forum 2008

2008-04-17 Thread Avi Kivity
[Note: KVM Forum registration is now open at http://kforum.qumranet.com/KVMForum/about_kvmforum.php] This is the Call for Presentations for the second annual KVM Developer's Forum, to be held on June 10-13, 2008, in Napa, California, USA [1]. We are looking for presentations on KVM development,

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Ian Kirk
Alexey Eremenko wrote: KVM-65/66 has some bugs on AMD. I suggest you to degrade to KVM-64 for stability. Also crashes (userland kvm-64, kernel F8). It is Solaris 32bit. Does the 32bit host running PAE cause any issues ?

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Avi Kivity
Alexey Eremenko wrote: KVM-65/66 has some bugs on AMD. I suggest you to degrade to KVM-64 for stability. What bugs? Also note Ian (which you don't quote or copy) reports success with kvm-65 userspace on a non-pae kernel. Other than that, only Solaris-10 32-bit is supposed to work fine,

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Avi Kivity
Ian Kirk wrote: Hi, I was able to boot and install Soarlis 10 U4 but since upgraded the host, I have issues. Host: Fedora 8 - 2.6.24.4-64.fc8PAE SMP CPU AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ 32 bit How much memory do you have? If you are blessed with 4GB or more, this is

Re: [kvm-devel] [PATCH] add virtio disk geometry feature

2008-04-17 Thread Ryan Harper
* Anthony Liguori [EMAIL PROTECTED] [2008-04-16 16:33]: Rusty Russell wrote: On Thursday 17 April 2008 04:56:37 Ryan Harper wrote: From: Ryan Harper [EMAIL PROTECTED] Rather than faking up some geometry, allow the backend to push the disk geometry via virtio pci config option. Keep the

[kvm-devel] [ kvm-Bugs-1944969 ] Second KVM process hangs eating 80-100% CPU on host

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

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Ian Kirk
Avi Kivity wrote: How much memory do you have? If you are blessed with 4GB or more, this is likely a truncation issue. I have 4GB (just upgraded from 1GB), hence running PAE else Linux is only enable to use ~3GB. By mem=2000 I assume you mean on the Host? If so, I might as well drop back to

Re: [kvm-devel] [PATCH 13/45] KVM: s390: API documentation

2008-04-17 Thread Randy Dunlap
On Thu, 17 Apr 2008 12:10:18 +0300 Avi Kivity wrote: From: Carsten Otte [EMAIL PROTECTED] This patch adds Documentation/s390/kvm.txt, which describes specifics of kvm's user interface that are unique to s390 architecture. Signed-off-by: Carsten Otte [EMAIL PROTECTED] Signed-off-by: Avi

Re: [kvm-devel] [PATCH 13/45] KVM: s390: API documentation

2008-04-17 Thread Carsten Otte
Randy Dunlap wrote: Please use CPU consistently throughout the file (i.e., not cpu). Thanks, will fix that with a patch that'll go on top. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this

[kvm-devel] [PATCH] [POWERPC KVM] Kconfig fixes

2008-04-17 Thread Hollis Blanchard
1 file changed, 5 insertions(+), 6 deletions(-) arch/powerpc/kvm/Kconfig | 11 +-- Don't allow building as a module (asm-offsets dependencies). Also, automatically select KVM_BOOKE_HOST until we better separate the guest and host layers. Signed-off-by: Hollis Blanchard [EMAIL

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Ian Kirk
Avi Kivity wrote: If so, I might as well drop back to non-PAE and get to use 3GB. If it works, this provides a clue as to what goes wrong, and we can fix it. Are these known issues? Can I do anything to help/test which might make it work for other people? Just let us know if it works

Re: [kvm-devel] [PATCH 1 of 9] Lock the entire mm to prevent any mmu related operation to happen

2008-04-17 Thread Andrea Arcangeli
On Wed, Apr 16, 2008 at 11:35:38AM -0700, Christoph Lameter wrote: On Wed, 16 Apr 2008, Robin Holt wrote: I don't think this lock mechanism is completely working. I have gotten a few failures trying to dereference 0x100100 which appears to be LIST_POISON1. How does xpmem unregistering

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Avi Kivity
Ian Kirk wrote: Avi Kivity wrote: If so, I might as well drop back to non-PAE and get to use 3GB. If it works, this provides a clue as to what goes wrong, and we can fix it. Are these known issues? Can I do anything to help/test which might make it work for other people?

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Avi Kivity
Avi Kivity wrote: Not good. kvm doesn't really care about the host page table layout, I don't see how this can matter. Actually kvm is affected by pae: it enables nx support. Please try (separately) 1. Boot with 'noexec=off' on the host kernel command line 2. Loading the kernel

Re: [kvm-devel] [PATCH 1 of 9] Lock the entire mm to prevent any mmu related operation to happen

2008-04-17 Thread Robin Holt
On Thu, Apr 17, 2008 at 05:51:57PM +0200, Andrea Arcangeli wrote: On Wed, Apr 16, 2008 at 11:35:38AM -0700, Christoph Lameter wrote: On Wed, 16 Apr 2008, Robin Holt wrote: I don't think this lock mechanism is completely working. I have gotten a few failures trying to dereference

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Ian Kirk
Avi Kivity wrote: 1. Boot with 'noexec=off' on the host kernel command line 2. Loading the kernel modules that come with kvm-66 I'll have a go at no.2, I have not had much luck compiling the modules within the constraints of a Fedora kernel. No.1 I can do tomorrow when in the same

Re: [kvm-devel] [PATCH 1 of 9] Lock the entire mm to prevent any mmu related operation to happen

2008-04-17 Thread Andrea Arcangeli
On Thu, Apr 17, 2008 at 11:36:42AM -0500, Robin Holt wrote: In this case, we are not making the call to unregister, we are waiting for the _release callout which has already removed it from the list. In the event that the user has removed all the grants, we use unregister. That typically

Re: [kvm-devel] [PATCH 1 of 9] Lock the entire mm to prevent any mmu related operation to happen

2008-04-17 Thread Robin Holt
On Thu, Apr 17, 2008 at 07:14:43PM +0200, Andrea Arcangeli wrote: On Thu, Apr 17, 2008 at 11:36:42AM -0500, Robin Holt wrote: In this case, we are not making the call to unregister, we are waiting for the _release callout which has already removed it from the list. In the event that the

[kvm-devel] [ kvm-Bugs-1945129 ] Compilation fails when configure with -DDEBUG

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

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Avi Kivity
Ian Kirk wrote: Avi Kivity wrote: 1. Boot with 'noexec=off' on the host kernel command line 2. Loading the kernel modules that come with kvm-66 I'll have a go at no.2, I have not had much luck compiling the modules within the constraints of a Fedora kernel. I do this

Re: [kvm-devel] kvm-65/66 bug with Solaris 10 U4 ?

2008-04-17 Thread Ian Kirk
Avi Kivity wrote: I do this regularly, basically you need to install kernel-devel and that's it. Yes, that is very easy isn't it. Oops to my stupidity. I've got it built and will give it a go tomorrow and report back on each test case.

Re: [kvm-devel] [PATCH 1 of 9] Lock the entire mm to prevent any mmu related operation to happen

2008-04-17 Thread Christoph Lameter
On Thu, 17 Apr 2008, Andrea Arcangeli wrote: Also note, EMM isn't using the clean hlist_del, it's implementing list by hand (with zero runtime gain) so all the debugging may not be existent in EMM, so if it's really a mm_lock race, and it only triggers with mmu notifiers and not with EMM, it

[kvm-devel] [PATCH 1/3] Refactor AIO interface to allow other AIO implementations

2008-04-17 Thread Anthony Liguori
Posix AIO, especially as used by QEMU, is not very efficient for disk IO. This patch introduces an AIO abstract to allow multiple AIO implements to be used. We can't simply replace posix-aio by linux-aio because linux-aio only works on some filesystems and only with files opened with O_DIRECT.

[kvm-devel] [PATCH 2/3] Split out posix-aio code

2008-04-17 Thread Anthony Liguori
This patch moves the posix-aio code into a separate file. It's strictly code motion, no new functionality is introduced. Signed-off-by: Anthony Liguori [EMAIL PROTECTED] diff --git a/Makefile b/Makefile index a8df278..916f071 100644 --- a/Makefile +++ b/Makefile @@ -139,7 +139,7 @@

Re: [kvm-devel] [Qemu-devel] [PATCH 1/5] PCI DMA API (v3)

2008-04-17 Thread Blue Swirl
On 4/16/08, Anthony Liguori [EMAIL PROTECTED] wrote: Blue Swirl wrote: On 4/16/08, Anthony Liguori [EMAIL PROTECTED] wrote: This patch introduces a DMA API and plumbs support through the DMA layer. We use a mostly opaque structure, IOVector to represent a scatter/gather list of

[kvm-devel] [PATCH 3/3] Implement linux-aio backend

2008-04-17 Thread Anthony Liguori
This patch introduces a Linux-aio backend that is disabled by default. To use this backend effectively, the user should disable caching and select it with the appropriate -aio option. For instance: qemu-system-x86_64 -drive foo.img,cache=off -aio linux There's no universal way to asynchronous

Re: [kvm-devel] [PATCH 1/3] Refactor AIO interface to allow other AIO implementations

2008-04-17 Thread Daniel P. Berrange
On Thu, Apr 17, 2008 at 02:26:50PM -0500, Anthony Liguori wrote: Posix AIO, especially as used by QEMU, is not very efficient for disk IO. This patch introduces an AIO abstract to allow multiple AIO implements to be used. We can't simply replace posix-aio by linux-aio because linux-aio only

Re: [kvm-devel] [PATCH 1/3] Refactor AIO interface to allow other AIO implementations

2008-04-17 Thread Anthony Liguori
Daniel P. Berrange wrote: On Thu, Apr 17, 2008 at 02:26:50PM -0500, Anthony Liguori wrote: Posix AIO, especially as used by QEMU, is not very efficient for disk IO. This patch introduces an AIO abstract to allow multiple AIO implements to be used. We can't simply replace posix-aio by

Re: [kvm-devel] [PATCH 1/3] Refactor AIO interface to allow other AIO implementations

2008-04-17 Thread Daniel P. Berrange
On Thu, Apr 17, 2008 at 02:41:32PM -0500, Anthony Liguori wrote: Daniel P. Berrange wrote: On Thu, Apr 17, 2008 at 02:26:50PM -0500, Anthony Liguori wrote: Posix AIO, especially as used by QEMU, is not very efficient for disk IO. This patch introduces an AIO abstract to allow multiple AIO

Re: [kvm-devel] [PATCH 1/3] Refactor AIO interface to allow other AIO implementations

2008-04-17 Thread Anthony Liguori
Daniel P. Berrange wrote: If QEMU can't discover cases where it won't work, what criteria should the end user use to decide between the impls, or for that matter, what criteria should a management api/app like libvirt use ? If the only decision logic is 'try it benchmark your VM' then its

Re: [kvm-devel] [Qemu-devel] [PATCH 1/5] PCI DMA API (v3)

2008-04-17 Thread Anthony Liguori
Blue Swirl wrote: I fixed the bug, now pcnet works. Performance is improved by a few percent. The problem was that the vector was not freed. Maybe dynamic allocation is a bit fragile. In this case, the length of the vector is known, so it could be allocated once at init time. But would this

[kvm-devel] [patch 00/13] RFC: split the global mutex

2008-04-17 Thread Marcelo Tosatti
Introduce QEMUDevice, making the ioport/iomem-device relationship visible. At the moment it only contains a lock, but could be extended. With it the following is possible: - vcpu's to read/write via ioports/iomem while the iothread is working on some unrelated device, or just copying

[kvm-devel] [patch 01/13] QEMU: get rid of global cpu_single_env

2008-04-17 Thread Marcelo Tosatti
cpu_single_env is a global variable, so there is an assumption that only one vcpu can execute QEMU at the same time. Provide a get_cpu_env() wrapper allowing KVM to use its thread local storage vcpu info. It simplifies IO thread handling. Index: kvm-userspace.io/qemu/block-raw-posix.c

[kvm-devel] [patch 02/13] QEMU: introduce QEMUDevice

2008-04-17 Thread Marcelo Tosatti
Introduce a QEMUDevice type to allow global knowledge of present devices. At the moment its only used for locking purposes, but not limited to that. Index: kvm-userspace.io/qemu/qemu-common.h === ---

[kvm-devel] [patch 05/13] QEMU: add a mutex to protect IRQ chip data structures

2008-04-17 Thread Marcelo Tosatti
Subject says it all. With KVM in-kernel irqchip this is unused. Index: kvm-userspace.io/qemu/hw/apic.c === --- kvm-userspace.io.orig/qemu/hw/apic.c +++ kvm-userspace.io/qemu/hw/apic.c @@ -478,6 +478,8 @@ int

[kvm-devel] [patch 03/13] QEMU: make esp.c build conditional to SPARC target

2008-04-17 Thread Marcelo Tosatti
Only used by qemu/hw/sun4m.c. Index: kvm-userspace.io/qemu/Makefile.target === --- kvm-userspace.io.orig/qemu/Makefile.target +++ kvm-userspace.io/qemu/Makefile.target @@ -563,7 +563,7 @@ DEPLIBS += libfdt.a endif # SCSI layer

[kvm-devel] [patch 06/13] QEMU: plug QEMUDevice pt2 / iomem awareness

2008-04-17 Thread Marcelo Tosatti
Same as before, but make the iomem-device relationship visible. Index: kvm-userspace.io/qemu/cpu-all.h === --- kvm-userspace.io.orig/qemu/cpu-all.h +++ kvm-userspace.io/qemu/cpu-all.h @@ -840,7 +840,7 @@ void

[kvm-devel] [patch 07/13] QEMU: grab device lock for ioport/iomem processing

2008-04-17 Thread Marcelo Tosatti
Record which device owns ioports/memports, and use that to grab the appropriate lock when entering ioport/iomem processing. Make cpu_physical_memory_rw() unlocked (called from inside device code), and locking optional from __cpu_physical_memory_rw(), to be called when a vcpu enters mmio

[kvm-devel] [patch 08/13] QEMU: character device locking

2008-04-17 Thread Marcelo Tosatti
Grab device locks when moving data through char devices in the host-guest direction. Index: kvm-userspace.io/qemu/hw/serial.c === --- kvm-userspace.io.orig/qemu/hw/serial.c +++ kvm-userspace.io/qemu/hw/serial.c @@ -305,18 +305,21 @@

  1   2   >