[PATCH] Merge branch 'qemu-cvs'

2008-08-27 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] -- To unsubscribe from this list: send the line unsubscribe kvm-commits in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] kvm: qemu: regenerate bios for ap halt in rom

2008-08-27 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/qemu/pc-bios/bios.bin b/qemu/pc-bios/bios.bin index 68ddde1..7053eb5 100644 Binary files a/qemu/pc-bios/bios.bin and b/qemu/pc-bios/bios.bin differ -- To unsubscribe from this list: send the line

[PATCH] kvm: external module: ia64 compatibility with 2.6.26 hosts

2008-08-27 Thread Avi Kivity
From: Zhang Xiantao [EMAIL PROTECTED] Add one hack-module.awk scripts to hack ia64 source. Signed-off-by: Zhang Xiantao [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/kernel/Makefile b/kernel/Makefile index d2913a9..3f5f6da 100644 --- a/kernel/Makefile +++

[PATCH] KVM: MMU: Add locking around kvm_mmu_slot_remove_write_access()

2008-08-27 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] It was generally safe due to slots_lock being held for write, but it wasn't very nice. Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index ea5b9fe..9cd3733 100644 --- a/arch/x86/kvm/mmu.c +++

[PATCH] KVM: MMU: Flush tlbs after clearing write permission when accessing dirty log

2008-08-27 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] Otherwise, the cpu may allow writes to the tracked pages, and we lose some display bits or fail to migrate correctly. Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 9cd3733..b5c3335 100644 ---

[PATCH] KVM: MMU: Fix setting the accessed bit on non-speculative sptes

2008-08-27 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] The accessed bit was accidentally turned on in a random flag word, rather than, the spte itself, which was lucky, since it used the non-EPT compatible PT_ACCESSED_MASK. Fix by turning the bit on in the spte and changing it to use the portable accessed mask.

Automating Live Migration

2008-08-27 Thread Sukanto Ghosh
Hi, What needs to be done in case I want to automate the live migration of the guests (e.g. for load balancing) ? I want to have some programs running on multiple nodes, which will monitor the load on the respective hosts and in case of imbalance can automatically migrate a guest from one host

Re: Automating Live Migration

2008-08-27 Thread Uri Lublin
Sukanto Ghosh wrote: Hi, What needs to be done in case I want to automate the live migration of the guests (e.g. for load balancing) ? I want to have some programs running on multiple nodes, which will monitor the load on the respective hosts and in case of imbalance can automatically migrate

Re: [PATCH] x86 emulator: Add mov r, imm instructions (opcodes 0xb0-0xbf)

2008-08-27 Thread Avi Kivity
Mohammed Gamal wrote: The emulator only supported one instance of mov r, imm instruction (opcode 0xb8), this adds the rest of these instructions. Applied patch and its test, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the

Re: Automating Live Migration

2008-08-27 Thread Sukanto Ghosh
Please take a look at http://kvm.qumranet.com/kvmwiki/Migration Basically you need to be able to send qemu monitor commands to your kvm-qemu. For example redirect the monitor to a unix domain socket (e.g. with -monitor /tmp/vmid.monitor) and connect your program to that socket. When you want

Re: [ANNOUNCE] kvm-73 release

2008-08-27 Thread Avi Kivity
Zhang, Xiantao wrote: Attached! First is for x86 file movement, and the other targets for hacking ia64 source for back-ward compatibility. Both applied, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line unsubscribe kvm

Re: [PATCH] x86: default to reboot via ACPI

2008-08-27 Thread Pavel Machek
On Tue 2008-08-26 18:16:42, Andi Kleen wrote: Maciej W. Rozycki [EMAIL PROTECTED] writes: On Tue, 26 Aug 2008, Avi Kivity wrote: Most machines are recent machines. This is a bold statement I would say. Any numbers to back it up? You can do the math. Reasonable assumptions are

Re: [PATCH] x86: default to reboot via ACPI

