Re: [PATCH 2/2] x86 emulator: Add into, int, and int3 instructions (opcodes 0xcc-0xce)

2010-08-04 Thread Avi Kivity
On 08/04/2010 05:44 AM, Mohammed Gamal wrote: This adds support for int instructions to the emulator @@ -2963,6 +3025,21 @@ special_insn: if (rc != X86EMUL_CONTINUE) goto done; break; + case 0xcc: /* int3 */ +

Re: kvm IPC

2010-08-04 Thread Amit Shah
On (Tue) Aug 03 2010 [11:37:38], Nirmal Guhan wrote: Thanks. Will this work if the guest or host are different combo Yes, it would. Amit -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: VM not booting anymore after Ubuntu upgrade

2010-08-04 Thread Avi Kivity
On 08/04/2010 08:39 AM, André Weidemann wrote: Hi, I recently upgraded my machine from Ubuntu 9.10 to 10.4 (x86_64). Ever since I upgraded my machine I cannot get qemu-kvm to start again. I did not install the kvm package provided by Ubuntu. Instead I pulled todays git from

Re: VM not booting anymore after Ubuntu upgrade

2010-08-04 Thread André Weidemann
On 04.08.2010 08:48, Avi Kivity wrote: On 08/04/2010 08:39 AM, André Weidemann wrote: Hi, I recently upgraded my machine from Ubuntu 9.10 to 10.4 (x86_64). Ever since I upgraded my machine I cannot get qemu-kvm to start again. I did not install the kvm package provided by Ubuntu. Instead I

Re: VM not booting anymore after Ubuntu upgrade

2010-08-04 Thread Avi Kivity
On 08/04/2010 09:55 AM, André Weidemann wrote: On 04.08.2010 08:48, Avi Kivity wrote: On 08/04/2010 08:39 AM, André Weidemann wrote: Hi, I recently upgraded my machine from Ubuntu 9.10 to 10.4 (x86_64). Ever since I upgraded my machine I cannot get qemu-kvm to start again. I did not install

[PATCH] kvm: make mmu_shrink() fit shrinker's requirement

