Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Gleb Natapov
On Tue, Apr 14, 2009 at 10:41:03PM +0300, Gleb Natapov wrote: Guest: Debian lenny. Linux 2.6.26, Debian version (I can provide config or bzImage + initrd). Yes please provide. Debian lenny (x86_64) is my default guest :) And I just booted it fine on AMD barcelona CPU. What is you host cpu?

Re: [PATCH] Add MCE support to KVM

2009-04-15 Thread Huang Ying
On Tue, 2009-04-14 at 18:45 +0800, Avi Kivity wrote: Huang Ying wrote: I'm okay with an ioctl to setup MCE, but just make sure userspace has all the information to know what the kernel can do rather than the try-and-see-if-it-works approach. We can publish this information via KVM_CAP

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Dmitry Eremin-Solenikov
2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at 11:29:49PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at 06:32:29PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Gleb Natapov
On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at 11:29:49PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at 06:32:29PM +0400, Dmitry

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Gleb Natapov
On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to problems with qemu-x86_64 I have to boot the 'host' kernel with 'noapic'. Do you mean boot 'guest' kernel with noapic? The guest is what runs inside qemu. So you are able

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Jan Kiszka
Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at 11:29:49PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at 06:32:29PM +0400,

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Gleb Natapov
On Wed, Apr 15, 2009 at 12:22:34PM +0200, Jan Kiszka wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at 11:29:49PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Jan Kiszka
Gleb Natapov wrote: On Wed, Apr 15, 2009 at 12:22:34PM +0200, Jan Kiszka wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: 2009/4/14 Gleb Natapov g...@redhat.com: On Tue, Apr 14, 2009 at 11:29:49PM +0400, Dmitry Eremin-Solenikov wrote:

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Gleb Natapov
On Wed, Apr 15, 2009 at 12:51:00PM +0200, Jan Kiszka wrote: I need _host_ cpu info. Do the same on the host please. That _is_ his host - qemu in emulation mode (ie. nested virtualization). Ah, now I noticed svm in cpu flags. Does qemu support svm in TCG? Yes, and KVM seems to have been

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Dmitry Eremin-Solenikov
Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to problems with qemu-x86_64 I have to boot the 'host' kernel with 'noapic'. Do you mean boot 'guest' kernel with noapic? The guest is what runs inside

Re: [PATCH 3/4] add replace_page(): change the page pte is pointing to.

2009-04-15 Thread Andrea Arcangeli
On Tue, Apr 14, 2009 at 03:09:25PM -0700, Andrew Morton wrote: On Thu, 9 Apr 2009 06:58:40 +0300 Izik Eidus iei...@redhat.com wrote: replace_page() allow changing the mapping of pte from one physical page into diffrent physical page. At a high level, this is very similar to what page

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Jan Kiszka
Dmitry Eremin-Solenikov wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to problems with qemu-x86_64 I have to boot the 'host' kernel with 'noapic'. Do you mean boot 'guest' kernel with noapic?

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Dmitry Eremin-Solenikov
Dmitry Eremin-Solenikov пишет: Jan Kiszka пишет: Dmitry Eremin-Solenikov wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to problems with qemu-x86_64 I have to boot the 'host' kernel with

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Gleb Natapov
On Wed, Apr 15, 2009 at 03:53:40PM +0400, Dmitry Eremin-Solenikov wrote: Jan Kiszka пишет: Dmitry Eremin-Solenikov wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to problems with qemu-x86_64 I

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Dmitry Eremin-Solenikov
Gleb Natapov пишет: On Wed, Apr 15, 2009 at 03:53:40PM +0400, Dmitry Eremin-Solenikov wrote: Jan Kiszka пишет: Dmitry Eremin-Solenikov wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Jan Kiszka
Dmitry Eremin-Solenikov wrote: Jan Kiszka пишет: Dmitry Eremin-Solenikov wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to problems with qemu-x86_64 I have to boot the 'host' kernel with

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Dmitry Eremin-Solenikov
Jan Kiszka пишет: Dmitry Eremin-Solenikov wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to problems with qemu-x86_64 I have to boot the 'host' kernel with 'noapic'. Do you mean boot 'guest'

[ kvm-Bugs-2765323 ] Invalid -net parameters fails silently

2009-04-15 Thread SourceForge.net
Bugs item #2765323, was opened at 2009-04-15 14:27 Message generated for change (Tracker Item Submitted) made by scoof You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2765323group_id=180599 Please note that this message will contain a full copy of the

Re: [PATCH 05/15] Coalesce userspace/kernel irqchip interrupt injection logic.

2009-04-15 Thread Dmitry Eremin-Solenikov
Jan Kiszka пишет: Dmitry Eremin-Solenikov wrote: Jan Kiszka пишет: Dmitry Eremin-Solenikov wrote: Gleb Natapov wrote: On Wed, Apr 15, 2009 at 01:30:29PM +0400, Dmitry Eremin-Solenikov wrote: qemu-x86_64 version 0.10.2 running on i386 Due to problems with qemu-x86_64 I have to boot the

