[ kvm-Bugs-2506814 ] TAP network lockup after some traffic

2009-07-10 Thread SourceForge.net
Bugs item #2506814, was opened at 2009-01-14 05:38 Message generated for change (Comment added) made by c_jones You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2506814&group_id=180599 Please note that this message will contain a full copy of the comment t

Re: [autotest] [PATCH 1/6] add ebizzy in autotest

2009-07-10 Thread Martin Bligh
On Fri, Jul 10, 2009 at 4:29 AM, sudhir kumar wrote: > So is there any plan for adding this patch set in the patch queue? I > would love to incorporate all the comments if any. Yup, just was behind on patches. I added it now - the mailer you are using seems to chew patches fairly thoroughly thoug

Re: Device pass through using KVM

2009-07-10 Thread VinothKumar S
Hi All, I apologize for the typo in my earlier mail. My first try failed and I was NOT able to get an IP address. Please clarify if there is any issue in my setup. Thanks, Vinoth. On Fri, Jul 10, 2009 at 5:47 PM, VinothKumar S wrote: > Hi , > > My goal is to assign pci d

Device pass through using KVM

2009-07-10 Thread VinothKumar S
Hi , My goal is to assign pci device using Vt-d capability. I have a Supermicro Server X8DTU-F motherboard. I verified that it had Vt-d capability and enabled it in BIOS. Iam using KVM-86 (as I had some compilation error in KVM-87).   My first try was to use Ubuntu 9.04 (with kvm modules

Re: [PATCH -tip -v11 08/11] tracing: add kprobe-based event tracer

2009-07-10 Thread Masami Hiramatsu
Li Zefan wrote: >> +static __kprobes unsigned long fetch_memory(struct pt_regs *regs, void >> *addr) >> +{ >> +unsigned long retval; > > need a space after local variable declarations. > >> +if (probe_kernel_address(addr, retval)) >> +return 0; >> +return retval; >> +} >>

Re: [PATCH v3] enable x2APIC without interrupt remapping under KVM

2009-07-10 Thread Eric W. Biederman
Suresh Siddha writes: > On Wed, 2009-07-01 at 17:17 -0700, Eric W. Biederman wrote: >> Suresh Siddha writes: >> > Among number of experiments you have tried in the past to fix this, have >> > you tried the experiment of explicitly clearing the remoteIRR by >> > changing the trigger mode to edge

[PATCH v2 6/9] duplicate KVMState

2009-07-10 Thread Glauber Costa
In this patch, we duplicate most of KVMState in our files. This should be removed later, when they are 100 % equal. Meanwhile, we fold our kvm_context_t structure inside it. To make transition smooth, we still keep a global variable kvm_context pointing to its position inside the global KVMState.

[PATCH v2 4/9] remove leftover:

2009-07-10 Thread Glauber Costa
get rid of kvm_callbacks structure definition Signed-off-by: Glauber Costa --- libkvm-all.h | 57 - 1 files changed, 0 insertions(+), 57 deletions(-) diff --git a/libkvm-all.h b/libkvm-all.h index 3e3e1b4..01c0486 100644 --- a/libkvm-all

[PATCH v2 3/9] replace malloc with qemu_malloc

2009-07-10 Thread Glauber Costa
This patch replaces both malloc and malloc+memset sequences with qemu_malloc and qemu_mallocz. Target is upstream integration Signed-off-by: Glauber Costa --- qemu-kvm-x86.c | 31 --- qemu-kvm.c | 26 +- 2 files changed, 13 insertions(+

[PATCH v2 2/9] Do not compile qemu-kvm.c and qemu-kvm-x86.c

2009-07-10 Thread Glauber Costa
Instead, include them from upstream files Signed-off-by: Glauber Costa --- Makefile.target |5 ++--- kvm-all.c |2 ++ target-i386/kvm.c |2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.target b/Makefile.target index 11a6da8..1c0f4ea 100644 ---

[PATCH v2 1/9] replace USE_KVM with CONFIG_KVM

2009-07-10 Thread Glauber Costa
Make things less confuse, and we have KVM_UPSTREAM to differentiate between the two versions anyway. kvm-all.c and kvm.c gets compiled now, but protected with KVM_UPSTREAM too, so no function in there gets visible in the final binary Signed-off-by: Glauber Costa --- Makefile.target | 20

[PATCH v2 0/9] Move closer to upstream

2009-07-10 Thread Glauber Costa
Hi, This is another step at getting us closer to qemu upstream. I'm getting rid of USE_KVM, replacing it with the combination of KVM_UPSTREAM and CONFIG_KVM The goal is to slowly reduce that isolation. To demonstrate what I aim for, the last patches of the series shares code for breakpoint handli

[PATCH v2 9/9] reuse upstream breakpoint code

2009-07-10 Thread Glauber Costa
Drop KVM_UPSTREAM around functions we intend to reuse. This allow us to share code in kvm-all.c, that is equal in qemu-kvm.c Signed-off-by: Glauber Costa CC: Jan Kiszka --- kvm-all.c |5 ++- kvm.h |1 + qemu-kvm.c | 140 +---

[PATCH v2 8/9] use kvm_upstream sw_breakpoints structure

2009-07-10 Thread Glauber Costa
Signed-off-by: Glauber Costa --- qemu-kvm-x86.c |4 ++-- qemu-kvm.c | 27 ++- qemu-kvm.h |9 ++--- 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 48b2e2f..f3890fe 100644 --- a/qemu-kvm-x86.c +++

[PATCH v2 5/9] fold libkvm-all into standard qemu header

2009-07-10 Thread Glauber Costa
Sharing of structures containing each other between libkvm-all.h and qemu-kmv.h gets a bit messy in this series. So fold them together. libkvm-all.h has no place in the final schema of things anyway. Signed-off-by: Glauber Costa --- kvm.h|1 - libkvm-all.h | 904

[PATCH v2 7/9] provide env->kvm_fd

2009-07-10 Thread Glauber Costa
qemu upstream puts kvm information on env. Do that too, since it will allow us to use CPUState in cpu-specific functions, instead of kvm-specific types. Signed-off-by: Glauber Costa --- qemu-kvm.c |9 +++-- qemu-kvm.h |2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --gi

Re: [PATCH -tip -v11 11/11] tracing: Add kprobes event profiling interface

2009-07-10 Thread Masami Hiramatsu
Hi, Li Zefan wrote: >> +Event Profiling >> +--- >> + You can check the total number of probe hits and probe miss-hits via >> +/sys/kernel/debug/tracing/kprobe_profile. >> + The fist column is event name, the second is the number of probe hits, > > s/fist/first Oops, fixed. > >> +th

Re: [Qemu-devel] [PATCH -v6] QEMU: MCE: Add MCE simulation to qemu/tcg

2009-07-10 Thread Anthony Liguori
Christoph Hellwig wrote: On Tue, Jun 23, 2009 at 10:05:14AM +0800, Huang Ying wrote: - MCE features are initialized when VCPU is intialized according to CPUID. - A monitor command "mce" is added to inject a MCE. - A new interrupt mask: CPU_INTERRUPT_MCE is added to inject the MCE. This

Re: [Qemu-devel] [PATCH -v6] QEMU: MCE: Add MCE simulation to qemu/tcg

2009-07-10 Thread Christoph Hellwig
On Tue, Jun 23, 2009 at 10:05:14AM +0800, Huang Ying wrote: > - MCE features are initialized when VCPU is intialized according to CPUID. > - A monitor command "mce" is added to inject a MCE. > - A new interrupt mask: CPU_INTERRUPT_MCE is added to inject the MCE. This patch (now in the qemu tree) b

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Christoph Hellwig wrote: On Fri, Jul 10, 2009 at 12:29:25PM -0500, Anthony Liguori wrote: Sorry, I'm not able to follow you here. What is currently queued and what do you think should be queued? Can you provide links/commit hashes? Currenly queued: http://repo.or.cz/w/qemu/

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2009 at 07:12:37PM +0200, Kevin Wolf wrote: > Ok, that makes sense. Will you take care of it once the renaming patch > is in or should I resend it then? If Anthony prefers patches I'll stop doing the git trees and you'll have to repost it. If we continue with the git trees I can a

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Paul Brook
> As pointed out before, it doesn't break anything but adds a workaround > for scenarios which are _now_ broken (16/32 bit target code exported as > 64 bit is widely useless for gdb today). Sorry, but you never explained > to me how user are _currently_ supposed to debug under that conditions, > na

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2009 at 12:29:25PM -0500, Anthony Liguori wrote: > Sorry, I'm not able to follow you here. What is currently queued and > what do you think should be queued? Can you provide links/commit hashes? Currenly queued: http://repo.or.cz/w/qemu/aliguori-queue.git?a=commitdiff;

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Jan Kiszka
Paul Brook wrote: > The 32/64-bit switching is just plain wrong, and makes it absolutely > impossible for a client debugger to work correctly. As pointed out before, it doesn't break anything but adds a workaround for scenarios which are _now_ broken (16/32 bit target code exported as 64 bit is w

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Paul Brook wrote: Right, that part I'm okay with. But the vCont based gdb model presumes a unified address space which while usually true for kernel address spaces, isn't universally true and certainly not true when PC is in userspace. That's what I understood to be the major objection to vCont

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Paul Brook
> Right, that part I'm okay with. But the vCont based gdb model presumes > a unified address space which while usually true for kernel address > spaces, isn't universally true and certainly not true when PC is in > userspace. That's what I understood to be the major objection to vCont. The threa

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Kevin Wolf wrote: Last time you said you don't want to get pull requests but rather patches on the list. I'm clearly trying to purposefully confuse you :-) Honestly, I'm just trying to work with people. I saw the pull request, so I pulled it. I would have been just as happy pulling in the

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Christoph Hellwig wrote: On Fri, Jul 10, 2009 at 11:59:25AM -0500, Anthony Liguori wrote: If I'm not mistaken, the patch "qemu-io: Implement bdrv_get_buffer/bdrv_put_buffer" is missing from the queue. I just did a pull a few hours ago from Christoph's qemu-io tree. I'm expecting qe

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Jan Kiszka
Anthony Liguori wrote: > Jan Kiszka wrote: >> That's nothing those patches changes (it's our current and only >> debugging model for SMP until gdb provides a complete solution). >> > > It Paul agrees, I'll pull it. But my understanding from the previous > threads and posts was that Paul did no

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Kevin Wolf
Christoph Hellwig schrieb: > On Fri, Jul 10, 2009 at 11:59:25AM -0500, Anthony Liguori wrote: >>> If I'm not mistaken, the patch "qemu-io: Implement >>> bdrv_get_buffer/bdrv_put_buffer" is missing from the queue. >>> >> I just did a pull a few hours ago from Christoph's qemu-io tree. I'm >> exp

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Kevin Wolf
Anthony Liguori schrieb: > Kevin Wolf wrote: >> Anthony Liguori schrieb: >> >>> Jan Kiszka wrote: >>> Hmm, I must have missed this: Where is your staging tree hosted? >>> Right now it's at http://repo.or.cz/w/qemu/aliguori-queue.git but I plan >>> to move it to git

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2009 at 11:59:25AM -0500, Anthony Liguori wrote: > >If I'm not mistaken, the patch "qemu-io: Implement > >bdrv_get_buffer/bdrv_put_buffer" is missing from the queue. > > > > I just did a pull a few hours ago from Christoph's qemu-io tree. I'm > expecting qemu-io patches to go t

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Kevin Wolf wrote: Anthony Liguori schrieb: Jan Kiszka wrote: Hmm, I must have missed this: Where is your staging tree hosted? Right now it's at http://repo.or.cz/w/qemu/aliguori-queue.git but I plan to move it to git.qemu.org in the next few days. If I'm not mistaken,

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Jan Kiszka wrote: Something went wrong during transmission, and I missed that. Just sent out those two as well. Thanks, it's now all in staging. That's nothing those patches changes (it's our current and only debugging model for SMP until gdb provides a complete solution). It Paul agr

Re: R/W HG memory mappings with kvm?

2009-07-10 Thread Cam Macdonell
Stephen Donnelly wrote: On Thu, Jul 9, 2009 at 6:01 PM, Cam Macdonell wrote: Is there a corresponding qemu patch for the backend to the guest pci driver? Oops right. For some reason I can't my driver patch in patchwork. http://kerneltrap.org/mailarchive/linux-kvm/2009/5/7/5665734 Thanks f

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Kevin Wolf wrote: Anthony Liguori schrieb: Jan Kiszka wrote: Hmm, I must have missed this: Where is your staging tree hosted? Right now it's at http://repo.or.cz/w/qemu/aliguori-queue.git but I plan to move it to git.qemu.org in the next few days. If I'm not mistaken,

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Kevin Wolf
Anthony Liguori schrieb: > Jan Kiszka wrote: >> Hmm, I must have missed this: Where is your staging tree hosted? >> > > Right now it's at http://repo.or.cz/w/qemu/aliguori-queue.git but I plan > to move it to git.qemu.org in the next few days. If I'm not mistaken, the patch "qemu-io: Implemen

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Jan Kiszka
Anthony Liguori wrote: > Jan Kiszka wrote: >> Ah, thanks. >> >> OK, then I would like to know the status of my -boot patch queue [1] > > I'm stilling waiting for 1/7 and 2/7. Via the link you posted and in my > inbox, I still don't see those. I do see a 1/2 and a 2/2 but those are > bios patches

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Jan Kiszka wrote: Ah, thanks. OK, then I would like to know the status of my -boot patch queue [1] I'm stilling waiting for 1/7 and 2/7. Via the link you posted and in my inbox, I still don't see those. I do see a 1/2 and a 2/2 but those are bios patches. Did you have a numbering issue or

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Jan Kiszka
Anthony Liguori wrote: > Jan Kiszka wrote: >> Hmm, I must have missed this: Where is your staging tree hosted? >> > > Right now it's at http://repo.or.cz/w/qemu/aliguori-queue.git but I plan > to move it to git.qemu.org in the next few days. Ah, thanks. OK, then I would like to know the statu

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Jan Kiszka wrote: Hmm, I must have missed this: Where is your staging tree hosted? Right now it's at http://repo.or.cz/w/qemu/aliguori-queue.git but I plan to move it to git.qemu.org in the next few days. Regards, Anthony Liguori -- To unsubscribe from this list: send the line "unsubscr

Re: LILO incompatibility with KVM?

2009-07-10 Thread Andy Sy
Glauber Costa wrote: On Tue, Jul 7, 2009 at 4:03 PM, Andy Sy wrote: I am trying to install Slackware on KVM-based VPS hosting and keep getting a "LILO keytable read / checksum error" upon booting. Grub-based distros install fine on said VPS. Apparently certain builds/versions of KVM break with

Re: LILO incompatibility with KVM?

2009-07-10 Thread Glauber Costa
On Fri, Jul 10, 2009 at 12:40 PM, Andy Sy wrote: > Glauber Costa wrote: >> >> On Tue, Jul 7, 2009 at 4:03 PM, Andy Sy wrote: >>> >>> I am trying to install Slackware on KVM-based >>> VPS hosting and keep getting a "LILO keytable read >>> / checksum error" upon booting. >>> >>> Grub-based distros in

Re: [KVM_AUTOTEST][RFC] pre_command chaining

2009-07-10 Thread Michael Goldish
- "Lukáš Doktor" wrote: > Hi, > > the way how kvm_autotest currently handle pre_command/post_command it > don't allow to specify more than one command. BASH can handle this > itself with a small change in the framework , as shown in the > attachment. Why do you say the framework doesn't a

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Jan Kiszka
Anthony Liguori wrote: > Markus Armbruster wrote: >> Anthony Liguori writes: >> >> Any hope that -device can make the cut? >> > I've got most of the outstanding patches in staging now. The only thing > missing is the PIIX refactoring from Isaku which I suspect is going to > fuzz badly. -devic

Re: [PATCH corrected RFC] uio: add generic driver for PCI 2.3 devices

2009-07-10 Thread Michael S. Tsirkin
On Thu, Jul 09, 2009 at 07:19:45PM -0700, Chris Wright wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > +struct generic_dev { > > I know I commented on this one on an earlier, private version, and naming > is not my strength... maybe "struct uio_generic_pci_dev" or "struct > uio_generic_

Re: [PATCH] enable x2APIC without interrupt remapping under KVM

2009-07-10 Thread Ingo Molnar
* Gleb Natapov wrote: > KVM would like to provide x2APIC interface to a guest without emulating > interrupt remapping device. The reason KVM prefers guest to use x2APIC > is that x2APIC interface is better virtualizable and provides better > performance than mmio xAPIC interface: > > - msr

Re: [Qemu-devel] Planning for the 0.11.0 release

2009-07-10 Thread Anthony Liguori
Markus Armbruster wrote: Anthony Liguori writes: Any hope that -device can make the cut? I've got most of the outstanding patches in staging now. The only thing missing is the PIIX refactoring from Isaku which I suspect is going to fuzz badly. -device is there. I'll be testing this tod

Re: [PATCH] rev4: support colon in filenames

2009-07-10 Thread Anthony Liguori
Ram Pai wrote: Problem: It is impossible to feed filenames with the character colon because qemu interprets such names as a protocol. For example filename scsi:0, is interpreted as a protocol by name "scsi". This patch allows user to espace colon characters. For example the above filename can no

[PATCH v2] add KVM module parameters documentation

2009-07-10 Thread Andre Przywara
Signed-off-by: Andre Przywara --- Documentation/kernel-parameters.txt | 39 +++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index d77fbd8..8ca488d 100644 --- a/Document

question about arch/s390/kvm/interrupt.c

2009-07-10 Thread Julia Lawall
In a recent version of linux-next, the function kvm_s390_handle_wait contains the following code: add_wait_queue(&vcpu->arch.local_int.wq, &wait); while (list_empty(&vcpu->arch.local_int.list) && list_empty(&vcpu->arch.local_int.float_int->list) &&

[KVM_AUTOTEST][RFC] pre_command chaining

2009-07-10 Thread Lukáš Doktor
Hi, the way how kvm_autotest currently handle pre_command/post_command it don't allow to specify more than one command. BASH can handle this itself with a small change in the framework , as shown in the attachment. In .cfg file we just change variable from: pre_command = "command" to: pre_c

Re: [autotest] [PATCH 1/6] add ebizzy in autotest

2009-07-10 Thread sudhir kumar
So is there any plan for adding this patch set in the patch queue? I would love to incorporate all the comments if any. On Wed, Jul 8, 2009 at 1:47 PM, sudhir kumar wrote: > This patch adds the wrapper for ebizzy into autotest. here is the link > to get a copy of the test tarball. > http://sourcef

Re: [KVM_AUTOTEST] add autotest.libhugetlbfs test

2009-07-10 Thread sudhir kumar
This looks pretty clear now as the two patches do two different things. The guest large pages support is completely independent of the host support of large pages for the guest. patches look good to me. thanks for splitting them. 2009/7/10 Lukáš Doktor : > After discussion I split the patches. > >

[KVM_AUTOTEST] add autotest.libhugetlbfs test

2009-07-10 Thread Lukáš Doktor
After discussion I split the patches. this patch adds autotest.libhugetlbfs test which tests hugepage support inside of kvm guest. Tested by:ldok...@redhat.com on RHEL5.4 with kvm-83-72.el5 Dne 9.7.2009 11:24, Lukáš Doktor napsal(a): This patch adds kvm_hugepage variant. It prepares the host

[KVM_AUTOTEST] add kvm hugepage variant

2009-07-10 Thread Lukáš Doktor
After discussion I split the patches. This patch adds kvm_hugepage variant. It prepares the host system and start vm with -mem-path option. It does not clean after itself, because it's impossible to unmount and free hugepages before all guests are destroyed. I need to ask you what to do with

Re: [KVM_AUTOTEST] add kvm hugepage variant and test

2009-07-10 Thread Lukáš Doktor
I'm sorry this patch has a bug. hugepage variant doesn't allocate enough memory with stress_boot (stress_boot uses different method to define VMS). Attached the fixed patch. Dne 9.7.2009 11:24, Lukáš Doktor napsal(a): This patch adds kvm_hugepage variant. It prepares the host system and start v

Re: [PATCH -tip -v11 08/11] tracing: add kprobe-based event tracer

2009-07-10 Thread Li Zefan
> +static __kprobes unsigned long fetch_memory(struct pt_regs *regs, void *addr) > +{ > + unsigned long retval; need a space after local variable declarations. > + if (probe_kernel_address(addr, retval)) > + return 0; > + return retval; > +} > + > +static __kprobes unsigne