[PATCH] kvm: kvmtrace: kvmtrace_format for supporting big_endian

2008-06-12 Thread Avi Kivity
From: Tan, Li [EMAIL PROTECTED] Currently kvmtrace is not portable, and prevent from copying a trace file from big-endian target to little-endian workstation for analysis. In the patch, kvmtrace_format reads and checks the magic number from trace log. if needed, then change bytes order of all

[PATCH] KVM: MMU: large page update_pte issue with non-PAE 32-bit guests (resend)

2008-06-12 Thread Avi Kivity
From: Marcelo Tosatti [EMAIL PROTECTED] kvm_mmu_pte_write() does not handle 32-bit non-PAE large page backed guests properly. It will instantiate two 2MB sptes pointing to the same physical 2MB page when a guest large pte update is trapped. Instead of duplicating code to handle this, disallow

[PATCH] KVM: Do not calculate linear rip in emulation failure report

2008-06-12 Thread Avi Kivity
From: Glauber Costa [EMAIL PROTECTED] If we're not gonna do anything (case in which failure is already reported), we do not need to even bother with calculating the linear rip. Signed-off-by: Glauber Costa [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git

[PATCH] Revert KVM: VMX: Add mechanism to detect VMentry failure

2008-06-12 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] This reverts commit 36742c5470. Breaks guest rebooting. Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 7729c2d..6e4278d 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -1294,8 +1294,7 @@

[PATCH] KVM: Support mixed endian machines

2008-06-12 Thread Avi Kivity
From: Tan, Li [EMAIL PROTECTED] Currently kvmtrace is not portable. This will prevent from copying a trace file from big-endian target to little-endian workstation for analysis. In the patch, kernel outputs metadata containing a magic number to trace log, and changes 64-bit words to be u64

Re: qemu-send.c (was Re: Since we're sharing, here's my kvmctl script)

2008-06-12 Thread Chris Webb
Javier Guerra Giraldez [EMAIL PROTECTED] writes: On Wednesday 11 June 2008, Chris Webb wrote: Hi. I have a small 'qemu-send' utility for talking to a running qemu/kvm process whose monitor console listens on a filesystem socket, which I think might be a useful building block when extending

Re: Since we're sharing, here's my kvmctl script