2008-08-27 Thread Avi Kivity
Pavel Machek wrote: I'd not count of this. When you relegate laptop to quiet home server role, the mechanical stresses suddenly stop, and I'd expect it to survive for long long years. For every user who uses an old laptop as a home server, or has a best MIPS64 box, there are maybe five

[ kvm-Bugs-1900829 ] KVM crashes with AMD NPT

2008-08-27 Thread SourceForge.net
Bugs item #1900829, was opened at 2008-02-24 14:40 Message generated for change (Comment added) made by avik You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1900829group_id=180599 Please note that this message will contain a full copy of the comment

[PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Joerg Rodel
From: Joerg Roedel [EMAIL PROTECTED] This patch introduces a guest TLB flush on every NPF exit in KVM. This fixes random segfaults and #UD exceptions in the guest seen under some workloads (e.g. long running compile workloads or tbench). A kernbench run with and without that fix showed that it

Re: [PATCH 1/1] KVM/userspace: Support for assigning PCI devices to guests

2008-08-27 Thread Ben-Ami Yassour
On Tue, 2008-08-26 at 18:29 +0300, Amit Shah wrote: From: Or Sagi [EMAIL PROTECTED] From: Nir Peleg [EMAIL PROTECTED] From: Amit Shah [EMAIL PROTECTED] From: Ben-Ami Yassour [EMAIL PROTECTED] From: Glauber de Oliveira Costa [EMAIL PROTECTED] With this patch, we can assign a device on the

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Avi Kivity
Joerg Rodel wrote: From: Joerg Roedel [EMAIL PROTECTED] This patch introduces a guest TLB flush on every NPF exit in KVM. This fixes random segfaults and #UD exceptions in the guest seen under some workloads (e.g. long running compile workloads or tbench). A kernbench run with and without that

Re: [PATCH] x86: default to reboot via ACPI

2008-08-27 Thread Pavel Machek
On Wed 2008-08-27 13:51:41, Avi Kivity wrote: Pavel Machek wrote: I'd not count of this. When you relegate laptop to quiet home server role, the mechanical stresses suddenly stop, and I'd expect it to survive for long long years. For every user who uses an old laptop as a home

Re: Virtio File System.

2008-08-27 Thread Eric Van Hensbergen
On Wed, Aug 27, 2008 at 5:59 AM, Avi Kivity [EMAIL PROTECTED] wrote: I was wondering if anyone had thought about creating a virtio file system, There was some work using the plan 9 filesystem protocol over virtio. Not sure where that stands. You could base your work off that. There is

Re: [PATCH 1/1] KVM/userspace: Support for assigning PCI devices to guests

2008-08-27 Thread Anthony Liguori
Hi Amit, Amit Shah wrote: With this patch, we can assign a device on the host machine to a guest. A new command-line option, -pcidevice is added. For example, to invoke it for a device sitting at PCI bus:dev.fn 04:08.0 with host IRQ 18, use this: -pcidevice host=04:08.0 Let's

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Avi Kivity
Avi Kivity wrote: Joerg Rodel wrote: From: Joerg Roedel [EMAIL PROTECTED] This patch introduces a guest TLB flush on every NPF exit in KVM. This fixes random segfaults and #UD exceptions in the guest seen under some workloads (e.g. long running compile workloads or tbench). A kernbench run

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Joerg Rodel
On Wed, Aug 27, 2008 at 04:11:02PM +0300, Avi Kivity wrote: Joerg Rodel wrote: From: Joerg Roedel [EMAIL PROTECTED] This patch introduces a guest TLB flush on every NPF exit in KVM. This fixes random segfaults and #UD exceptions in the guest seen under some workloads (e.g. long running

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Joerg Rodel
On Wed, Aug 27, 2008 at 04:53:26PM +0300, Avi Kivity wrote: Avi Kivity wrote: Joerg Rodel wrote: From: Joerg Roedel [EMAIL PROTECTED] This patch introduces a guest TLB flush on every NPF exit in KVM. This fixes random segfaults and #UD exceptions in the guest seen under some workloads

Re: [PATCH 1/1] KVM/userspace: Support for assigning PCI devices to guests

2008-08-27 Thread Anthony Liguori
Anthony Liguori wrote: Hi Amit, ifeq ($(USE_KVM_PIT), 1) OBJS+= i8254-kvm.o endif diff --git a/qemu/hw/device-assignment.c b/qemu/hw/device-assignment.c new file mode 100644 index 000..8bc4e5c --- /dev/null +++ b/qemu/hw/device-assignment.c Where did this come from originally? It's

Re: [PATCH 1/1] KVM/userspace: Support for assigning PCI devices to guests

2008-08-27 Thread Ian Jackson
Anthony Liguori writes (Re: [PATCH 1/1] KVM/userspace: Support for assigning PCI devices to guests): Where did this come from originally? It's completely different from what is in xen-unstable. What's in xen-unstable is actually a lot nicer IMHO. Amit: have you taken a look at the code in

[PATCH][RESEND] kvm: testsuite: Consolidate mov r, imm testing in one function

2008-08-27 Thread Mohammed Gamal
Consolidate mov r, imm testing in one function Signed-off-by: Mohammed Gamal [EMAIL PROTECTED] --- user/test/x86/realmode.c | 51 + 1 files changed, 28 insertions(+), 23 deletions(-) diff --git a/user/test/x86/realmode.c b/user/test/x86/realmode.c

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Avi Kivity
Joerg Rodel wrote: I will test it. Is the fix in your latest kernel.org tree? It is now. It doesn't fix the problem. Reproduce it with a KVM guest and start tbench in it with around 100 clients configured. The tbench-process will crash when the bug is hit. Does it reproduce with

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Joerg Roedel
On Wed, Aug 27, 2008 at 06:21:40PM +0300, Avi Kivity wrote: Joerg Rodel wrote: hm. tbench doesn't allocate memory, so there shouldn't be any npt faults. I don't see how this can make a difference. I reproduced it. There are a few npt faults as the guest has not

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Joerg Roedel
On Wed, Aug 27, 2008 at 06:22:14PM +0300, Avi Kivity wrote: Joerg Rodel wrote: I will test it. Is the fix in your latest kernel.org tree? It is now. It doesn't fix the problem. Reproduce it with a KVM guest and start tbench in it with around 100 clients configured. The tbench-process

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Joerg Rodel
On Wed, Aug 27, 2008 at 06:50:27PM +0300, Avi Kivity wrote: Joerg Roedel wrote: On Wed, Aug 27, 2008 at 06:22:14PM +0300, Avi Kivity wrote: Joerg Rodel wrote: I will test it. Is the fix in your latest kernel.org tree? It is now. It doesn't fix the problem. Reproduce

Re: [PATCH] KVM: SVM: fix random segfaults with NPT enabled

2008-08-27 Thread Avi Kivity
Avi Kivity wrote: Joerg Rodel wrote: Meanwhile, I applied the patch, but I'm very worried about this. Yes, we are also worried. Another question is why this only happens with NPT. The SoftMMU code should also fail with shadow paging if there is a bug. Slightly different paths --

[ kvm-Bugs-2076615 ] Win2K does not boot anymore

2008-08-27 Thread SourceForge.net
Bugs item #2076615, was opened at 2008-08-26 22:04 Message generated for change (Comment added) made by markit You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2076615group_id=180599 Please note that this message will contain a full copy of the comment

RE: [PATCH 2/4] add e500 tlb implementation -- DCRs

2008-08-27 Thread Hollis Blanchard
On Wed, 2008-08-27 at 10:50 +0800, Liu Yu wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hollis Blanchard Sent: Tuesday, August 26, 2008 11:51 PM To: Liu Yu Cc: kvm-ppc@vger.kernel.org Subject: RE: [PATCH 2/4] add e500 tlb