Re: [kvm-devel] [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-27 Thread D. Hazelton
On Saturday 27 January 2007 16:28, S.Çağlar Onur wrote: > 27 Oca 2007 Cts tarihinde, Avi Kivity şunları yazmıştı: > > The patch looks correct, but I don't understand the gcc error message. > > Are we sure this isn't a gcc 4.2 bug? > > > > "g" appears to be equivalent to "rmi", if "i" is impossible,

Re: [kvm-devel] [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-27 Thread S.Çağlar Onur
27 Oca 2007 Cts tarihinde, Avi Kivity şunları yazmıştı: > The patch looks correct, but I don't understand the gcc error message. > Are we sure this isn't a gcc 4.2 bug? > > "g" appears to be equivalent to "rmi", if "i" is impossible, gcc is free > to use "r" or "m", no? Accorgind to GCC devs. its

Re: [kvm-devel] [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-27 Thread Paweł Sikora
On Saturday 27 of January 2007 10:05:53 Avi Kivity wrote: > "g" appears to be equivalent to "rmi", if "i" is impossible, gcc is free > to use "r" or "m", no? `r' A register operand is allowed provided that it is in a general register. `g' Any register, memory or immediate integer o

Re: [kvm-devel] KVM performance

2007-01-27 Thread Rusty Russell
On Sat, 2007-01-27 at 10:34 +0200, Avi Kivity wrote: > In addition, quite a few performance optimizations are missing from kvm: Hi Avi! Just thought I'd share my experience with some of these optimizations in lguest. I use virtbench (http://ozlabs.org/~rusty/virtbench) to try to measure

Re: [kvm-devel] [PATCH] KVM: 'asm' operand has impossible constraints

2007-01-27 Thread Avi Kivity
S.Çağlar Onur wrote: > Hi; > > -rc6 fails with latest gcc 4.2 snapshot as following; > > CC [M] drivers/kvm/svm.o > drivers/kvm/svm.c:206: warning: 'inject_db' defined but not used > drivers/kvm/svm.c: In function 'svm_vcpu_run': > drivers/kvm/kvm.h:560: error: 'asm' operand has impossible constra

Re: [kvm-devel] Clock running at double speed in guest

2007-01-27 Thread Avi Kivity
Tim Chen wrote: > I notice that when I am testing kvm, the clock on guest is running at > twice the speed. Same thing also happen using qemu without kvm. > > I look at my wall clock when I issue the command "time sleep 30". When > the command returns and report 30 sec has elasped, I found that ac

Re: [kvm-devel] Problem with SMP boot

2007-01-27 Thread Avi Kivity
Tim Chen wrote: > On Fri, 2007-01-26 at 19:58 +0200, Avi Kivity wrote: > >> >> >> kvm only supports uniprocessor guests at this time. >> >> > > Thanks for the clarification. Is SMP support for guests > expected soon? > For the next few weeks I plan to focus on stability, correctness

Re: [kvm-devel] Kernel debugging with KVM?

2007-01-27 Thread Avi Kivity
Jun Koi wrote: > Hi, > > I am investigating the possibility of debugging guest kernel with KVM. > Anybody may shed some lights into how KVM handles breakpoints? > > Suppose that we put a breakpoint (0xCC opcode in x86) into guest > kernel. When the kernel hits the breakpoint, which one will handle

Re: [kvm-devel] KVM performance

2007-01-27 Thread Avi Kivity
Tim Chen wrote: > Hi, > > I did some testing of KVM on my woodcrest machine. And I found that > building a 2.6.19 kernel with identical configuration takes 845 sec on a > guest and 210 sec on the host. So the compile is about 4X slower on the > guest :( > > The guest ran with 2.6.19 kernel and ho

Re: [kvm-devel] Problem with SMP boot

2007-01-27 Thread Avi Kivity
Matthew Hall wrote: > Avi Kivity wrote: > >> kvm only supports uniprocessor guests at this time. >> > > Out of interest, if/when when. > kvm supports smp guests aswell as hosts would > the guest be presented with a multiple virtual or physical cpu's? > Ie. If the guest has multiple vir