2008-06-12 Thread William Boughton
On Wed, Jun 11, 2008 at 09:07:49PM -0500, Javier Guerra Giraldez wrote: On Wednesday 11 June 2008, Freddie Cash wrote: The script can be run as a normal user, as it will use sudo where needed. However, this causes all the VMs to be run as root (this is developed on Debian where they've

Re: KVM: only abort guest entry if timer count goes from 0-1

2008-06-12 Thread Avi Kivity
Marcelo Tosatti wrote: Only abort guest entry if the timer count went from 0-1, since for 1-2 or larger the bit will either be set already or a timer irq will have been injected. Using atomic_inc_and_test() for it also introduces an SMP barrier to the LAPIC version (thought it was unecessary

Re: [PATCH] kvm-ia64 irq assignment 1/2 kernel

2008-06-12 Thread Avi Kivity
Alexander Graf wrote: Apparently this is broken on x86 too. I was just trying this patch with Mac OS X as target and magically the in-kernel APIC starts working, so I guess something is going wrong already here. Btw, according to the ACPI tables, all PCI interrupts are currently defined

Re: [RFC]RE: [PATCH] kvm-ia64 irq assignment 1/2 kernel

2008-06-12 Thread Avi Kivity
Xu, Anthony wrote: Thanks for comments Basically we are on the same page, while I didn't find your patch about irq assignment, can you post it in this thread again, thx? Below patch makes all PCI devices use level-trigger , active low interrupt, it worked well when running linux guest, I didn't

Re: [PATCH] kvm: kvmtrace: kvmtrace_format for supporting big_endian

2008-06-12 Thread Avi Kivity
Tan, Li wrote: Avi, Do you have any comments? No, just overloaded. Thanks for the reminder. Subject: [PATCH] [PATCH] kvm: kvmtrace: kvmtrace_format for supporting big_endian Currently kvmtrace is not portable, and prevent from copying a trace file from big-endian target to little-endian

Re: unhandled vm exit and machine locks up

2008-06-12 Thread Avi Kivity
Martin Michlmayr wrote: I was reading email in my kvm instance when suddenly it was terminated and my whole laptop locked-up hard. I saw unhandled vm exit: 0x8021 vcpu_id0 and a bunch of register info that can be found at http://www.cyrius.com/tmp/kvm.jpg Does this give any information why

Re: [RFC] kvm-s390: userspace snapshot

2008-06-12 Thread Christian Borntraeger
Am Donnerstag, 12. Juni 2008 schrieb Oliver Paukstadt: On Thu, 2008-06-12 at 00:14 +0200, Christian Borntraeger wrote: Ok, I got an idea. Does that patch fix the handle_should_not_happen PANIC? Patch does not fit, because my code contains vcpu-arch.sie_block-gmsor = 0x;

Re: Since we're sharing, here's my kvmctl script

2008-06-12 Thread Freddie Cash
On Wed, Jun 11, 2008 at 4:04 PM, Freddie Cash [EMAIL PROTECTED] wrote: On Wed, Jun 11, 2008 at 3:52 PM, Freddie Cash [EMAIL PROTECTED] wrote: For everyone's viewing (and critiquing, I guess) pleasure, I present my version of a kvmctl script. [snip] It's released under the BSD License, so do

RE: [RFC]RE: [PATCH] kvm-ia64 irq assignment 1/2 kernel

2008-06-12 Thread Xu, Anthony
Alexander Graf wrote: On Jun 10, 2008, at 12:57 AM, Xu, Anthony wrote: Thanks for comments Basically we are on the same page, while I didn't find your patch about irq assignment, can you post it in this thread again, thx? I'll attach it to this mail. This patch is stilling use legacy

[PATCH 0 of 2] Enable other archs to build kvmtrace tool

2008-06-12 Thread Jerone Young
These patches fix up the build system in the /user dircectory so that other archs (besides x86) can build the kvm-trace tool. Signed-off-by: Jerone Young [EMAIL PROTECTED] 3 files changed, 3 insertions(+), 2 deletions(-) user/Makefile |2 ++ user/config-powerpc.mak|2 +-

[PATCH 2 of 2] kvmtrace tool build by default for powerpc

2008-06-12 Thread Jerone Young
1 file changed, 1 insertion(+), 1 deletion(-) user/config-powerpc.mak |2 +- Patch adds kvmtrace to standard build in /user diretory for powerpc. Signed-off-by: Jerone Young [EMAIL PROTECTED] diff --git a/user/config-powerpc.mak b/user/config-powerpc.mak --- a/user/config-powerpc.mak +++

[PATCH 1 of 2] Fix building of kvmtrace tool for all archs

2008-06-12 Thread Jerone Young
2 files changed, 2 insertions(+), 1 deletion(-) user/Makefile |2 ++ user/config-x86-common.mak |1 - $(kvmtrace_objs) is defined in config-x86-common.mak. This needs to be moved to the common Makefile so everyone can build it. Also it is just one c file as opposed to

RE: [RFC]RE: [PATCH] kvm-ia64 irq assignment 1/2 kernel

2008-06-12 Thread Xu, Anthony
Marcelo Tosatti wrote: On Tue, Jun 10, 2008 at 03:57:30PM +0800, Xu, Anthony wrote: diff --git a/qemu/hw/pci.c b/qemu/hw/pci.c index a23a466..df0ea33 100644 --- a/qemu/hw/pci.c +++ b/qemu/hw/pci.c @@ -548,7 +548,7 @@ static void pci_set_irq(void *opaque, int irq_num, int level)

RE: [RFC]RE: [PATCH] kvm-ia64 irq assignment 1/2 kernel

2008-06-12 Thread Xu, Anthony
Avi Kivity wrote: Xu, Anthony wrote: Thanks for comments Basically we are on the same page, while I didn't find your patch about irq assignment, can you post it in this thread again, thx? Below patch makes all PCI devices use level-trigger , active low interrupt, it worked well when

[RFC] kvm irq assignment

2008-06-12 Thread Xu, Anthony
Hi all, Thanks for your comments. I made this new patch based on your comments 1. use bimodal _PRT, to take advantage of IOAPIC pin 16~23 the mapping is simple, slot - (slot7)+16 IOAPIC pin, someone may provide good mapping ? 2. use ISA-bridge configure space 0x64 byte as a

[ kvm-Bugs-1935481 ] unhandled vm exit: 0x80000021 vcpu_id 0

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

Re: [RFC] kvm irq assignment

2008-06-12 Thread Avi Kivity
Xu, Anthony wrote: Hi all, Thanks for your comments. I made this new patch based on your comments 1. use bimodal _PRT, to take advantage of IOAPIC pin 16~23 the mapping is simple, slot - (slot7)+16 IOAPIC pin, someone may provide good mapping ? I think it's fine. If we find a