Re: [kvm-devel] [BUG] Oops with KVM-27

2007-06-05 Thread Avi Kivity
Luca Tettamanti wrote: > Il Mon, Jun 04, 2007 at 11:51:10PM +0300, Avi Kivity ha scritto: > >>> While doing repeated tests with the installer I ran into another >>> (unrelated) problem. Sometimes the guest kernel hangs at boot at: >>> >>> NET: Registered protocol family 2 >>> >>> with any kind

Re: [kvm-devel] [kvm-commits] kvm: kvmctl: create secondary vcpus

2007-06-05 Thread Avi Kivity
Nguyen Anh Quynh wrote: > Hi Avi, > > Perhaps I miss something, but I dont see you initialize ncpus anywhere > in the patch? > Good catch. Fixed. -- error compiling committee.c: too many arguments to function - This SF.ne

Re: [kvm-devel] [PATCH] memslot check before deferencing

2007-06-05 Thread Avi Kivity
Nguyen Anh Quynh wrote: > So take this patch instead. It remove the verification for NULL value > of memslot in mark_page_dirty(). > Applied, thanks. > I am trying to send patch in 2 format: .txt and .patch. If your mailer > cannot see them as inline text, I guess that is my gmail problem , and

Re: [kvm-devel] [kvm-commits] kvm: kvmctl: create secondary vcpus

2007-06-05 Thread Jun Koi
So now we can have SMP guest with KVM? Great! One thing I dont understand: I dont see where you unlock vcpu[n].sipi_sem? Thanks, Jun On 6/5/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > repository: /home/avi/kvm > branch: master > commit 61f2f77a6f11a08f06134c03e083713c78765509 > Author: Avi Kivit

Re: [kvm-devel] [kvm-commits] kvm: kvmctl: create secondary vcpus

2007-06-05 Thread Avi Kivity
Jun Koi wrote: > So now we can have SMP guest with KVM? Great! > It's not done yet. > One thing I dont understand: I dont see where you unlock > vcpu[n].sipi_sem? > That's still cooking. I've written small pseudo apic which can issue the sipi. -- error compiling committee.c: too many argume

[kvm-devel] pre-preparation for in-kernel device model

2007-06-05 Thread Dong, Eddie
When in kernel device model is introduced, the guest interrupt status may get changed when after it injected an IRQ and thus guest see a messed interrupt state. This patch tries to disable irq at that window to avoid the confusion. Signed-off-by: Yaozu (Eddie) Dong <[EMAIL PROTECTED]>

[kvm-devel] Balloon driver?

2007-06-05 Thread Jun Koi
Hi, I want to try the balloon driver. Do we have it in any git tree? The git tree I am having now only has master branch, and nothing else. (Maybe the balloon driver is not working yet, but I am curious when see the userspace code in user/) Thanks, Jun -

Re: [kvm-devel] pre-preparation for in-kernel device model

2007-06-05 Thread Avi Kivity
Dong, Eddie wrote: > When in kernel device model is introduced, the guest interrupt status > may get changed when after it injected an IRQ and thus guest see a > messed interrupt state. This patch tries to disable irq at that window > to avoid the confusion. > > > Signed-off-by: Yaozu (Eddi

Re: [kvm-devel] Balloon driver?

2007-06-05 Thread Dor Laor
>Hi, > >I want to try the balloon driver. Do we have it in any git tree? > >The git tree I am having now only has master branch, and nothing else. > >(Maybe the balloon driver is not working yet, but I am curious when >see the userspace code in user/) > >Thanks, >Jun You're welcome to test it, it

Re: [kvm-devel] PIIX/IDE: ports disabled in PCI config space?

2007-06-05 Thread Avi Kivity
Luca Tettamanti wrote: > Hello, > I'm testing the new Fedora7 under KVM. As you may know Fedora has > migrated to the new libata drivers. > > ata_piix is unhappy with the PIIX IDE controller provided by QEmu/KVM: > > > [...] > The following patch fixes the problem (i.e. ata_piix finds both the

Re: [kvm-devel] [PATCH 3/9] KVM: Add irqdevice object

2007-06-05 Thread Gregory Haskins
Hi Eddie, I think you are missing a key point here: irq.deferred is emulating the atomic nature of an INTA (*) cycle. Once an interrupt is acknowledged, it is atomically dispatched to the IDT (at least, this is my assumption..you intel guys can set me straight if this is not true). There is

Re: [kvm-devel] pre-preparation for in-kernel device model

2007-06-05 Thread Gregory Haskins
Note that we already disable interrupts before getting here once the APIC series is applied, so this patch is either not necessary, or someone needs to merge this into the lapic branch and clean it up. Regards, -Greg >>> Avi Kivity <[EMAIL PROTECTED]> 06/05/07 7:32 AM >>> Dong, Eddie wrote: > W

Re: [kvm-devel] PIIX/IDE: ports disabled in PCI config space?

2007-06-05 Thread Luca
On 6/5/07, Avi Kivity <[EMAIL PROTECTED]> wrote: > Luca Tettamanti wrote: > > Hello, > > I'm testing the new Fedora7 under KVM. As you may know Fedora has > > migrated to the new libata drivers. > > > > ata_piix is unhappy with the PIIX IDE controller provided by QEmu/KVM: > > > > > > > > [...] > >

Re: [kvm-devel] PIIX/IDE: ports disabled in PCI config space?

2007-06-05 Thread Avi Kivity
Luca wrote: > > Good point. I'm looking at bochs right now: the BIOS doesn't touch > that bits. The 2 ports are enabled/disabled - using values from the > config file - by the reset function of the emulated controller > (iodev/pci_ide.cc), so they're doing the same thing I've done for > QEMU. > I'd

Re: [kvm-devel] [RFC] KVM guest page swap out support - take2

2007-06-05 Thread Avi Kivity
Shaohua Li wrote: > Hi, > This is a updated patch set of swap out kvm guest pages.Changes are: > 1. refresh against to kvm-26 > 2. clean up shadow page handling to make gfn_to_page not be called > within kmap_atomic/kunamp_atomic. > 3. variant bug fixing. Now the patch is quite stable in my test. >

Re: [kvm-devel] [PATCH 3/9] KVM: Add irqdevice object

2007-06-05 Thread Dong, Eddie
Greg: Hopefully, you are still online :-) I think you are talking about different thing, it is not just a simple queue, SDM chapter 25.7.1.1 has the answer for how to handle IRQ injection failure. Per current V09, kvm_irqdevice_ack will be invoked twice in case the previous injecti

