Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-16 Thread Avi Kivity
Luca wrote: > On 7/15/07, Luca <[EMAIL PROTECTED]> wrote: >> On 7/15/07, Luca <[EMAIL PROTECTED]> wrote: >> > On 7/13/07, Dave Hansen <[EMAIL PROTECTED]> wrote: >> > > diff -ru kvm-fast-dmesg.txt kvm-slow-dmesg.txt >> > > >> > > Linux version 2.6.22 ([EMAIL PROTECTED]) (gcc version 4.1.2 (Ubuntu

Re: [kvm-devel] [GIT PULL][RESEND] KVM Updates for 2.6.23-rc1

2007-07-16 Thread Avi Kivity
Linus Torvalds wrote: > On Sat, 14 Jul 2007, Avi Kivity wrote: > >> Linus, please do your usual thing from the repository and branch at >> > > It has code like > > + /* Can deadlock when called with interrupts disabled */ > + WARN_ON(irqs_disabled()); > + >

[kvm-devel] gdb behaviour?

2007-07-16 Thread Jun Koi
Hi, I am using gdb to debug Linux guest VM. Steps are like below: - Start gdbserver in qemu's monitor - From another console, run gdb and connect it to "localhost:1234" - Set breakpoints in guest VM When a breakpoint is hit inside guest, gdb is notified. The problem is that I cannot send "c" comm

Re: [kvm-devel] gdb behaviour?

2007-07-16 Thread Avi Kivity
Jun Koi wrote: > Hi, > > I am using gdb to debug Linux guest VM. Steps are like below: > - Start gdbserver in qemu's monitor > - From another console, run gdb and connect it to "localhost:1234" > - Set breakpoints in guest VM > > When a breakpoint is hit inside guest, gdb is notified. The problem i

Re: [kvm-devel] [PATCH] KVM-USER: Fix for CPU interrupts in QEMU

2007-07-16 Thread Gregory Haskins
On Sun, 2007-07-15 at 10:39 +0300, Avi Kivity wrote: > When applied to current HEAD, this doesn't work. Booting windows or > Linux, quite soon during boot everything freezes. Crap. Not sure whats happening as I definitely tested that during development. Ill have to take a look. -Greg

Re: [kvm-devel] accessing USB disk-on-key from windows (under KVM)

2007-07-16 Thread Avi Kivity
Ian Brown wrote: > Hello, > Is there a way to access a USB disk-on-key from windows which runs on > Linux under KVM? > > You can add it as a regular disk (-hdb /dev/sdb or whatever it's called; make sure it isn't mounted in the host) or maybe via the -usbdevice option (don't know if/how that wo

Re: [kvm-devel] accessing USB disk-on-key from windows (under KVM)

2007-07-16 Thread Anthony Liguori
Avi Kivity wrote: > Ian Brown wrote: > >> Hello, >> Is there a way to access a USB disk-on-key from windows which runs on >> Linux under KVM? >> >> >> > > You can add it as a regular disk (-hdb /dev/sdb or whatever it's called; > make sure it isn't mounted in the host) or maybe via the -

[kvm-devel] [PATCH 3/3] KVM - add hypercall nr to kvm_run

2007-07-16 Thread Jeff Dike
Add the hypercall number to kvm_run and initialize it. This might be considered API-changing, so I kept it separate. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- drivers/kvm/kvm_main.c |1 + include/linux/kvm.h|1 + 2 files changed, 2 insertions(+) Index: kvm/drivers/kvm/kvm_main

[kvm-devel] [PATCH 1/3] KVM - Add missing kvm_run initializations

2007-07-16 Thread Jeff Dike
There are a bunch of missing initializations of run->exit_reason and associated data. kvm_hypercall wasn't setting exit_reason at all. When exit_reason is KVM_EXIT_MMIO, the mmio data isn't initialized. I don't know what it should be, so I just stuck a FIXME in there. There were some missing in

[kvm-devel] [PATCH 2/3] KVM - Fix hypercall arguments

2007-07-16 Thread Jeff Dike
It looks like kvm_hypercall is trying to match the system call convention and mixed up the call number and first argument in the 32-bit case. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> -- drivers/kvm/kvm_main.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: kvm/drivers/kvm

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-16 Thread Luca
On 7/16/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Luca wrote: > > On 7/15/07, Luca <[EMAIL PROTECTED]> wrote: > >> On 7/15/07, Luca <[EMAIL PROTECTED]> wrote: > >> > On 7/13/07, Dave Hansen <[EMAIL PROTECTED]> wrote: > >> > > diff -ru kvm-fast-dmesg.txt kvm-slow-dmesg.txt > >> > > > >> > > Linux

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-16 Thread Dave Hansen
On Sat, 2007-07-14 at 09:27 +0300, Avi Kivity wrote: > Dave, can you compare the output of hdparm -v /dev/hda? Maybe more > clues there. slow: qemu:~# hdparm -v /dev/hda /dev/hda: multcount= 16 (on) IO_support = 0 (default 16-bit) unmaskirq= 0 (off) using_dma= 1 (on) keepse

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-16 Thread Dave Hansen
On Sun, 2007-07-15 at 21:27 +0200, Luca wrote: > On 7/13/07, Dave Hansen <[EMAIL PROTECTED]> wrote: > > diff -ru kvm-fast-dmesg.txt kvm-slow-dmesg.txt > > > > Linux version 2.6.22 ([EMAIL PROTECTED]) (gcc version 4.1.2 (Ubuntu > > 4.1.2-0ubuntu4)) #13 Wed Jul 11 15:27:01 PDT 2007 > > Is this a v

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-16 Thread Dave Hansen
On Sun, 2007-07-15 at 21:27 +0200, Luca wrote: > On 7/13/07, Dave Hansen <[EMAIL PROTECTED]> wrote: > > diff -ru kvm-fast-dmesg.txt kvm-slow-dmesg.txt > > > > Linux version 2.6.22 ([EMAIL PROTECTED]) (gcc version 4.1.2 (Ubuntu > > 4.1.2-0ubuntu4)) #13 Wed Jul 11 15:27:01 PDT 2007 > > Is this a v

Re: [kvm-devel] kvm-27 vs 28 I/O speed

2007-07-16 Thread Dave Hansen
On Sun, 2007-07-15 at 23:22 +0200, Luca wrote: > Can you re-test KVM 27 with it's BIOS (i.e. use something like -L > ~/src/kvm-27/qemu/pc-bios)? Doing that does appear to make it behave like kvm-28. DMA enabled, and slow I/O: qemu:~# hdparm -v /dev/hda /dev/hda: multcount= 16 (on) IO_sup

[kvm-devel] kvm.git git question

2007-07-16 Thread Gregory Haskins
Is there a way I can see a list of commits that are related only to KVM since 2.6.22 without seeing all the stuff from upstream? -Greg - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version

[kvm-devel] Add string PIO support

2007-07-16 Thread Dong, Eddie
Avi: This is to add kernel string pio support which is used by some of Windows version. The patch is developped on top of lapic2 branch but should be fine to mainline head too. thanks, eddie commit ee682213bfd318d40bb6826e5273ce6724658b95 Author: root <[EMAIL PROTECTED](none)> Date: Tu

[kvm-devel] kvm-29 failing to exit or reboot

2007-07-16 Thread Charles Duffy
Per subject. Running 2.6.20-gentoo-r6 with the kvm-29 kernel module on an Intel chip; both host and guest are 64-bit. The end of the installer I'm trying to test goes like this: === snip + sync + reboot -f md: stopping all md devices. Restarting system. machine restart === snip ...and there it si

[kvm-devel] [RESOLVED] Re: kvm-29 failing to exit or reboot

2007-07-16 Thread Charles Duffy
On rereading this post, I find that I forgot to mention my use of -no-reboot. As I wish the VM to exit on a reboot attempt (and "kvm --help" documents -no-reboot as "exit instead of rebooting"), I am using said flag. If I leave out -no-reboot, "reboot -f" causes kvm to exit rather than hang. Not t

Re: [kvm-devel] apic+ioapiuc patch

2007-07-16 Thread Dong, Eddie
Avi: Most of the comments are fixed, but need to have a double check on several point of them. Can u have a look? Eddie >> + >> +switch (delivery_mode) { >> +case dest_LowestPrio: >> > >Wierd constant. How about IOAPIC_DEST_LOWEST_PRIO? dest_LowestPrio is defined in native

[kvm-devel] I started taking two Anatrim capsules before most meals, and lost 30 pounds in three months. I feel lean, defined, and healthy, thanks in great part to Anatrim!

2007-07-16 Thread Dennis Sanchez
Anatrim gives you control over your appetite being the most effective natural appetite suppressant ever found. My wife and I been on roller coater diets for years and years. http://www.ramboel.net - This SF.net email is spo

Re: [kvm-devel] apic+ioapiuc patch

2007-07-16 Thread Dor Laor
>>> +static void vcpu_kick_intr(void *info) >>> +{ >>> +#ifdef DEBUG >>> + struct kvm_vcpu *vcpu = (struct kvm_vcpu *)info; >>> + printk(KERN_DEBUG "vcpu_kick_intr %p \n", vcpu); >>> +#endif >>> +} >>> + >>> +void kvm_vcpu_kick(struct kvm_vcpu *vcpu) >>> +{ >>> + int ipi_pcpu = vcpu->cpu; >>>