KVM: x86: use kvm_set_cr3/cr4 in ioctl_set_sregs

2009-04-15 Thread Marcelo Tosatti
Matt T. Yourst notes that kvm_arch_vcpu_ioctl_set_sregs lacks validity checking for the new cr3 value: Userspace callers of KVM_SET_SREGS can pass a bogus value of cr3 to the kernel. This will trigger a NULL pointer access in gfn_to_rmap() when userspace next tries to call KVM_RUN on the

Re: [PATCH 4/4] add ksm kernel shared memory driver.

2009-04-15 Thread Izik Eidus
Andrew Morton wrote: On Thu, 9 Apr 2009 06:58:41 +0300 Izik Eidus iei...@redhat.com wrote: Confused. In the covering email you indicated that v2 of the patchset had abandoned ioctls and had moved the interface to sysfs. We have abandoned the ioctls that control the ksm behavior (how

Re: [PATCH 4/4] add ksm kernel shared memory driver.

2009-04-15 Thread Andrew Morton
On Thu, 16 Apr 2009 01:37:25 +0300 Izik Eidus iei...@redhat.com wrote: Andrew Morton wrote: On Thu, 9 Apr 2009 06:58:41 +0300 Izik Eidus iei...@redhat.com wrote: Confused. In the covering email you indicated that v2 of the patchset had abandoned ioctls and had moved the

Re: [PATCH 4/4] add ksm kernel shared memory driver.

2009-04-15 Thread Andrea Arcangeli
On Wed, Apr 15, 2009 at 03:50:58PM -0700, Andrew Morton wrote: an optional thing and can even be modprobed, that doesn't work. And having a driver in mm/ which can be modprobed is kinda neat. Agreed. I think madvise with all its vma split requirements and ksm-unregistering invoked at vma

Re: virtio net regression

2009-04-15 Thread Antoine Martin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Wireshark was showing a huge amount of invalid packets (wrong checksum) - - that was the cause of the slowdown. Simply rebooting the host into 2.6.28.9 fixed *everything*, regardless of whether the guests use virtio or ne2k_pci/etc. The guests are

Re: [PATCH 4/4] add ksm kernel shared memory driver.

2009-04-15 Thread Jeremy Fitzhardinge
Andrew Morton wrote: +static pte_t *get_pte(struct mm_struct *mm, unsigned long addr) +{ + pgd_t *pgd; + pud_t *pud; + pmd_t *pmd; + pte_t *ptep = NULL; + + pgd = pgd_offset(mm, addr); + if (!pgd_present(*pgd)) + goto out; + + pud =

Re: [PATCH 4/4] add ksm kernel shared memory driver.

2009-04-15 Thread Izik Eidus
Jeremy Fitzhardinge wrote: Andrew Morton wrote: +static pte_t *get_pte(struct mm_struct *mm, unsigned long addr) +{ +pgd_t *pgd; +pud_t *pud; +pmd_t *pmd; +pte_t *ptep = NULL; + +pgd = pgd_offset(mm, addr); +if (!pgd_present(*pgd)) +goto out; + +pud =

[ kvm-Bugs-2763707 ] Soft lockup after migration in 64 bit SMP RHEL 5.3 guest

2009-04-15 Thread SourceForge.net
Bugs item #2763707, was opened at 2009-04-15 00:53 Message generated for change (Comment added) made by subhraveti You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2763707group_id=180599 Please note that this message will contain a full copy of the comment

kvm with OpenBSD 4.5

2009-04-15 Thread Dongsheng Song
Can any one run OpenBSD 4.5[1,2] under kvm ? I run OpenBSD 4.4 under Debian 5.0 amd64(linux 2.6.26 with kvm-72) fine, and snapshots older than 2009-04. The new snapshots can install smoothly, but stopped at display 'setting tty flags'. [1] ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/ [2]

Re: kvm with OpenBSD 4.5

2009-04-15 Thread Theo de Raadt
Can any one run OpenBSD 4.5[1,2] under kvm ? I run OpenBSD 4.4 under Debian 5.0 amd64(linux 2.6.26 with kvm-72) fine, and snapshots older than 2009-04. The new snapshots can install smoothly, but stopped at display 'setting tty flags'. [1]

Re: kvm with OpenBSD 4.5

2009-04-15 Thread Brian Jackson
You might want to try 84 with oos optimization off (or better yet 85 when it comes out). There was a bug recently (post 84) fixed that affected some BSDs. On Wednesday 15 April 2009 22:51:13 Dongsheng Song wrote: Can any one run OpenBSD 4.5[1,2] under kvm ? I run OpenBSD 4.4 under Debian