[PATCH 2/2 v3] KVM: x86 emulator: add XADD instruction emulation

2010-08-12 Thread Wei Yongjun
Add XADD instruction emulation (opcode 0x0f 0xc0~0xc1) Signed-off-by: Wei Yongjun --- v2 -> v3: add Lock prefix to decode --- arch/x86/kvm/emulate.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 8bf80a9..e0917

[PATCH 2/2 v2] KVM: x86 emulator: add XADD instruction emulation

2010-08-12 Thread Wei Yongjun
Add XADD instruction emulation (opcode 0x0f 0xc0~0xc1) Signed-off-by: Wei Yongjun --- v1 -> v2: remove implicit LOCK prefix --- arch/x86/kvm/emulate.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 8bf80a9..279

Re: KVM on MIPS?

2010-08-12 Thread Dale Farnsworth
On Thu, Aug 12, 2010 at 02:26:17PM -0700, Hollis Blanchard wrote: > On 03/26/2010 12:59 PM, Dale Farnsworth wrote: >> On Fri, Mar 26, 2010 at 09:16:19AM -0700, Dale Farnsworth wrote: >>> On Thu, Mar 25, 2010 at 11:32:57PM +0100, Alexander Graf wrote: Am 25.03.2010 um 22:04 schrieb Avi Kiv

Re: KSM with Debian GNU/Linux

2010-08-12 Thread Daniel Bareiro
Hi, Michael. On Monday, 09 August 2010 19:28:23 +0400, Michael Tokarev wrote: >> I'm also using qemu-kvm 0.12.1.2 compiled by myself with the source >> code of SourceForge. > Note that this one has numerous bugs, some of which involves data > corruption. JFYI. Thanks for the observation. >> Th

Re: KVM on MIPS?

2010-08-12 Thread Hollis Blanchard
On 03/26/2010 12:59 PM, Dale Farnsworth wrote: On Fri, Mar 26, 2010 at 09:16:19AM -0700, Dale Farnsworth wrote: On Thu, Mar 25, 2010 at 11:32:57PM +0100, Alexander Graf wrote: Am 25.03.2010 um 22:04 schrieb Avi Kivity: On 03/25/2010 06:54 PM, Dale Farnsworth wrote: I'm beginning to look at

RE: Attaching Serial Console

2010-08-12 Thread Phil Winterfield (winterfi)
That does the trick. Thanks! > -Original Message- > From: pradeepkumar [mailto:psuri...@linux.vnet.ibm.com] > Sent: Wednesday, August 11, 2010 8:09 PM > To: Phil Winterfield (winterfi) > Cc: kvm@vger.kernel.org > Subject: Re: Attaching Serial Console > > On Wed, 11 Aug 2010 17:46:53 -070

Re: [PATCH 2/2] KVM: x86 emulator: add XADD instruction emulation

2010-08-12 Thread Paolo Bonzini
On 08/12/2010 09:41 AM, Wei Yongjun wrote: > + case 0xc0 ... 0xc1: /* xadd */ > + /* Write back the register source. */ > + write_register_operand(&c->src, c->dst.val, c->dst.bytes); > + /* Write back the memory destination with implicit LOCK prefix. > *

[qemu-kvm PATCH 3/3] make kvm_mutex_*lock static

2010-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-kvm.c |4 ++-- qemu-kvm.h |3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index 96d458c..f46c394 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1798,13 +1798,13 @@ int kvm_set_irq(int irq, int level, int *s

[qemu-kvm PATCH 2/3] remove unused function

2010-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-kvm.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/qemu-kvm.h b/qemu-kvm.h index 6f6c6d8..c08e9b8 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -896,11 +896,6 @@ int handle_tpr_access(void *opaque, CPUState *env, uint64_t rip,

[qemu-kvm PATCH 1/3] move kvm_set_irqfd to kvm-stub.c

2010-08-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- kvm-all.c |5 + kvm-stub.c |6 ++ kvm.h |9 - 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 47f58a6..78983ee 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1298,6 +1298,11 @@ int kvm_set_i

[qemu-kvm PATCH 0/3] small qemu-kvm cleanups

2010-08-12 Thread Paolo Bonzini
Nothing earth shattering. :) Paolo Bonzini (3): move kvm_set_irqfd to kvm-stub.c remove unused function make kvm_mutex_*lock static kvm-all.c |5 + kvm-stub.c |6 ++ kvm.h |9 - qemu-kvm.c |4 ++-- qemu-kvm.h |8 5 files changed, 13 insert

[PATCH] arm: higher initrd load addr

2010-08-12 Thread Serge Hallyn
set INITRD_LOAD_ADDR to 0x00d0 instead of 0x0080 as to leave enough room for vmlinuz + its decompressed counterpart. It has been mentioned that a better fix might be to peek into the vmlinux for the real size estimate, but as I'm not sure whether we'd want to do that peeking here I'm posti

[PATCH] test: Add test for xadd instruction

2010-08-12 Thread Wei Yongjun
Signed-off-by: Wei Yongjun --- x86/emulator.c | 51 +++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/x86/emulator.c b/x86/emulator.c index 348d548..c4579ab 100644 --- a/x86/emulator.c +++ b/x86/emulator.c @@ -360,6 +360,56 @@ vo

[PATCH 2/2] KVM: x86 emulator: add XADD instruction emulation

2010-08-12 Thread Wei Yongjun
Add XADD instruction emulation (opcode 0x0f 0xc0~0xc1) Signed-off-by: Wei Yongjun --- arch/x86/kvm/emulate.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 8bf80a9..7c47e37 100644 --- a/arch/x86/kvm/emulate.c

[PATCH 1/2] KVM: x86 emulator: put register operand write back to a function

2010-08-12 Thread Wei Yongjun
Introduce function write_register_operand() to write back the register operand. Signed-off-by: Wei Yongjun --- arch/x86/kvm/emulate.c | 53 +++ 1 files changed, 22 insertions(+), 31 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emu

help with "migrate -d -b"

2010-08-12 Thread 姚远
>From qemu-kvm-0.12.1, kvm has the function about live migration with non-shared storage. I don't know how to use it and i can not find any documents about this new function. In qemu monitor, ""migrate -d -b tcp:10.1.10.42:444" is not going well, it errors "migration failed". Who used this command

Re: 32 bit Kvm running 32 bit WindowsXp hangs on reboot [SOLVED]

2010-08-12 Thread Philipp Hahn
Hello, Am Freitag 06 August 2010 18:13:03 schrieb Philipp Hahn: > > kvm: unhandled exit > > kvm_run returned -22 FYI: Already fixed in newer Kernel (2.6.35) by BYtE Ph