[kvm-devel] Multiple Qemu Process

2007-06-05 Thread Mukesh G
Hi, I have installed 2 VM (windows and Suse)using the default linux kernel 2.6.21 and kvm release package kvm-17 on Intel Xeon dual core system. Very successful when running single VM instances but ran into trouble when invoking 2 VMs simultaneously. The Qemu process does not allow multiple ins

Re: [kvm-devel] Multiple Qemu Process

2007-06-05 Thread Dor Laor
Hi, I have installed 2 VM (windows and Suse)using the default linux kernel 2.6.21 and kvm release package kvm-17 on Intel Xeon dual core system. Very successful when running single VM instances but ran into trouble when invoking 2 VMs simultaneously. The Qemu process does not allow multiple

Re: [kvm-devel] [PATCH 3/9] KVM: Add irqdevice object

2007-06-05 Thread Gregory Haskins
Still haven't got on the road yet ;) I'm still pretty sure that what I said originally holds: That is, both are covered, and neither are thrown away. When an injection fails, we call kvm_vcpu_irq_push(), which puts the vector in irq.deferred. This will show up as a pending interrupt in the i

Re: [kvm-devel] [PATCH 3/9] KVM: Add irqdevice object

2007-06-05 Thread Gregory Haskins
>>> "Dong, Eddie" <[EMAIL PROTECTED]> 06/05/07 10:20 AM >>> > > If a guest OS *did* enable both PIC & APIC for a irq, both in > the simplified > approach (Xen) and V09 has same effect: exitirq get the > priority and get > injected. (BTW SDM doesn't explicitly say which one has priority). > I thin

[kvm-devel] vista install oddities

2007-06-05 Thread Wayde Milas
This is a weird one. Using kvm27. I am able to install and run winxp 32 bit perfectly. The problem arises when I try and run my Vista Ultimate upgrade. You cannot cold boot the upgrade and install on a blank drive because when you enter the activation code, the software checks to make sure ther

Re: [kvm-devel] [RFC] KVM guest page swap out support - take2

2007-06-05 Thread Shaohua Li
On Tue, 2007-06-05 at 22:17 +0800, Avi Kivity wrote: > Shaohua Li wrote: > > Hi, > > This is a updated patch set of swap out kvm guest pages.Changes are: > > 1. refresh against to kvm-26 > > 2. clean up shadow page handling to make gfn_to_page not be called > > within kmap_atomic/kunamp_atomic. > >

Re: [kvm-devel] Balloon driver?

2007-06-05 Thread Jun Koi
Hi Dor, On 6/5/07, Dor Laor <[EMAIL PROTECTED]> wrote: > >Hi, > > > >I want to try the balloon driver. Do we have it in any git tree? > > > >The git tree I am having now only has master branch, and nothing else. > > > >(Maybe the balloon driver is not working yet, but I am curious when > >see the

Re: [kvm-devel] vista install oddities

2007-06-05 Thread Avi Kivity
Wayde Milas wrote: > This is a weird one. Using kvm27. I am able to install and run winxp 32 > bit perfectly. The problem arises when I try and run my Vista Ultimate > upgrade. You cannot cold boot the upgrade and install on a blank drive > because when you enter the activation code, the softwar