2010-08-04 Thread Lai Jiangshan
mmu_shrink() should attempt to free @nr_to_scan entries. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 9c69725..1034373 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -3138,37 +3138,51 @@ static int mmu_shrink(struct

[PATCH 1/4] KVM: x86 emulator: use SrcAcc to simplify stos decoding

2010-08-04 Thread Wei Yongjun
Use SrcAcc to simplify stos decoding. Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index f03ff26..4624b11 100644 --- a/arch/x86/kvm/emulate.c

Re: VM not booting anymore after Ubuntu upgrade

2010-08-04 Thread André Weidemann
On 04.08.2010 09:05, Avi Kivity wrote: On 08/04/2010 09:55 AM, André Weidemann wrote: On 04.08.2010 08:48, Avi Kivity wrote: On 08/04/2010 08:39 AM, André Weidemann wrote: Hi, I recently upgraded my machine from Ubuntu 9.10 to 10.4 (x86_64). Ever since I upgraded my machine I cannot get

[PATCH 2/4] KVM: x86 emulator: disable writeback when decode dest operand

2010-08-04 Thread Wei Yongjun
This patch change to disable writeback when decode dest operand if the dest type is ImplicitOps or not specified. Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c | 23 ++- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git

[PATCH 3/4] KVM: x86 emulator: using SrcOne for instruction d0/d1 decoding

2010-08-04 Thread Wei Yongjun
Using SrcOne for instruction d0/d1 decoding. Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 31c33f4..1ce3c4f 100644 ---

[PATCH 4/4] KVM: x86 emulator: remove dup code of in/out instruction

2010-08-04 Thread Wei Yongjun
Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c | 50 --- 1 files changed, 21 insertions(+), 29 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 1ce3c4f..d197b46 100644 ---

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gerd Hoffmann
Hi, (1) -M somethingold. PCI devices don't have a pci rom bar then by default because they didn't not have one in older qemu versions, so we need some other way to pass the option rom to seabios. What did we do back then? before we had the fwcfg interface? Have qemu instead of

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Paolo Bonzini
On 08/03/2010 11:34 PM, Anthony Liguori wrote: Comparing (from personal experience) the complexity of the Windows drivers for Xen and virtio shows that it's not a bad idea at all. Not quite sure what you're suggesting, but I could have been clearer. Instead of having virtio-blk where a virtio

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 10:56 AM, Gerd Hoffmann wrote: Hi, (1) -M somethingold. PCI devices don't have a pci rom bar then by default because they didn't not have one in older qemu versions, so we need some other way to pass the option rom to seabios. What did we do back then? before we had the

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Tvrtko Ursulin
On Tuesday 03 Aug 2010 21:57:48 Yinghai Lu wrote: On Tue, Aug 3, 2010 at 8:59 AM, Tvrtko Ursulin tvrtko.ursu...@sophos.com wrote: On Tuesday 03 Aug 2010 16:17:20 Tvrtko Ursulin wrote: On Tuesday 03 Aug 2010 15:57:03 Tvrtko Ursulin wrote: On Tuesday 03 Aug 2010 15:51:08 Avi Kivity wrote:

Re: performance with libvirt and kvm

2010-08-04 Thread Stefan Hajnoczi
On Tue, Aug 3, 2010 at 11:04 PM, Nirmal Guhan vavat...@gmail.com wrote: I am seeing a performance degradation while using libvirt to start my vm (kvm). vm is fedora 12 and host is also fedora 12, both with 2.6.32.10-90.fc12.i686. Here are the statistics from iperf : From VM: [  3]  0.0-30.0

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 10:57 AM, Paolo Bonzini wrote: On 08/03/2010 11:34 PM, Anthony Liguori wrote: Comparing (from personal experience) the complexity of the Windows drivers for Xen and virtio shows that it's not a bad idea at all. Not quite sure what you're suggesting, but I could have been

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/03/2010 10:13 PM, Richard W.M. Jones wrote: On Tue, Aug 03, 2010 at 09:43:39PM +0300, Avi Kivity wrote: libguestfs does not depend on an x86 architectural feature. qemu-system-x86_64 emulates a PC, and PCs don't have -kernel. We should discourage people from depending on this interface

[PATCH] KVM: x86 emulator: fix group 8 instruction decoding

2010-08-04 Thread Wei Yongjun
Group 8 instruction, BT[S|R|C] should be mask as BitOp. Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index d197b46..eba5a67 100644 ---

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 11:17:28AM +0300, Avi Kivity wrote: On 08/04/2010 10:56 AM, Gerd Hoffmann wrote: Hi, (1) -M somethingold. PCI devices don't have a pci rom bar then by default because they didn't not have one in older qemu versions, so we need some other way to pass the option rom

Re: [RFC PATCH v8 00/16] Provide a zero-copy method on KVM virtio-net.

2010-08-04 Thread Arnd Bergmann
On Wednesday 04 August 2010, Dong, Eddie wrote: Arnd Bergmann wrote: On Friday 30 July 2010 17:51:52 Shirley Ma wrote: I think it should be less duplicated code in the kernel if we use macvtap to support what media passthrough driver here. Since macvtap has support virtio_net head and

[PATCH] KVM: x86 emulator: cleanup for BitOp instruction emulation

2010-08-04 Thread Wei Yongjun
Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index eba5a67..c05a5d7 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Yinghai Lu
On 08/04/2010 01:18 AM, Tvrtko Ursulin wrote: On Tuesday 03 Aug 2010 21:57:48 Yinghai Lu wrote: On Tue, Aug 3, 2010 at 8:59 AM, Tvrtko Ursulin tvrtko.ursu...@sophos.com wrote: On Tuesday 03 Aug 2010 16:17:20 Tvrtko Ursulin wrote: On Tuesday 03 Aug 2010 15:57:03 Tvrtko Ursulin wrote: On

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Tvrtko Ursulin
On Wednesday 04 Aug 2010 10:05:36 Yinghai Lu wrote: On 08/04/2010 01:18 AM, Tvrtko Ursulin wrote: On Tuesday 03 Aug 2010 21:57:48 Yinghai Lu wrote: On Tue, Aug 3, 2010 at 8:59 AM, Tvrtko Ursulin tvrtko.ursu...@sophos.com wrote: On Tuesday 03 Aug 2010 16:17:20 Tvrtko Ursulin wrote: On

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Tvrtko Ursulin
On Wednesday 04 Aug 2010 10:16:08 Tvrtko Ursulin wrote: On Wednesday 04 Aug 2010 10:05:36 Yinghai Lu wrote: On 08/04/2010 01:18 AM, Tvrtko Ursulin wrote: On Tuesday 03 Aug 2010 21:57:48 Yinghai Lu wrote: On Tue, Aug 3, 2010 at 8:59 AM, Tvrtko Ursulin tvrtko.ursu...@sophos.com wrote:

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gerd Hoffmann
On 08/04/10 10:17, Avi Kivity wrote: On 08/04/2010 10:56 AM, Gerd Hoffmann wrote: Hi, (1) -M somethingold. PCI devices don't have a pci rom bar then by default because they didn't not have one in older qemu versions, so we need some other way to pass the option rom to seabios. What did we

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Richard W.M. Jones
On Wed, Aug 04, 2010 at 08:54:35AM +0300, Avi Kivity wrote: On 08/04/2010 01:06 AM, Richard W.M. Jones wrote: On Tue, Aug 03, 2010 at 10:24:41PM +0300, Avi Kivity wrote: Why do we need to transfer roms? These are devices on the memory bus or pci bus, it just needs to be there at the right

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 10:24:28AM +0100, Richard W.M. Jones wrote: On Wed, Aug 04, 2010 at 08:54:35AM +0300, Avi Kivity wrote: On 08/04/2010 01:06 AM, Richard W.M. Jones wrote: On Tue, Aug 03, 2010 at 10:24:41PM +0300, Avi Kivity wrote: Why do we need to transfer roms? These are devices

Re: [PATCH] KVM: x86 emulator: cleanup for BitOp instruction emulation

2010-08-04 Thread Paolo Bonzini
On 08/04/2010 11:01 AM, Wei Yongjun wrote: Signed-off-by: Wei Yongjunyj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index eba5a67..c05a5d7 100644 ---

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Yinghai Lu
On 08/04/2010 02:16 AM, Tvrtko Ursulin wrote: On Wednesday 04 Aug 2010 10:05:36 Yinghai Lu wrote: On 08/04/2010 01:18 AM, Tvrtko Ursulin wrote: On Tuesday 03 Aug 2010 21:57:48 Yinghai Lu wrote: On Tue, Aug 3, 2010 at 8:59 AM, Tvrtko Ursulin tvrtko.ursu...@sophos.com wrote: On Tuesday 03 Aug

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 10:16:08AM +0100, Tvrtko Ursulin wrote: On Wednesday 04 Aug 2010 10:05:36 Yinghai Lu wrote: On 08/04/2010 01:18 AM, Tvrtko Ursulin wrote: On Tuesday 03 Aug 2010 21:57:48 Yinghai Lu wrote: On Tue, Aug 3, 2010 at 8:59 AM, Tvrtko Ursulin

Re: [PATCH] KVM: x86 emulator: cleanup for BitOp instruction emulation

2010-08-04 Thread Wei Yongjun
On 08/04/2010 11:01 AM, Wei Yongjun wrote: Signed-off-by: Wei Yongjunyj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index eba5a67..c05a5d7 100644 ---

[PATCHv2] KVM: x86 emulator: cleanup for BitOp instruction emulation

2010-08-04 Thread Wei Yongjun
Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index eba5a67..74008ed 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@

Re: [PATCH] KVM: x86 emulator: fix group 8 instruction decoding

2010-08-04 Thread Paolo Bonzini
On 08/04/2010 10:27 AM, Wei Yongjun wrote: Group 8 instruction, BT[S|R|C] should be mask as BitOp. Signed-off-by: Wei Yongjunyj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Tvrtko Ursulin
On Wednesday 04 Aug 2010 10:34:28 Yinghai Lu wrote: [snip] so your host is 32bit or 64bit? Host is 64-bit. can you use working 32bit guest to dump mptable like debug apic=debug acpi=off earlyprintk... ? This? From 2.6.34... [0.00] Using APIC driver default [0.00] Intel

Re: [PATCHv2] KVM: x86 emulator: cleanup for BitOp instruction emulation

2010-08-04 Thread Paolo Bonzini
On 08/04/2010 11:37 AM, Wei Yongjun wrote: Signed-off-by: Wei Yongjunyj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index eba5a67..74008ed 100644 ---

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 12:24 PM, Richard W.M. Jones wrote: Just like the initrd? There isn't enough address space for a 100MB initrd in ROM. Because of limits of the original PC, sure, where you had to fit everything in 0xa-0xf or whatever it was. But this isn't a real PC. You can map the

Re: VM not booting anymore after Ubuntu upgrade

2010-08-04 Thread Avi Kivity
On 08/04/2010 10:38 AM, André Weidemann wrote: Please enable ftrace: # mount -t debugfs debugfs /sys/kernel/debug # cd /sys/kernel/debug/tracing # echo 10 buffer_size_kb # echo kvm set_event # echo 1 tracing on run the guest and kill qemu immediately when you get to the blank screen

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Eric W. Biederman
Gleb Natapov g...@redhat.com writes: On Wed, Aug 04, 2010 at 10:16:08AM +0100, Tvrtko Ursulin wrote: Not the tip but 2.6.35 with earlyprintk=ttyS0,115200: [0.00] Processor #0 (Bootup-CPU) [0.00] I/O APIC #1 Version 17 at 0xFEC0. [0.00] BUG: unable to handle

Re: [PATCH repost] sched: export sched_set/getaffinity to modules

2010-08-04 Thread Peter Zijlstra
On Tue, 2010-07-27 at 07:55 +0300, Michael S. Tsirkin wrote: Peter, could you please indicate whether you think this is the way to go, too? I really dislike it, as you indicated, you now want priority too.. It seems the problem is that we normally don't consider work done by kernel threads

Re: 2.6.35 hangs on early boot in KVM

2010-08-04 Thread Tvrtko Ursulin
On Wednesday 04 Aug 2010 11:37:43 Eric W. Biederman wrote: Gleb Natapov g...@redhat.com writes: On Wed, Aug 04, 2010 at 10:16:08AM +0100, Tvrtko Ursulin wrote: Not the tip but 2.6.35 with earlyprintk=ttyS0,115200: [0.00] Processor #0 (Bootup-CPU) [0.00] I/O APIC #1

Re: VM not booting anymore after Ubuntu upgrade

2010-08-04 Thread André Weidemann
On 04.08.2010 12:31, Avi Kivity wrote: On 08/04/2010 10:38 AM, André Weidemann wrote: Please enable ftrace: # mount -t debugfs debugfs /sys/kernel/debug # cd /sys/kernel/debug/tracing # echo 10 buffer_size_kb # echo kvm set_event # echo 1 tracing on run the guest and kill qemu

Re: VM not booting anymore after Ubuntu upgrade

2010-08-04 Thread Avi Kivity
On 08/04/2010 02:22 PM, André Weidemann wrote: On 04.08.2010 12:31, Avi Kivity wrote: On 08/04/2010 10:38 AM, André Weidemann wrote: Please enable ftrace: # mount -t debugfs debugfs /sys/kernel/debug # cd /sys/kernel/debug/tracing # echo 10 buffer_size_kb # echo kvm set_event # echo

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Richard W.M. Jones
On Wed, Aug 04, 2010 at 12:52:23PM +0300, Avi Kivity wrote: On 08/04/2010 12:24 PM, Richard W.M. Jones wrote: Just like the initrd? There isn't enough address space for a 100MB initrd in ROM. Because of limits of the original PC, sure, where you had to fit everything in 0xa-0xf or

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 02:33 PM, Richard W.M. Jones wrote: I'm only allocating 500MB of RAM, so there's easily enough space to put a large ROM, with tons of room for growth (of both RAM and ROM). Yes, even real hardware has done this. The Weitek math copro mapped itself in at physical memory addresses

[PATCH 2/2] x86 emulator: Add into, int, and int3 instructions (opcodes 0xcc-0xce)

2010-08-04 Thread Mohammed Gamal
This adds support for int instructions to the emulator Signed-off-by: Mohammed Gamal m.gamal...@gmail.com --- arch/x86/kvm/emulate.c | 78 1 files changed, 78 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/emulate.c

[PATCH] x86 emulator: Fix nop emulation

2010-08-04 Thread Mohammed Gamal
If a nop instruction is encountered, we jump directly to the done label. This skip updating rip. Break from the switch case instead Signed-off-by: Mohammed Gamal m.gamal...@gmail.com --- arch/x86/kvm/emulate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: VM not booting anymore after Ubuntu upgrade

2010-08-04 Thread André Weidemann
On 04.08.2010 13:29, Avi Kivity wrote: On 08/04/2010 02:22 PM, André Weidemann wrote: On 04.08.2010 12:31, Avi Kivity wrote: On 08/04/2010 10:38 AM, André Weidemann wrote: Please enable ftrace: # mount -t debugfs debugfs /sys/kernel/debug # cd /sys/kernel/debug/tracing # echo 10

Re: [PATCH 13/24] Implement VMREAD and VMWRITE

2010-08-04 Thread Nadav Har'El
On Wed, Jun 16, 2010, Gleb Natapov wrote about Re: [PATCH 13/24] Implement VMREAD and VMWRITE: + set_rflags_to_vmx_fail_valid(vcpu); + vmcs_write32(VM_INSTRUCTION_ERROR, 12); VM_INSTRUCTION_ERROR is read only and when do you transfer it to vmcs12 anyway?. I think

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 12:33:18PM +0100, Richard W.M. Jones wrote: On Wed, Aug 04, 2010 at 12:52:23PM +0300, Avi Kivity wrote: On 08/04/2010 12:24 PM, Richard W.M. Jones wrote: Just like the initrd? There isn't enough address space for a 100MB initrd in ROM. Because of limits of the

Re: bad O_DIRECT read and write performance with small block sizes with virtio

2010-08-04 Thread Stefan Hajnoczi
On Tue, Aug 3, 2010 at 5:14 PM, Avi Kivity a...@redhat.com wrote:  On 08/03/2010 05:57 PM, John Leach wrote: On Tue, 2010-08-03 at 17:44 +0300, Avi Kivity wrote: On 08/03/2010 05:40 PM, John Leach wrote: dd if=/dev/mapper/zero of=/dev/null bs=8k count=100 iflag=direct 819200 bytes

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 02:57 AM, Paolo Bonzini wrote: On 08/03/2010 11:34 PM, Anthony Liguori wrote: Comparing (from personal experience) the complexity of the Windows drivers for Xen and virtio shows that it's not a bad idea at all. Not quite sure what you're suggesting, but I could have been

RE: unable to load viostor driver in w2k3 x86

2010-08-04 Thread Gerrit van der Kolk
I managed to get libvirtd out of the loop. I'm starting the vm with: qemu-kvm -S -M fedora-13 -enable-kvm -m 2048 -smp 2,sockets=1,cores=2,threads=1 -name test -uuid 5ffc03bf-3562-1c90-9543-a64b2416a4a1 -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/test.monitor,server,nowait

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 04:24 AM, Richard W.M. Jones wrote: On Wed, Aug 04, 2010 at 08:54:35AM +0300, Avi Kivity wrote: On 08/04/2010 01:06 AM, Richard W.M. Jones wrote: On Tue, Aug 03, 2010 at 10:24:41PM +0300, Avi Kivity wrote: Why do we need to transfer roms? These are devices

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 03:17 AM, Avi Kivity wrote: For playing games, there are three options: - existing fwcfg - fwcfg+dma - put roms in 4GB-2MB (or whatever we decide the flash size is) and have the BIOS copy them Existing fwcfg is the least amount of work and probably satisfactory for isapc.

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For playing games, there are three options: - existing fwcfg - fwcfg+dma - put roms in 4GB-2MB (or whatever we decide the flash size is) and have the BIOS copy them Existing fwcfg is

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 08:07 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For playing games, there are three options: - existing fwcfg - fwcfg+dma - put roms in 4GB-2MB (or whatever we decide the flash size

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Richard W.M. Jones
On Wed, Aug 04, 2010 at 04:07:09PM +0300, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For playing games, there are three options: - existing fwcfg - fwcfg+dma - put roms in 4GB-2MB (or whatever we decide

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Richard W.M. Jones
On Wed, Aug 04, 2010 at 08:15:04AM -0500, Anthony Liguori wrote: On 08/04/2010 08:07 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For playing games, there are three options: - existing fwcfg - fwcfg+dma -

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 02:24:08PM +0100, Richard W.M. Jones wrote: On Wed, Aug 04, 2010 at 08:15:04AM -0500, Anthony Liguori wrote: On 08/04/2010 08:07 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 02:22:29PM +0100, Richard W.M. Jones wrote: On Wed, Aug 04, 2010 at 04:07:09PM +0300, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For playing games, there are three options: -

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 08:15:04AM -0500, Anthony Liguori wrote: On 08/04/2010 08:07 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For playing games, there are three options: - existing fwcfg - fwcfg+dma -

Re: [PATCH 13/24] Implement VMREAD and VMWRITE

2010-08-04 Thread Nadav Har'El
On Wed, Jun 16, 2010, Gleb Natapov wrote about Re: [PATCH 13/24] Implement VMREAD and VMWRITE: On Mon, Jun 14, 2010 at 12:36:02PM +0300, Avi Kivity wrote: vmread doesn't support 64-bit writes to memory outside long mode, so you'll have to truncate the write. I think you'll be better off

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 08:34 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:15:04AM -0500, Anthony Liguori wrote: On 08/04/2010 08:07 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 08:52:44AM -0500, Anthony Liguori wrote: On 08/04/2010 08:34 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:15:04AM -0500, Anthony Liguori wrote: On 08/04/2010 08:07 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony Liguori wrote: On

RE: unable to load viostor driver in w2k3 x86

2010-08-04 Thread Gerrit van der Kolk
On Wed, 2010-08-04 at 14:53 +0200, Gerrit van der Kolk wrote: I managed to get libvirtd out of the loop. I'm starting the vm with: qemu-kvm -S -M fedora-13 -enable-kvm -m 2048 -smp 2,sockets=1,cores=2,threads=1 -name test -uuid 5ffc03bf-3562-1c90-9543-a64b2416a4a1 -nodefaults -chardev

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 09:00 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:52:44AM -0500, Anthony Liguori wrote: On 08/04/2010 08:34 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:15:04AM -0500, Anthony Liguori wrote: On 08/04/2010 08:07 AM, Gleb Natapov wrote: On

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 08:26 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 02:24:08PM +0100, Richard W.M. Jones wrote: On Wed, Aug 04, 2010 at 08:15:04AM -0500, Anthony Liguori wrote: On 08/04/2010 08:07 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 08:04:09AM -0500, Anthony

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Paolo Bonzini
On 08/04/2010 04:00 PM, Gleb Natapov wrote: Maybe we're just being too fancy here. We could rewrite -kernel/-append/-initrd to just generate a floppy image in RAM, and just boot from floppy. May be. Can floppy be 100M? Well, in theory you can have 16384 bytes/sector, 256 tracks, 255

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 09:14:01AM -0500, Anthony Liguori wrote: Unmapping device and mapping it at the same place is easy. Enumerating pci devices from multiboot.bin looks like unneeded churn though. Maybe we're just being too fancy here. We could rewrite -kernel/-append/-initrd to just

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 09:22:22AM -0500, Anthony Liguori wrote: On 08/04/2010 08:26 AM, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 02:24:08PM +0100, Richard W.M. Jones wrote: On Wed, Aug 04, 2010 at 08:15:04AM -0500, Anthony Liguori wrote: On 08/04/2010 08:07 AM, Gleb Natapov wrote: On Wed,

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 09:22 AM, Paolo Bonzini wrote: On 08/04/2010 04:00 PM, Gleb Natapov wrote: Maybe we're just being too fancy here. We could rewrite -kernel/-append/-initrd to just generate a floppy image in RAM, and just boot from floppy. May be. Can floppy be 100M? Well, in theory you can

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 09:38 AM, Gleb Natapov wrote: But even if it wasn't it can potentially create havoc. I think we currently believe that the northbridge likely never forwards RAM access to a device so this doesn't fit how hardware would work. Good point. More importantly, BIOSes and

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread David S. Ahern
On 08/03/10 12:43, Avi Kivity wrote: libguestfs does not depend on an x86 architectural feature. qemu-system-x86_64 emulates a PC, and PCs don't have -kernel. We should discourage people from depending on this interface for production use. That is a feature of qemu - and an important one

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 09:51 AM, David S. Ahern wrote: On 08/03/10 12:43, Avi Kivity wrote: libguestfs does not depend on an x86 architectural feature. qemu-system-x86_64 emulates a PC, and PCs don't have -kernel. We should discourage people from depending on this interface for production use.

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 09:50:55AM -0500, Anthony Liguori wrote: On 08/04/2010 09:38 AM, Gleb Natapov wrote: But even if it wasn't it can potentially create havoc. I think we currently believe that the northbridge likely never forwards RAM access to a device so this doesn't fit how hardware

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 10:01 AM, Gleb Natapov wrote: Hm, may be. I read seabios code differently, but may be I misread it. The BIOS Boot Specification spells it all out pretty clearly. If a ROM needs memory after the init function, it needs to use the traditional tricks to allocate long term

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 09:57:17AM -0500, Anthony Liguori wrote: On 08/04/2010 09:51 AM, David S. Ahern wrote: On 08/03/10 12:43, Avi Kivity wrote: libguestfs does not depend on an x86 architectural feature. qemu-system-x86_64 emulates a PC, and PCs don't have -kernel. We should discourage

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Alexander Graf
On 04.08.2010, at 17:25, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 09:57:17AM -0500, Anthony Liguori wrote: On 08/04/2010 09:51 AM, David S. Ahern wrote: On 08/03/10 12:43, Avi Kivity wrote: libguestfs does not depend on an x86 architectural feature. qemu-system-x86_64 emulates a PC,

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 05:31:12PM +0200, Alexander Graf wrote: On 04.08.2010, at 17:25, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 09:57:17AM -0500, Anthony Liguori wrote: On 08/04/2010 09:51 AM, David S. Ahern wrote: On 08/03/10 12:43, Avi Kivity wrote: libguestfs does not

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Alexander Graf
On 04.08.2010, at 17:48, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 05:31:12PM +0200, Alexander Graf wrote: On 04.08.2010, at 17:25, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 09:57:17AM -0500, Anthony Liguori wrote: On 08/04/2010 09:51 AM, David S. Ahern wrote: On 08/03/10 12:43,

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Gleb Natapov
On Wed, Aug 04, 2010 at 05:59:40PM +0200, Alexander Graf wrote: On 04.08.2010, at 17:48, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 05:31:12PM +0200, Alexander Graf wrote: On 04.08.2010, at 17:25, Gleb Natapov wrote: On Wed, Aug 04, 2010 at 09:57:17AM -0500, Anthony Liguori

Re: [PATCH 13/24] Implement VMREAD and VMWRITE

2010-08-04 Thread Nadav Har'El
On Mon, Jun 14, 2010, Avi Kivity wrote about Re: [PATCH 13/24] Implement VMREAD and VMWRITE: +#ifdef CONFIG_X86_64 +switch (vmcs_field_type(field)) { +case VMCS_FIELD_TYPE_U64: case VMCS_FIELD_TYPE_ULONG: +if (!is_long_mode(vcpu)) { +

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 04:04 PM, Anthony Liguori wrote: On 08/04/2010 03:17 AM, Avi Kivity wrote: For playing games, there are three options: - existing fwcfg - fwcfg+dma - put roms in 4GB-2MB (or whatever we decide the flash size is) and have the BIOS copy them Existing fwcfg is the least amount of

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 04:24 PM, Richard W.M. Jones wrote: It's boot time, so you can just map it over some existing RAM surely? Linuxboot.bin can work out where to map it so it won't be in any memory either being used or the target for the copy. There's no such thing as boot time from the host's

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 04:52 PM, Anthony Liguori wrote: This is not like DMA event if done in chunks and chunks can be pretty big. The code that dials with copying may temporary unmap some pci devices to have more space there. That's a bit complicated because SeaBIOS is managing the PCI devices

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 05:39 PM, Anthony Liguori wrote: We could make kernel an awful lot smarter but unless we've got someone just itching to write 16-bit option rom code, I think our best bet is to try to leverage a standard bootloader and expose a disk containing the kernel/initrd. A problem

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 07:30 PM, Avi Kivity wrote: On 08/04/2010 04:52 PM, Anthony Liguori wrote: This is not like DMA event if done in chunks and chunks can be pretty big. The code that dials with copying may temporary unmap some pci devices to have more space there. That's a bit complicated

Re: [PATCH 13/24] Implement VMREAD and VMWRITE

2010-08-04 Thread Avi Kivity
On 08/04/2010 07:09 PM, Nadav Har'El wrote: + kvm_read_guest_virt(gva,field_value, + vmcs_field_size(field_type, vcpu), vcpu, NULL); Check for exception. I am not sure what I should really do here... In emulating VMWRITE, we try to read from memory the

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 11:30 AM, Avi Kivity wrote: On 08/04/2010 04:52 PM, Anthony Liguori wrote: This is not like DMA event if done in chunks and chunks can be pretty big. The code that dials with copying may temporary unmap some pci devices to have more space there. That's a bit complicated

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 03:53 PM, Anthony Liguori wrote: So how do we enable support for more than 20 disks? I think a virtio-scsi is inevitable.. Not only for large numbers of disks, also for JBOD performance. If you have one queue per disk you'll have low queue depths and high interrupt rates.

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 11:36 AM, Avi Kivity wrote: On 08/04/2010 07:30 PM, Avi Kivity wrote: On 08/04/2010 04:52 PM, Anthony Liguori wrote: This is not like DMA event if done in chunks and chunks can be pretty big. The code that dials with copying may temporary unmap some pci devices to have more

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Alexander Graf
On 04.08.2010, at 18:36, Avi Kivity wrote: On 08/04/2010 07:30 PM, Avi Kivity wrote: On 08/04/2010 04:52 PM, Anthony Liguori wrote: This is not like DMA event if done in chunks and chunks can be pretty big. The code that dials with copying may temporary unmap some pci devices to have more

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 11:44 AM, Avi Kivity wrote: On 08/04/2010 03:53 PM, Anthony Liguori wrote: So how do we enable support for more than 20 disks? I think a virtio-scsi is inevitable.. Not only for large numbers of disks, also for JBOD performance. If you have one queue per disk you'll have

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Alexander Graf
On 04.08.2010, at 18:46, Anthony Liguori wrote: On 08/04/2010 11:44 AM, Avi Kivity wrote: On 08/04/2010 03:53 PM, Anthony Liguori wrote: So how do we enable support for more than 20 disks? I think a virtio-scsi is inevitable.. Not only for large numbers of disks, also for JBOD

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 07:08 PM, Gleb Natapov wrote: After applying cache fix nothing definite as far as I remember (I ran it last time almost 2 week ago, need to rerun). Code always go through emulator now and check direction flags to update SI/DI accordingly. Emulator is a big switch and it calls

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Anthony Liguori
On 08/04/2010 11:48 AM, Alexander Graf wrote: On 04.08.2010, at 18:46, Anthony Liguori wrote: On 08/04/2010 11:44 AM, Avi Kivity wrote: On 08/04/2010 03:53 PM, Anthony Liguori wrote: So how do we enable support for more than 20 disks? I think a virtio-scsi is inevitable..

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Alexander Graf
On 04.08.2010, at 18:49, Anthony Liguori wrote: On 08/04/2010 11:48 AM, Alexander Graf wrote: On 04.08.2010, at 18:46, Anthony Liguori wrote: On 08/04/2010 11:44 AM, Avi Kivity wrote: On 08/04/2010 03:53 PM, Anthony Liguori wrote: So how do we enable support for more

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 07:44 PM, Anthony Liguori wrote: The option rom stuff has a number of short comings. Because we hijack int19, extboot doesn't get to run. That means that if you use -kernel to load a grub (the Ubuntu guys for their own absurd reasons) then grub does not see extboot backed

Re: [Qemu-devel] Anyone seeing huge slowdown launching qemu with Linux 2.6.35?

2010-08-04 Thread Avi Kivity
On 08/04/2010 07:45 PM, Alexander Graf wrote: I see two alternatives out of this mess: 1) Speed up string PIO so we're actually fast again. Certainly, the best option given that it needs no new interfaces, and improves the most workloads. 2) Using a different interface (that could also

  1   2   >