[PATCH] KVM: x86 emulator: add JrCXZ instruction emulation

2010-08-19 Thread Wei Yongjun
Add JrCXZ instruction emulation (opcode 0xe3) Used by FreeBSD boot loader. Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index cbf6209..6ccc584 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -2331,7 +2331,7 @@

[PATCH] Add realmode test for jcxz instruction

2010-08-19 Thread Wei Yongjun
Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com diff --git a/x86/realmode.c b/x86/realmode.c index ce8fb18..0caf388 100644 --- a/x86/realmode.c +++ b/x86/realmode.c @@ -1262,6 +1262,32 @@ void test_cbw(void) print_serial(cwde test 1: PASS\n); } +void test_jcxz(void) +{ +

Re: [PATCH non-atomic-injection] x86 emulator: Add 2 operand imul instruction (opcode 0x0f 0xaf)

2010-08-19 Thread Avi Kivity
On 08/18/2010 10:25 PM, Mohammed Gamal wrote: Pulled again and no signs of such patch. imul is not implemented there. Did you push your changes? It's 738cee07673. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. -- To unsubscribe from

Re: [PATCH v2 3/3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Avi Kivity
On 08/19/2010 07:55 AM, Wei Yongjun wrote: Hi Avi Kivity: EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/emulate.c | 38 ++ 1 files changed, 18 insertions(+), 20 deletions(-)

Re: [PATCH v2 3/3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Wei Yongjun
On 08/19/2010 07:55 AM, Wei Yongjun wrote: Hi Avi Kivity: EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/emulate.c | 38 ++ 1 files changed, 18 insertions(+), 20

Re: [PATCH v2 3/3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Wei Yongjun
On 08/19/2010 07:55 AM, Wei Yongjun wrote: Hi Avi Kivity: EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/emulate.c | 38 ++ 1 files changed, 18 insertions(+), 20

kernel BUG at arch/x86/kvm/../../../virt/kvm/kvm_main.c:1978

2010-08-19 Thread Sergey Senozhatsky
Hello, Got this trace (while echo 1 /sys/devices/system/cpu/cpu3/online): [ 313.320295] lockdep: fixing up alternatives. [ 313.320303] SMP alternatives: switching to SMP code [ 313.331090] Booting Node 0 Processor 3 APIC 0x5 [ 313.487258] kvm: enabling virtualization on CPU3 [ 313.487326]

Re: kernel BUG at arch/x86/kvm/../../../virt/kvm/kvm_main.c:1978

2010-08-19 Thread Avi Kivity
On 08/19/2010 12:54 PM, Sergey Senozhatsky wrote: Hello, Got this trace (while echo 1 /sys/devices/system/cpu/cpu3/online): [ 313.320295] lockdep: fixing up alternatives. [ 313.320303] SMP alternatives: switching to SMP code [ 313.331090] Booting Node 0 Processor 3 APIC 0x5 [ 313.487258]

[ kvm-Bugs-1834719 ] bad_page in kvm_qemu when running Windows XP SP2

2010-08-19 Thread SourceForge.net
Bugs item #1834719, was opened at 2007-11-19 19:58 Message generated for change (Comment added) made by jessorensen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1834719group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-1840395 ] FreeBSD/OpenSolaris guests image corruption

2010-08-19 Thread SourceForge.net
Bugs item #1840395, was opened at 2007-11-28 17:55 Message generated for change (Comment added) made by jessorensen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1840395group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-1841658 ] OpenSolaris 64bit panic with kvm-54

2010-08-19 Thread SourceForge.net
Bugs item #1841658, was opened at 2007-11-30 13:11 Message generated for change (Comment added) made by jessorensen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1841658group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-1881418 ] win xp guest BSOD and host kernel oops if -smb path

2010-08-19 Thread SourceForge.net
Bugs item #1881418, was opened at 2008-01-28 21:55 Message generated for change (Settings changed) made by jessorensen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=1881418group_id=180599 Please note that this message will contain a full copy of the

[ kvm-Bugs-1900228 ] Time on guest slows down sometimes...

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

[ kvm-Bugs-1998355 ] IO Performance

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

Re: kernel BUG at arch/x86/kvm/../../../virt/kvm/kvm_main.c:1978

2010-08-19 Thread Sergey Senozhatsky
On (08/19/10 12:58), Avi Kivity wrote: Hello, Got this trace (while echo 1 /sys/devices/system/cpu/cpu3/online): [ 313.320295] lockdep: fixing up alternatives. [ 313.320303] SMP alternatives: switching to SMP code [ 313.331090] Booting Node 0 Processor 3 APIC 0x5 [ 313.487258] kvm:

[ kvm-Bugs-2005957 ] TAP networking stalls on large file transfers

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

[ kvm-Bugs-2025534 ] gettimeofday goes backward

2010-08-19 Thread SourceForge.net
Bugs item #2025534, was opened at 2008-07-23 10:45 Message generated for change (Comment added) made by jessorensen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2025534group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-2034672 ] guest: BUG: soft lockup - CPU#0 stuck for 41s!

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

[ kvm-Bugs-2091534 ] Guests see 2 CD drives if one is specified with -drive

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

[ kvm-Bugs-2067179 ] Possible Bug in ATA Emulation Code

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

[ kvm-Bugs-3022896 ] bad network performance with 10Gbit

2010-08-19 Thread SourceForge.net
Bugs item #3022896, was opened at 2010-06-29 18:39 Message generated for change (Comment added) made by jessorensen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=3022896group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-2972152 ] guest crash when -cpu kvm64

2010-08-19 Thread SourceForge.net
Bugs item #2972152, was opened at 2010-03-17 20:43 Message generated for change (Comment added) made by jessorensen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2972152group_id=180599 Please note that this message will contain a full copy of the comment

[ kvm-Bugs-2025534 ] gettimeofday goes backward

2010-08-19 Thread SourceForge.net
Bugs item #2025534, was opened at 2008-07-23 10:45 Message generated for change (Comment added) made by ravpl You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2025534group_id=180599 Please note that this message will contain a full copy of the comment

Re: [PATCH v2 3/3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Gleb Natapov
On Tue, Aug 17, 2010 at 07:44:20PM +0300, Avi Kivity wrote: if ((c-src.type == OP_MEM) !(c-d NoAccess)) { @@ -3230,13 +3212,29 @@ writeback: if (c-rep_prefix (c-d String)) { struct read_cache *rc = ctxt-decode.io_read; register_address_increment(c,

[ kvm-Bugs-2151771 ] libkvm API documentation error - kvm_create()

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

Re: [PATCH v2 3/3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Avi Kivity
On 08/19/2010 01:55 PM, Gleb Natapov wrote: On Tue, Aug 17, 2010 at 07:44:20PM +0300, Avi Kivity wrote: if ((c-src.type == OP_MEM) !(c-d NoAccess)) { @@ -3230,13 +3212,29 @@ writeback: if (c-rep_prefix (c-d String)) { struct read_cache *rc

[PATCH v3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Avi Kivity
EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivity a...@redhat.com --- v3: if restarting an instruction, don't advance rip arch/x86/kvm/emulate.c | 41 - 1 files changed, 20 insertions(+), 21 deletions(-) diff

Re: [PATCH v3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Gleb Natapov
On Thu, Aug 19, 2010 at 02:34:08PM +0300, Avi Kivity wrote: EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivity a...@redhat.com --- v3: if restarting an instruction, don't advance rip arch/x86/kvm/emulate.c | 41

Re: [PATCH v3] KVM: x86 emulator: fix REPZ/REPNZ termination condition

2010-08-19 Thread Avi Kivity
On 08/19/2010 03:09 PM, Gleb Natapov wrote: On Thu, Aug 19, 2010 at 02:34:08PM +0300, Avi Kivity wrote: EFLAGS.ZF needs to be checked after each iteration, not before. Signed-off-by: Avi Kivitya...@redhat.com --- v3: if restarting an instruction, don't advance rip arch/x86/kvm/emulate.c |

[ kvm-Bugs-2168057 ] 64-bit Windows installation fails on KVM-77 - BSOD

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

[ kvm-Bugs-2186174 ] kvm-ia64 can not boot win2008 VTI guest

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

[ kvm-Bugs-2200006 ] vga vmware and kernel 2.6.25

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

Re: [PATCH] Add realmode test for jcxz instruction

2010-08-19 Thread Avi Kivity
On 08/19/2010 09:28 AM, Wei Yongjun wrote: Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com diff --git a/x86/realmode.c b/x86/realmode.c index ce8fb18..0caf388 100644 --- a/x86/realmode.c +++ b/x86/realmode.c @@ -1262,6 +1262,32 @@ void test_cbw(void) print_serial(cwde test

Re: [PATCH non-atomic-injection] x86 emulator: Add 2 operand imul instruction (opcode 0x0f 0xaf)

2010-08-19 Thread Mohammed Gamal
On Thu, Aug 19, 2010 at 9:38 AM, Avi Kivity a...@redhat.com wrote:  On 08/18/2010 10:25 PM, Mohammed Gamal wrote: Pulled again and no signs of such patch. imul is not implemented there. Did you push your changes? It's 738cee07673.d Pulled again and it is there now, thanks. -- I have a

[PATCH non-atomic-injection] x86 emulator: Add cwd/cdq/cqo instruction (opcode 0x99)

2010-08-19 Thread Mohammed Gamal
Signed-off-by: Mohammed Gamal m.gamal...@gmail.com --- arch/x86/kvm/emulate.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index ee4bb69..fddf76d 100644 --- a/arch/x86/kvm/emulate.c +++

[PATCH] test: Add test for cwd/cdq/cqo instruction

2010-08-19 Thread Mohammed Gamal
Signed-off-by: Mohammed Gamal m.gamal...@gmail.com --- x86/realmode.c | 58 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/x86/realmode.c b/x86/realmode.c index 6076c56..8abdd14 100644 --- a/x86/realmode.c +++

Re: [Qemu-devel] Re: [PATCH] Fix bug for vcpu hotplug

2010-08-19 Thread Anthony Liguori
On 08/18/2010 02:33 AM, Avi Kivity wrote: On 08/18/2010 10:17 AM, Liu, Jinsong wrote: During test, we found qemu-kvm has a bug result in guestos shutdown when vcpu hotadd. This patch is to fix the bug, allow hotplug for sysbus qdev. --- a/hw/qdev.c +++ b/hw/qdev.c @@ -108,6 +108,7 @@

Re: [Qemu-devel] Re: [PATCH] Fix bug for vcpu hotplug

2010-08-19 Thread Avi Kivity
On 08/19/2010 06:24 PM, Anthony Liguori wrote: On 08/18/2010 02:33 AM, Avi Kivity wrote: On 08/18/2010 10:17 AM, Liu, Jinsong wrote: During test, we found qemu-kvm has a bug result in guestos shutdown when vcpu hotadd. This patch is to fix the bug, allow hotplug for sysbus qdev. ---

Re: [Qemu-devel] Re: [PATCH] Fix bug for vcpu hotplug

2010-08-19 Thread Anthony Liguori
On 08/19/2010 10:34 AM, Avi Kivity wrote: On 08/19/2010 06:24 PM, Anthony Liguori wrote: On 08/18/2010 02:33 AM, Avi Kivity wrote: On 08/18/2010 10:17 AM, Liu, Jinsong wrote: During test, we found qemu-kvm has a bug result in guestos shutdown when vcpu hotadd. This patch is to fix the bug,

Re: vhost-net unreleased?

2010-08-19 Thread John Bellessa
On Tue, Aug 17, 2010 at 3:13 AM, Avi Kivity a...@redhat.com wrote:  On 08/17/2010 09:58 AM, Christian Theune wrote: Hi, I've been plugging through code and presentations trying to find out whether the KVM/qemu side of vhost-net has been released yet. The git archive seems to include the

[PATCH v2] Add realmode test for jcxz instruction

2010-08-19 Thread Wei Yongjun
Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- x86/realmode.c | 62 1 files changed, 62 insertions(+), 0 deletions(-) diff --git a/x86/realmode.c b/x86/realmode.c index ce8fb18..75d77bd 100644 --- a/x86/realmode.c +++

Receiving delayed packets from RTL8139 card in KVM

2010-08-19 Thread Karthik Vadambacheri Manian
Hi All, I am running a light weight kernel named kitten in QEMU-KVM which uses LWIP (Light Weight TCP/IP) stack for networking. I am trying to fine tune this LWIP but I am now facing an issue regarding delayed packet reception. Basically I wrote a small pingpong program where master sends a data

[PATCH 0/4 v2] kvm: rework KVM mmu_shrink() code

2010-08-19 Thread Tim Pepper
The following series is the four patches Dave Hansen had queued for test as mentioned last week in the thread: [PATCH] kvm: make mmu_shrink() fit shrinker's requirement Last week just before leaving for vacation Dave had noted in that thread that these four were ready to merge based on our perf

[PATCH 1/4 v2] kvm: abstract kvm x86 mmu-n_free_mmu_pages

2010-08-19 Thread Tim Pepper
From: Dave Hansen d...@linux.vnet.ibm.com [PATCH 1/4 v2] kvm: abstract kvm x86 mmu-n_free_mmu_pages First of all, I think free is a poor name for this value. In this context, it means, the number of mmu pages which this kvm instance should be able to allocate. To me, free implies much more

[PATCH 2/4 v2] kvm: rename x86 kvm-arch.n_alloc_mmu_pages

2010-08-19 Thread Tim Pepper
From: Dave Hansen d...@linux.vnet.ibm.com [PATCH 2/4 v2] kvm: rename x86 kvm-arch.n_alloc_mmu_pages Again, I think this is a poor choice of names. This value truly means, the number of pages which _may_ be allocated. But, reading the value, n_alloc_mmu_pages, I'm unable to think of anything it

[PATCH 3/4 v2] kvm: replace x86 kvm n_free_mmu_pages with n_used_mmu_pages

2010-08-19 Thread Tim Pepper
From: Dave Hansen d...@linux.vnet.ibm.com [PATCH 3/4 v2] kvm: replace x86 kvm n_free_mmu_pages with n_used_mmu_pages I think doing this makes the code much more readable. That's borne out by the fact that this patch removes code. used also happens to be the number that we need to return back

[PATCH 4/4 v2] kvm: create aggregate kvm_total_used_mmu_pages value

2010-08-19 Thread Tim Pepper
From: Dave Hansen d...@linux.vnet.ibm.com [PATCH 4/4 v2] kvm: create aggregate kvm_total_used_mmu_pages value Note: this is the real meat of the patch set. It can be applied up to this point, and everything will probably be improved, at least a bit. Of slab shrinkers, the VM code says: *

[PATCH v2] KVM: x86 emulator: add LDS/LES/LFS/LGS/LSS instruction emulation

2010-08-19 Thread Wei Yongjun
Add LDS/LES/LFS/LGS/LSS instruction emulation. (opcode 0xc4, 0xc5, 0x0f 0xb2, 0x0f 0xb4~0xb5) Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- v1 - v2: mask LES/LDS as No64. --- arch/x86/kvm/emulate.c | 51 --- 1 files changed, 47 insertions(+), 4

Re: [PATCH 0/4] fix PowerPC 440 Bamboo platform emulation

2010-08-19 Thread Hollis Blanchard
On 08/04/2010 05:21 PM, Hollis Blanchard wrote: These patches get the PowerPC Bamboo platform working again. I've re-written two of the patches based on feedback from qemu-devel. Hi Aurelien, any comment on these? Hollis Blanchard Mentor Graphics, Embedded Systems Division -- To unsubscribe