Biweekly KVM Test report, kernel 902c502f... qemu a040d28b...

2011-08-30 Thread Ren, Yongjie
Hi All, This is KVM test result against kvm.git 902c502f0b0efec3a784a8ef65057298025e5e11 based on kernel 3.1.0-rc3+, and qemu-kvm.git a040d28b1d245253754f3b82b78c9f85c5b8baea. We found 2 new bugs during the past two weeks. Both of them blocked many test cases in our test system. One of them is

Re: VFIO v2 design plan

2011-08-30 Thread David Gibson
On Mon, Aug 29, 2011 at 10:24:43PM -0600, Alex Williamson wrote: > On Tue, 2011-08-30 at 13:04 +1000, David Gibson wrote: > > On Fri, Aug 26, 2011 at 11:05:23AM -0600, Alex Williamson wrote: > > > > > > I don't think too much has changed since the previous email went out, > > > but it seems like a

Re: [PATCH 1/5] Support for vm_stop from the migration thread

2011-08-30 Thread Paolo Bonzini
On 08/29/2011 06:56 PM, Marcelo Tosatti wrote: > diff --git a/cpus.c b/cpus.c > index de70e02..f35f683 100644 > --- a/cpus.c > +++ b/cpus.c > @@ -122,8 +122,8 @@ static void do_vm_stop(int reason) >{ >if (vm_running) { >cpu_disable_ticks(); > -vm_running = 0;

Re: [PATCH 5/5] Separate migration thread

2011-08-30 Thread Paolo Bonzini
On 08/29/2011 08:49 PM, Marcelo Tosatti wrote: > -static void buffered_rate_tick(void *opaque) > +static void *migrate_vm(void *opaque) >{ buffered_file.c was generic code that has now become migration specific (although migration was the only user). So it should either stop pretending to

Re: KVM on IBM PowerEN processor

2011-08-30 Thread Alexander Graf
Hi Kun, On 08/29/2011 11:31 AM, Kun Wang wrote: Hi, everyone, This is Kun Wang from IBM Research China. I and my team have been working on IBM PowerEN processor in recent years, including its simulation, lib/runtime optimization and etc. Now we start the work to enable KVM on PowerEN processor.

Re: [PATCH v2] KVM: APIC: avoid instruction emulation for EOI writes

2011-08-30 Thread Avi Kivity
On 08/30/2011 04:15 AM, Tian, Kevin wrote: v2 changes: define exit qualification fields for APIC-Access in vmx.h use apic_reg_write instead of apic_set_eoi, to avoid breaking tracing add fasteoi option to allow disabling this acceleration commit 2a66a12cb6928c962d24

Re: [PATCH x86 kvm] Fix register corruption in pvclock_scale_delta

2011-08-30 Thread Avi Kivity
On 08/30/2011 11:58 AM, Duncan Sands wrote: Hi Zachary, this patch can cause a compile failure if the compiler chooses to use a memory location for mul_frac rather than a register (as allowed by the "m" in the constraints): pvclock.s:229: Error: no instruction mnemonic suffix given and no r

Re: [PATCH 5/5] Separate migration thread

2011-08-30 Thread Marcelo Tosatti
On Tue, Aug 30, 2011 at 10:48:11AM +0200, Paolo Bonzini wrote: > On 08/29/2011 08:49 PM, Marcelo Tosatti wrote: > >>> -static void buffered_rate_tick(void *opaque) > >>> +static void *migrate_vm(void *opaque) > >>>{ > > > >buffered_file.c was generic code that has now become migration specifi

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-08-30 Thread Marcelo Tosatti
On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: > Currently, when qemu stops a guest kernel that guest will issue a soft lockup > message when it resumes. This set provides the ability for qemu to > comminucate > to the guest that it has been stopped. When the guest hits the watch

Re: KVM call agenda for August 30

2011-08-30 Thread Juan Quintela
Juan Quintela wrote: > Hi > > Please send in any agenda items you are interested in covering. > > Later, Juan. As there is no topics for agenda, today call gets cancelled. Happy hacking, Juan. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord.

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-08-30 Thread Ryan Harper
* Marcelo Tosatti [2011-08-30 07:35]: > On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: > > Currently, when qemu stops a guest kernel that guest will issue a soft > > lockup > > message when it resumes. This set provides the ability for qemu to > > comminucate > > to the guest th

Re: KVM on IBM PowerEN processor

2011-08-30 Thread Stuart Yoder
On Tue, Aug 30, 2011 at 4:45 AM, Alexander Graf wrote: > Hi Kun, > > On 08/29/2011 11:31 AM, Kun Wang wrote: >> >> Hi, everyone, >> >> This is Kun Wang from IBM Research China. I and my team have been working >> on IBM PowerEN processor in recent years, including its simulation, >> lib/runtime opt

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-08-30 Thread Marcelo Tosatti
On Tue, Aug 30, 2011 at 09:12:17AM -0500, Ryan Harper wrote: > * Marcelo Tosatti [2011-08-30 07:35]: > > On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: > > > Currently, when qemu stops a guest kernel that guest will issue a soft > > > lockup > > > message when it resumes. This se

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-08-30 Thread Ryan Harper
* Marcelo Tosatti [2011-08-30 09:40]: > On Tue, Aug 30, 2011 at 09:12:17AM -0500, Ryan Harper wrote: > > * Marcelo Tosatti [2011-08-30 07:35]: > > > On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: > > > > Currently, when qemu stops a guest kernel that guest will issue a soft > > >

Re: VFIO v2 design plan

2011-08-30 Thread Alex Williamson
On Tue, 2011-08-30 at 17:48 +1000, David Gibson wrote: > On Mon, Aug 29, 2011 at 10:24:43PM -0600, Alex Williamson wrote: > > On Tue, 2011-08-30 at 13:04 +1000, David Gibson wrote: > > > On Fri, Aug 26, 2011 at 11:05:23AM -0600, Alex Williamson wrote: > > > > > > > > I don't think too much has cha

Re: kvm PCI assignment & VFIO ramblings

2011-08-30 Thread Joerg Roedel
On Fri, Aug 26, 2011 at 12:04:22PM -0600, Alex Williamson wrote: > On Thu, 2011-08-25 at 20:05 +0200, Joerg Roedel wrote: > > If we really expect segment numbers that need the full 16 bit then this > > would be the way to go. Otherwise I would prefer returning the group-id > > directly and partiti

Re: kvm PCI assignment & VFIO ramblings

2011-08-30 Thread Joerg Roedel
On Sun, Aug 28, 2011 at 05:04:32PM +0300, Avi Kivity wrote: > On 08/28/2011 04:56 PM, Joerg Roedel wrote: >> This can't be secured by a lock, because it introduces potential >> A->B<-->B->A lock problem when two processes try to take each others mm. >> It could probably be solved by a task->real_m

Re: Broken pci_block_user_cfg_access interface

2011-08-30 Thread Brian King
On 08/29/2011 02:18 PM, Michael S. Tsirkin wrote: > On Mon, Aug 29, 2011 at 08:47:07PM +0200, Jan Kiszka wrote: >> On 2011-08-29 17:42, Jan Kiszka wrote: >>> I still don't get what prevents converting ipr to allow plain mutex >>> synchronization. My vision is: >>> - push reset-on-error of ipr into

Re: KVM on IBM PowerEN processor

2011-08-30 Thread Kun Wang
于 2011-8-30 22:15, Stuart Yoder 写道: On Tue, Aug 30, 2011 at 4:45 AM, Alexander Graf wrote: Hi Kun, On 08/29/2011 11:31 AM, Kun Wang wrote: Hi, everyone, This is Kun Wang from IBM Research China. I and my team have been working on IBM PowerEN processor in recent years, including its simulatio

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-08-30 Thread Eric B Munson
On Tue, Aug 30, 2011 at 06:26, Marcelo Tosatti wrote: > On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: >> Currently, when qemu stops a guest kernel that guest will issue a soft lockup >> message when it resumes.  This set provides the ability for qemu to >> comminucate >> to the g

Re: KVM on IBM PowerEN processor

2011-08-30 Thread Kun Wang
于 2011-8-30 17:45, Alexander Graf 写道: Hi Kun, On 08/29/2011 11:31 AM, Kun Wang wrote: Hi, everyone, This is Kun Wang from IBM Research China. I and my team have been working on IBM PowerEN processor in recent years, including its simulation, lib/runtime optimization and etc. Now we start the

Re: RFC: vfio / device assignment -- layout of device fd files

2011-08-30 Thread Scott Wood
On 08/29/2011 11:55 PM, Alex Williamson wrote: > Thanks for the example. Is it always the case that you need a path and > an index? If so, why are they separate sub-regions instead of combined > into a DT_INFO sub-region? You'll always need both. DTPATH was put into a separate subrecord because

help? need to enable VT-d for 2.6.27

2011-08-30 Thread Chris Friesen
I'm in a bit of an odd situation. We run an embedded version of linux on many different boards with different vendor agreements so it's painful to upgrade kernel versions. I've been asked to provide VT-d support for KVM on our kernel (primarily for mapping NIC VFs into the guests), and I'm

Re: Questions regarding ivshmem spec

2011-08-30 Thread Cam Macdonell
On Thu, Aug 25, 2011 at 7:29 AM, Sasha Levin wrote: > Hello, > > I am looking to implement an ivshmem device for KVM tools, the purpose > is to provide same functionality as QEMU and interoperability with QEMU. > > Going through the spec (I found here: > https://gitorious.org/nahanni/guest-code/bl

[Bug 42082] New: 3.1.0-rc2 block related lockdep report.

2011-08-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42082 Summary: 3.1.0-rc2 block related lockdep report. Product: Virtualization Version: unspecified Kernel Version: 3.1.0-rc2 Platform: All OS/Version: Linux Tree: Mainline

[Bug 42082] 3.1.0-rc2 block related lockdep report.

2011-08-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42082 Maciej Rutecki changed: What|Removed |Added Blocks||40982 -- Configure bugmail: https:/

Re: help? need to enable VT-d for 2.6.27

2011-08-30 Thread David Ahern
On 08/30/2011 10:29 AM, Chris Friesen wrote: > > I'm in a bit of an odd situation. We run an embedded version of linux > on many different boards with different vendor agreements so it's > painful to upgrade kernel versions. > > I've been asked to provide VT-d support for KVM on our kernel (prim

Re: Broken pci_block_user_cfg_access interface

2011-08-30 Thread Michael S. Tsirkin
On Tue, Aug 30, 2011 at 11:30:35AM -0500, Brian King wrote: > On 08/29/2011 02:18 PM, Michael S. Tsirkin wrote: > > On Mon, Aug 29, 2011 at 08:47:07PM +0200, Jan Kiszka wrote: > >> On 2011-08-29 17:42, Jan Kiszka wrote: > >>> I still don't get what prevents converting ipr to allow plain mutex > >>>

Re: help? need to enable VT-d for 2.6.27

2011-08-30 Thread Chris Friesen
On 08/30/2011 11:55 AM, David Ahern wrote: On 08/30/2011 10:29 AM, Chris Friesen wrote: I'm in a bit of an odd situation. We run an embedded version of linux on many different boards with different vendor agreements so it's painful to upgrade kernel versions. I've been asked to provide VT-d s

Re: help? need to enable VT-d for 2.6.27

2011-08-30 Thread David Ahern
On 08/30/2011 12:11 PM, Chris Friesen wrote: > On 08/30/2011 11:55 AM, David Ahern wrote: >> On 08/30/2011 10:29 AM, Chris Friesen wrote: >>> >>> I'm in a bit of an odd situation. We run an embedded version of linux >>> on many different boards with different vendor agreements so it's >>> painful

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-08-30 Thread Marcelo Tosatti
On Tue, Aug 30, 2011 at 10:37:13AM -0600, Eric B Munson wrote: > On Tue, Aug 30, 2011 at 06:26, Marcelo Tosatti wrote: > > On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: > >> Currently, when qemu stops a guest kernel that guest will issue a soft > >> lockup > >> message when it re

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-08-30 Thread Marcelo Tosatti
On Tue, Aug 30, 2011 at 09:43:19AM -0500, Ryan Harper wrote: > * Marcelo Tosatti [2011-08-30 09:40]: > > On Tue, Aug 30, 2011 at 09:12:17AM -0500, Ryan Harper wrote: > > > * Marcelo Tosatti [2011-08-30 07:35]: > > > > On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: > > > > > Curren

Re: help? need to enable VT-d for 2.6.27

2011-08-30 Thread Chris Friesen
On 08/30/2011 12:31 PM, David Ahern wrote: In my case I am setting the MAC address for the VFs in the host at boot; they are getting reset on passthrough so the VM driver creates a random one. A backport of commit a6b5ea3 fixes one aspect. Looking at the code for the igb driver I think commit 8f

Re: Broken pci_block_user_cfg_access interface

2011-08-30 Thread Brian King
On 08/30/2011 01:01 PM, Michael S. Tsirkin wrote: > On Tue, Aug 30, 2011 at 11:30:35AM -0500, Brian King wrote: >> On 08/29/2011 02:18 PM, Michael S. Tsirkin wrote: >>> On Mon, Aug 29, 2011 at 08:47:07PM +0200, Jan Kiszka wrote: On 2011-08-29 17:42, Jan Kiszka wrote: > I still don't get wh

Re: help? need to enable VT-d for 2.6.27

2011-08-30 Thread David Ahern
On 08/30/2011 01:39 PM, Chris Friesen wrote: > On 08/30/2011 12:31 PM, David Ahern wrote: > >> In my case I am setting the MAC address for the VFs in the host at boot; >> they are getting reset on passthrough so the VM driver creates a random >> one. A backport of commit a6b5ea3 fixes one aspect.

Re: help? need to enable VT-d for 2.6.27

2011-08-30 Thread Jan Kiszka
On 2011-08-30 21:39, Chris Friesen wrote: > On 08/30/2011 12:31 PM, David Ahern wrote: > >> In my case I am setting the MAC address for the VFs in the host at boot; >> they are getting reset on passthrough so the VM driver creates a random >> one. A backport of commit a6b5ea3 fixes one aspect. Loo

Re: help? need to enable VT-d for 2.6.27

2011-08-30 Thread Chris Friesen
On 08/30/2011 01:59 PM, Jan Kiszka wrote: On 2011-08-30 21:39, Chris Friesen wrote: 2) If I create such a link, it builds a few files, and then gives the following: /home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c: In function ‘vcpu_enter_guest’: /home/cfriesen/Download/kvm-kmod-3.0b/x86/x86.c

[PATCH] Client: Add cgroup testing v2

2011-08-30 Thread Lucas Meneghel Rodrigues
From: root This patchset adds a cgroup client test module, plus support libraries for doing cgroup testing: cgroup.py: * Structure for different cgroup subtests * Contains basic "cgroup-memory" test cgroup_common.py: * Library for cgroup handling (intended to be used from kvm test in the futu

[PATCH 0/2] [RFC] Make kvm-unit-tests more friendly to upstream QEMU

2011-08-30 Thread Lucas Meneghel Rodrigues
aliguori - This series makes an attempt to make kvm-unit-tests more friendly to upstream QEMU. I've been writing unit tests for all of the QMP commands and many of them, like ballooning, require guest cooperation to be tested in a meaningful way. I'm leaning towards building simple guests using l

[PATCH 1/2] kvm-unit-tests: add x86 port io accessors

2011-08-30 Thread Lucas Meneghel Rodrigues
Signed-off-by: Anthony Liguori --- lib/x86/io.h | 40 1 files changed, 40 insertions(+), 0 deletions(-) create mode 100644 lib/x86/io.h diff --git a/lib/x86/io.h b/lib/x86/io.h new file mode 100644 index 000..bd6341c --- /dev/null +++ b/lib/x86/io.

[PATCH 2/2] kvm-unit-tests: make I/O more friendly to existing QEMU hardware

2011-08-30 Thread Lucas Meneghel Rodrigues
Use the serial port for printf() and use the Bochs bios exit port if the testdev port isn't available. This unconditionally switches to use the serial port but tries to use the testdev exit port since that lets you pass an exit status. This version puts the old behavior on an IFDEF block, as Avi

[BUG] error compiling qemu-kvm-0.15.0 without vnc

2011-08-30 Thread Chris Friesen
Hi, I've run into another problem. I configured qemu-kvm-0.15.0 as: ./configure --target-list="i386-softmmu,x86_64-softmmu" --disable-sdl --disable-vnc --disable-curses Building it, I get: CCi386-softmmu/pcspk.o CCi386-softmmu/i8254.o CCi386-softmmu/i8254-kvm.o CCi386

Re: [PATCH 0/4] Avoid soft lockup message when KVM is stopped by host

2011-08-30 Thread emunson
On Tue, 30 Aug 2011 15:36:13 -0300, Marcelo Tosatti wrote: On Tue, Aug 30, 2011 at 10:37:13AM -0600, Eric B Munson wrote: On Tue, Aug 30, 2011 at 06:26, Marcelo Tosatti wrote: > On Mon, Aug 29, 2011 at 05:27:11PM -0600, Eric B Munson wrote: >> Currently, when qemu stops a guest kernel that gue

RE: [PATCH v2] KVM: APIC: avoid instruction emulation for EOI writes

2011-08-30 Thread Tian, Kevin
> From: Avi Kivity [mailto:a...@redhat.com] > Sent: Tuesday, August 30, 2011 6:57 PM > > On 08/30/2011 04:15 AM, Tian, Kevin wrote: > > v2 changes: > > define exit qualification fields for APIC-Access in vmx.h > > use apic_reg_write instead of apic_set_eoi, to avoid breaking tracing > >

About cpu-affinity of SR-IOV on Guest of KVM

2011-08-30 Thread kznr
Hello, <> I'd like to send and receive UDP on Guest of KVM and make a performance which is almost like in a non virtual system. However, the throughput on Guest is just about 1/5 of a non virtual system throughput performance. 10GByte-Ethernet supports SR-lOV and make two Virtual Function. T