[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