[COMMIT master] Only call kvm_set_irqfd() if CONFIG_KVM is defined

2010-06-24 Thread Avi Kivity
From: Jes Sorensen jes.soren...@redhat.com This avoids breaking the build for non KVM targets where kvm_set_irqfd() is not defined. Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index d497eae..938937e

[COMMIT master] Remove duplicate kvm_init() stub from qemu-kvm.h

2010-06-24 Thread Avi Kivity
From: Jes Sorensen jes.soren...@redhat.com Avoid build conflicts and move prototype out of CONFIG_KVM to make the stub in kvm-stub.c visible. Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/qemu-kvm.h b/qemu-kvm.h index 3ace503..c9b93dc

[COMMIT master] time_drift_fix is x86 only, rather than !ia64

2010-06-24 Thread Avi Kivity
From: Jes Sorensen jes.soren...@redhat.com time_drift_fix is only present on x86, not just on !ia64. This allows the code to build for other archs, like MIPS. Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/hw/i8259.c b/hw/i8259.c index

[COMMIT master] Build certain drivers for MIPS as well

2010-06-24 Thread Avi Kivity
From: Jes Sorensen jes.soren...@redhat.com pcspk.o i8254.o acpi.o acpi_piix4.o are all required for MIPS as well, add them to Makefile.target accordingly. Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/Makefile.target b/Makefile.target

[COMMIT master] Only export phys_mem create functions for !CONFIG_USER_ONLY builds

2010-06-24 Thread Avi Kivity
From: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/qemu-kvm.h b/qemu-kvm.h index c9b93dc..6dd3a01 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -835,6 +835,7 @@ void qemu_kvm_cpuid_on_env(CPUState

[COMMIT master] Only treat KVM specific cmdline options for KVM enabled builds

2010-06-24 Thread Avi Kivity
From: Jes Sorensen jes.soren...@redhat.com This fixes build breakage for target MIPS etc. Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/vl.c b/vl.c index 0ee963c..79f91d5 100644 --- a/vl.c +++ b/vl.c @@ -2459,6 +2459,7 @@ int main(int

[COMMIT master] Declare no_hpet variable for all targets

2010-06-24 Thread Avi Kivity
From: Jes Sorensen jes.soren...@redhat.com We need to declare 'int no_hpet' for all targets to avoid build failure on no x86 builds. Signed-off-by: Jes Sorensen jes.soren...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com diff --git a/vl.c b/vl.c index 79f91d5..c2e99fc 100644 --- a/vl.c

[COMMIT master] device-assignment: be more selective in interrupt disabling

2010-06-24 Thread Avi Kivity
From: Alex Williamson alex.william...@redhat.com An 82576 physical function assigned to a Windows 7 guest currently doesn't work because the driver seems to gratuitiously disable MSI and MSIX interrupts. When it does this, we blindly deassign the current interrupt setup, leaving the device with

[COMMIT master] do not enter vcpu again if it was stopped during IO

2010-06-24 Thread Avi Kivity
From: Gleb Natapov g...@redhat.com To prevent reentering vcpu after IO completion it is not enough to set env-stopped since it is checked only in main loop but control will not get there until next non-IO exit since kvm_run() will reenter vcpu to complete IO instruction. Solve this by sending

[COMMIT master] KVM: Fix a race condition for usage of is_hwpoison_address()

2010-06-24 Thread Avi Kivity
From: Huang Ying ying.hu...@intel.com is_hwpoison_address accesses the page table, so the caller must hold current-mm-mmap_sem in read mode. So fix its usage in hva_to_pfn of kvm accordingly. Comment is_hwpoison_address to remind other users. Reported-by: Avi Kivity a...@redhat.com

[COMMIT master] KVM: PPC: Remove obsolete kvmppc_mmu_find_pte

2010-06-24 Thread Avi Kivity
From: Alexander Graf ag...@suse.de Initially we had to search for pte entries to invalidate them. Since the logic has improved since then, we can just get rid of the search function. Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Avi Kivity a...@redhat.com diff --git

[COMMIT master] KVM: PPC: Use kernel hash function

2010-06-24 Thread Avi Kivity
From: Alexander Graf ag...@suse.de The linux kernel already provides a hash function. Let's reuse that instead of reinventing the wheel! Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Avi Kivity a...@redhat.com diff --git a/arch/powerpc/kvm/book3s_32_mmu_host.c

[COMMIT master] KVM: cleanup: make kvm_vm_ioctl_get_dirty_log() arch independent

2010-06-24 Thread Avi Kivity
From: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp kvm_vm_ioctl_get_dirty_log() is now implemented as arch dependent function. But now that we know what is actually arch dependent, we can split this into arch dependent part and arch independent part easily. Signed-off-by: Takuya Yoshikawa

[COMMIT master] KVM: s390: Fix build failure due to centralized vcpu locking patches

2010-06-24 Thread Avi Kivity
From: Christian Borntraeger borntrae...@de.ibm.com This patch fixes ERROR: __kvm_s390_vcpu_store_status [arch/s390/kvm/kvm.ko] undefined! triggered by commit 3268c56840dcee78c3e928336550f4e1861504c4 (kvm.git) Author: Avi Kivity a...@redhat.com Date: Thu May 13 12:21:46 2010 +0300 KVM:

[COMMIT master] KVM: PPC: Make BAT only guest segments work

2010-06-24 Thread Avi Kivity
From: Alexander Graf ag...@suse.de When a guest sets its SR entry to invalid, we may still find a corresponding entry in a BAT. So we need to make sure we're not faulting on invalid SR entries, but instead just claim them to be BAT resolved. This resolves breakage experienced when using libogc

Re: qemu fail to parse command line with -pcidevice 00:19.0

2010-06-24 Thread Markus Armbruster
Note to qemu-devel: this issue is qemu-kvm only. Hao, Xudong xudong@intel.com writes: When assign one PCI device, qemu fail to parse the command line: qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img -pcidevice host=00:19.0 Error: qemu-system-x86_64: Parameter 'id' expects an identifier

[ kvm-Bugs-2014059 ] Windows XP and 2...@32bit Install fails

2010-06-24 Thread SourceForge.net
Bugs item #2014059, was opened at 2008-07-09 10:30 Message generated for change (Comment added) made by jessorensen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2014059group_id=180599 Please note that this message will contain a full copy of the comment

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Andre Przywara
Anthony Liguori wrote: On 06/23/2010 04:09 PM, Andre Przywara wrote: Hi, these three patches add basic NUMA pinning to KVM. According to a user provided assignment parts of the guest's memory will be bound to different host nodes. This should increase performance in large virtual machines and

Re: [PATCH V2 3/5] ara virt interface of perf to support kvm guest os statistics collection in guest os

2010-06-24 Thread Avi Kivity
On 06/24/2010 06:36 AM, Zhang, Yanmin wrote: If the perf event is bound to the vm, not a vcpu, then on guest process migration you will have to disable it on one vcpu and enable it on the other, no? I found we start from different points. This patch is to implement a para virt interface

Re: [PATCH v2 3/4] KVM: cleanup: remove kvm_get_dirty_log()

2010-06-24 Thread Avi Kivity
On 06/24/2010 03:58 AM, Marcelo Tosatti wrote: Well yes, I expect that not using rcu_dereference() (and srcu_read_lock()) is a bug here. Marcelo? No because slots_lock is held which serializes with memslot updates. Right, I need to reread Documentation/kvm/locking.txt. -- error

Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost pollers

2010-06-24 Thread Michael S. Tsirkin
On Sun, May 30, 2010 at 10:25:01PM +0200, Tejun Heo wrote: Apply the cpumask and cgroup of the initializing task to the created vhost poller. Based on Sridhar Samudrala's patch. Cc: Michael S. Tsirkin m...@redhat.com Cc: Sridhar Samudrala samudrala.srid...@gmail.com I wanted to apply

Slow vmalloc in 2.6.35-rc3

2010-06-24 Thread Avi Kivity
I see really slow vmalloc performance on 2.6.35-rc3: # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 3) 3.581 us| vfree(); 3) | msr_io() { 3) ! 523.880 us |vmalloc(); 3) 1.702 us|

Re: [RFC PATCH v7 01/19] Add a new structure for skb buffer from external.

2010-06-24 Thread Herbert Xu
On Wed, Jun 23, 2010 at 06:05:41PM +0800, Dong, Eddie wrote: I mean once the frontend side driver post the buffers to the backend driver, the backend driver will immediately use that buffers to compose skb or gro_frags and post them to the assigned host NIC driver as receive buffers. In

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Andre Przywara
Alexander Graf wrote: On 24.06.2010, at 00:21, Anthony Liguori wrote: On 06/23/2010 04:09 PM, Andre Przywara wrote: Hi, these three patches add basic NUMA pinning to KVM. According to a user provided assignment parts of the guest's memory will be bound to different host nodes. This should

[KVM-AUTOTEST PATCH] [RFC] KVM test: rss.cpp: add file transfer support

2010-06-24 Thread Michael Goldish
Enable RSS to send/receive files and directory trees (recursively). See protocol details in rss.cpp. Signed-off-by: Michael Goldish mgold...@redhat.com --- client/tests/kvm/deps/rss.cpp | 1429 - 1 files changed, 970 insertions(+), 459 deletions(-) diff

[KVM-AUTOTEST PATCH] [RFC] KVM test: add python client for rss file transfer services

2010-06-24 Thread Michael Goldish
For usage details see docstrings in rss_file_transfer.py. For protocol details see deps/rss.cpp. Signed-off-by: Michael Goldish mgold...@redhat.com --- client/tests/kvm/rss_file_transfer.py | 412 + 1 files changed, 412 insertions(+), 0 deletions(-) create mode

[PATCH v2] KVM: Document KVM specific review items

2010-06-24 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- Documentation/kvm/review-checklist.txt | 38 1 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 Documentation/kvm/review-checklist.txt diff --git a/Documentation/kvm/review-checklist.txt

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Avi Kivity
On 06/24/2010 01:58 PM, Andre Przywara wrote: So who would create the /dev/shm/nodeXX files? Currently it is QEMU. It creates a somewhat unique filename, opens and unlinks it. The difference would be to name the file after the option and to not unlink it. I can imagine starting numactl

[RFC v4][PATCH 0/3] Monitor support for Qemu tracing

2010-06-24 Thread Prerna Saxena
This set of patches enables trace visualization control via the QEMU monitor. It is based on trace infrastructure posted upstream : ( http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02407.html ) This patchset adds monitor commands : - info trace : to view current contents of the trace

Re: [KVM-AUTOTEST PATCH] [RFC] KVM test: rss.cpp: add file transfer support

2010-06-24 Thread Yaniv Kaul
On 6/24/2010 2:03 PM, Michael Goldish wrote: Enable RSS to send/receive files and directory trees (recursively). Are you slowly developing a competitor to STAF (http://staf.sourceforge.net/) ? And re. the file transfer protocol, why not use TFTP, instead of creating your own protocol? Y.

[RFC v4][PATCH 1/3] Change type declarations

2010-06-24 Thread Prerna Saxena
Change type 'TraceEvent' to 'TraceEventID' Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com --- simpletrace.c | 12 ++-- tracetool | 12 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/simpletrace.c b/simpletrace.c index 2fec4d3..b488380 100644

[RFC v4][PATCH 2/3] Monitor command 'info trace'

2010-06-24 Thread Prerna Saxena
Monitor command 'info trace' to display contents of trace buffer Signed-off-by: Prerna Saxena pre...@linux.vnet.ibm.com --- configure |3 +++ monitor.c | 12 qemu-monitor.hx |4 simpletrace.c | 12 tracetool |1 + 5 files

[RFC v4][PATCH 3/3] Support for dynamically enabling/disabling trace events.

2010-06-24 Thread Prerna Saxena
This patch adds support for dynamically enabling/disabling of trace events. This is done by internally maintaining each trace event's state, and permitting logging of data from a trace event only if it is in an 'active' state. Monitor commands added : 1) info trace-events: to view

Re: [KVM-AUTOTEST PATCH] [RFC] KVM test: rss.cpp: add file transfer support

2010-06-24 Thread Lucas Meneghel Rodrigues
On Thu, 2010-06-24 at 14:25 +0300, Yaniv Kaul wrote: On 6/24/2010 2:03 PM, Michael Goldish wrote: Enable RSS to send/receive files and directory trees (recursively). Are you slowly developing a competitor to STAF (http://staf.sourceforge.net/) ? And re. the file transfer protocol, why not

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Andre Przywara
Avi Kivity wrote: On 06/24/2010 01:58 PM, Andre Przywara wrote: So who would create the /dev/shm/nodeXX files? Currently it is QEMU. It creates a somewhat unique filename, opens and unlinks it. The difference would be to name the file after the option and to not unlink it. I can imagine

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Avi Kivity
On 06/24/2010 02:34 PM, Andre Przywara wrote: Non-anonymous memory doesn't work well with ksm and transparent hugepages. Is it possible to use anonymous memory rather than file backed? I'd prefer non-file backed, too. But that is how the current huge pages implementation is done. We could

[PATCH] qemu-kvm: Remove old kvm-kmod traces from build system

2010-06-24 Thread Jan Kiszka
This became a separate package long ago. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile | 15 --- configure | 22 -- 2 files changed, 0 insertions(+), 37 deletions(-) diff --git a/Makefile b/Makefile index 2cd87be..49e2a3f 100644 ---

Re: [PATCH] qemu-kvm: Remove old kvm-kmod traces from build system

2010-06-24 Thread Avi Kivity
On 06/24/2010 02:45 PM, Jan Kiszka wrote: This became a separate package long ago. Applied, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] qemu-kvm: Remove old kvm-kmod traces from build system

2010-06-24 Thread Jan Kiszka
Avi Kivity wrote: On 06/24/2010 02:45 PM, Jan Kiszka wrote: This became a separate package long ago. Applied, thanks. Wow. Are you idling over the commit button? Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux -- To unsubscribe from

Re: [PATCH] qemu-kvm: Remove old kvm-kmod traces from build system

2010-06-24 Thread Avi Kivity
On 06/24/2010 02:48 PM, Jan Kiszka wrote: Wow. Are you idling over the commit button? Send me moar patches! -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to

Re: Looking at using KVM for embedded product

2010-06-24 Thread Tom Shoes
On Wed, Jun 23, 2010 at 7:33 AM, Avi Kivity a...@redhat.com wrote: Thanks for your response Avi. The userspace part - qemu-kvm - is released independently (and has its own stable branch). Does a certain version of qemu-kvm go hand in hand with a certain version of KVM code in the Linux kernel

Re: [PATCH V2] VFIO driver: Non-privileged user level PCI drivers

2010-06-24 Thread Joerg Roedel
On Thu, Jun 17, 2010 at 02:14:00PM -0700, Tom Lyon wrote: On Sunday 13 June 2010 03:23:39 am Michael S. Tsirkin wrote: OK, after more investigation, I realize you are right. We definitely need the IOMMU protection for interrupts, and if we have it, a lot of the code for config space

Re: [KVM-AUTOTEST PATCH] [RFC] KVM test: rss.cpp: add file transfer support

2010-06-24 Thread Michael Goldish
On 06/24/2010 02:25 PM, Yaniv Kaul wrote: On 6/24/2010 2:03 PM, Michael Goldish wrote: Enable RSS to send/receive files and directory trees (recursively). Are you slowly developing a competitor to STAF (http://staf.sourceforge.net/) ? I think STAF offers much more stuff. However, rss is

Re: Looking at using KVM for embedded product

2010-06-24 Thread Tom Shoes
Thanks you for the suggestions and the link (a neat one). Cheers ../Tom -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Looking at using KVM for embedded product

2010-06-24 Thread Avi Kivity
On 06/24/2010 03:21 PM, Tom Shoes wrote: The userspace part - qemu-kvm - is released independently (and has its own stable branch). Does a certain version of qemu-kvm go hand in hand with a certain version of KVM code in the Linux kernel release? No. Does the KVM community

Re: [PATCH 0/3][RFC] NUMA: add host side pinning

2010-06-24 Thread Andi Kleen
Anthony Liguori anth...@codemonkey.ws writes: If we extended integrated -mem-path with -numa such that a different path could be used with each numa node (and we let an explicit file be specified instead of just a directory), then if I understand correctly, we could use numactl without any

About sound problem on guests

2010-06-24 Thread satimis
Hi folks, KVM - 1:0.12.4+dfsg-1~bpo50+1 0 host - Debian 5.0 I have been suffering sound problem on guests for sometimes. Please advise whether the same has been solved. If YES please advice how to solve it. TIA B.R. Stephen L -- To unsubscribe from this list: send the line

Re: [PATCH V2] VFIO driver: Non-privileged user level PCI drivers

2010-06-24 Thread Michael S. Tsirkin
On Thu, Jun 24, 2010 at 02:22:19PM +0200, Joerg Roedel wrote: On Thu, Jun 17, 2010 at 02:14:00PM -0700, Tom Lyon wrote: On Sunday 13 June 2010 03:23:39 am Michael S. Tsirkin wrote: OK, after more investigation, I realize you are right. We definitely need the IOMMU protection for

Re: [RFC v4][PATCH 0/3] Monitor support for Qemu tracing

2010-06-24 Thread Stefan Hajnoczi
On Thu, Jun 24, 2010 at 04:49:30PM +0530, Prerna Saxena wrote: This set of patches enables trace visualization control via the QEMU monitor. It is based on trace infrastructure posted upstream : ( http://lists.gnu.org/archive/html/qemu-devel/2010-05/msg02407.html ) This patchset adds

Re: Slow vmalloc in 2.6.35-rc3

2010-06-24 Thread Nick Piggin
On Thu, Jun 24, 2010 at 12:19:32PM +0300, Avi Kivity wrote: I see really slow vmalloc performance on 2.6.35-rc3: Can you try this patch? http://userweb.kernel.org/~akpm/mmotm/broken-out/mm-vmap-area-cache.patch # tracer: function_graph # # CPU DURATION FUNCTION CALLS # |

[PATCH] make-release: fix mtime on rhel6 beta

2010-06-24 Thread Michael S. Tsirkin
With recent git versions (like one in rhel6 beta), git prints out tag info in addition to requested format, if passed a tag name. This breaks make-release. To get just the time as we want, we need to pass something that is not a tag name but matches same commit. $commit~0 does this.

Re: [PATCH] make-release: fix mtime on rhel6 beta

2010-06-24 Thread Eduardo Habkost
On Thu, Jun 24, 2010 at 06:48:52PM +0300, Michael S. Tsirkin wrote: With recent git versions (like one in rhel6 beta), git prints out tag info in addition to requested format, if passed a tag name. This breaks make-release. To get just the time as we want, we need to pass something that is

Re: [PATCH] make-release: fix mtime on rhel6 beta

2010-06-24 Thread Michael S. Tsirkin
On Thu, Jun 24, 2010 at 01:12:04PM -0300, Eduardo Habkost wrote: On Thu, Jun 24, 2010 at 06:48:52PM +0300, Michael S. Tsirkin wrote: With recent git versions (like one in rhel6 beta), git prints out tag info in addition to requested format, if passed a tag name. This breaks make-release.

Re: [PATCH] make-release: fix mtime on rhel6 beta

2010-06-24 Thread Eduardo Habkost
On Thu, Jun 24, 2010 at 07:09:15PM +0300, Michael S. Tsirkin wrote: On Thu, Jun 24, 2010 at 01:12:04PM -0300, Eduardo Habkost wrote: On Thu, Jun 24, 2010 at 06:48:52PM +0300, Michael S. Tsirkin wrote: With recent git versions (like one in rhel6 beta), git prints out tag info in addition

[PATCHv2] make-release: fix mtime on rhel6 beta

2010-06-24 Thread Michael S. Tsirkin
With recent git versions (like one in rhel6 beta), git prints out tag info in addition to requested format, if passed a tag name. This breaks make-release. To get just the time as we want, we need to pass something that is not a tag name but matches same commit. $commit^{commit} does this.

Graphical virtualisation management system

2010-06-24 Thread Freddie Cash
What is everyone using to manage their virtualisation setup? Anyone using a pre-packaged management system like ConVirt, oVirt, Virt-Manager, etc? Everyone rolling their own management scripts? Something else? Right now, we're using our home-grown kvmctl script (as seen in the KVM wiki) to

Re: Graphical virtualisation management system

2010-06-24 Thread Javier Guerra Giraldez
On Thu, Jun 24, 2010 at 1:32 PM, Freddie Cash fjwc...@gmail.com wrote:  * virt-manager which requires X and seems to be more desktop-oriented; don't know about the others, but virt-manager runs only on the admin station. on the VM hosts you run only libvirtd, which doesn't need X in fact,

Re: [PATCH 3/3] vhost: apply cpumask and cgroup to vhost pollers

2010-06-24 Thread Sridhar Samudrala
On Thu, 2010-06-24 at 11:11 +0300, Michael S. Tsirkin wrote: On Sun, May 30, 2010 at 10:25:01PM +0200, Tejun Heo wrote: Apply the cpumask and cgroup of the initializing task to the created vhost poller. Based on Sridhar Samudrala's patch. Cc: Michael S. Tsirkin m...@redhat.com Cc:

[PATCH] qemu-kvm tests: Create make target for install tests

2010-06-24 Thread Lucas Meneghel Rodrigues
In order to make it convenient to run unit tests on KVM autotest, add rules to install the flat files to $(PREFIX)/share/qemu/tests. Also, add a unittests.cfg file, a simple .ini file that contains unittest definitions. The unittest definitions work like this: [unittest_name] file = foo.flat #

[PATCH 1/5] KVM test: support kernel -append command line options

2010-06-24 Thread Lucas Meneghel Rodrigues
Signed-off-by: Michael Goldish mgold...@redhat.com --- client/tests/kvm/kvm_vm.py |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index 966fb3c..87b037f 100755 --- a/client/tests/kvm/kvm_vm.py +++

[PATCH 2/5] KVM test: add boolean 'testdev' VM parameter for RHEL-6 style unit tests

2010-06-24 Thread Lucas Meneghel Rodrigues
Should be set to yes to enable testdev. Signed-off-by: Michael Goldish mgold...@redhat.com --- client/tests/kvm/kvm_vm.py |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index 87b037f..7b1fc05 100755 ---

[PATCH 3/5] KVM test: add wrapper for RHEL-6 style unittests

2010-06-24 Thread Lucas Meneghel Rodrigues
From: Michael Goldish mgold...@redhat.com Based on Naphtali Sprei's patches. Changes from v2: - Determine dynamically what tests are available and what are the options for them, based on the unittest directory (that is supposed to be linked during the build test) Changes from v1: - Determine

[PATCH 4/5] KVM test: add sample RHEL-6 style unittest config file

2010-06-24 Thread Lucas Meneghel Rodrigues
From: Michael Goldish mgold...@redhat.com Based on Naphtali Sprei's patches. Changes from v1: - Remove reference_output parameter Signed-off-by: Michael Goldish mgold...@redhat.com --- client/tests/kvm/unittests.cfg.sample | 56 + 1 files changed, 56

[PATCH 5/5] KVM test: Make it possible to run VMs without NICs

2010-06-24 Thread Lucas Meneghel Rodrigues
For unittesting, for example, is interesting that we run the VM with the bare mininum number of parameters. This fix allows that. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/kvm_vm.py |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH] KVM test: Modify the build.git method to build and link unittests

2010-06-24 Thread Lucas Meneghel Rodrigues
If we have a certain file that has information about running unit tests, let's build the unittests on the build.git mode. This feature depends on a qemu-kvm patch that is still not upstream, but I am sending anyways so people can comment. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com

RE: [RFC PATCH v7 01/19] Add a new structure for skb buffer from external.

2010-06-24 Thread Dong, Eddie
Herbert Xu wrote: On Wed, Jun 23, 2010 at 06:05:41PM +0800, Dong, Eddie wrote: I mean once the frontend side driver post the buffers to the backend driver, the backend driver will immediately use that buffers to compose skb or gro_frags and post them to the assigned host NIC driver as

Handling page faults in KVM

2010-06-24 Thread Khaled Ibrahim
Apparently, not all page faults on the guest result in a page fault in the host. I would like to intercept page faults on the guest that are not handled by the host. I am not quite sure where (in the source code) can I monitor that? Can any one give me code pointers to look at?

RE: qemu fail to parse command line with -pcidevice 00:19.0

2010-06-24 Thread Hao, Xudong
Work-around: -device pci-assign,host=00:19.1 OK, this new way can work when create guest with static assignment. But how to hot add a pci device to guest? the old hot add command pci_add pci_addr=auto host host=00:19.0 has the same parse error. BTW: if we use add -net none in qemu command, guest

RE: [RFC PATCH v7 01/19] Add a new structure for skb buffer from external.

2010-06-24 Thread Xin, Xiaohui
Herbert, That's why I have sent you the patch for guest virtio-net driver. I reserved 512 bytes in each page, then I can always have the space to copy and avoid the backend memory used up issue. Thanks Xiaohui -Original Message- From: Herbert Xu [mailto:herb...@gondor.apana.org.au]

Re: [PATCH 0/2] v2: Add 'serial' attribute to virtio-blk devices

2010-06-24 Thread Rusty Russell
On Thu, 24 Jun 2010 12:49:56 pm Ryan Harper wrote: Using Rusty's suggestion I've respun the patch removing the special copy function. I've tested this patch in a guest kernel with and without qemu supplying serial numbers for the block devices and it's working as expected. When qemu supplies

Re: [RFC] virtio: Support releasing lock during kick

2010-06-24 Thread Rusty Russell
On Thu, 24 Jun 2010 03:00:30 pm Stefan Hajnoczi wrote: On Wed, Jun 23, 2010 at 11:12 PM, Anthony Liguori anth...@codemonkey.ws wrote: Shouldn't it be possible to just drop the lock before invoking virtqueue_kick() and reacquire it afterwards? There's nothing in that virtqueue_kick() path

Re: qemu fail to parse command line with -pcidevice 00:19.0

2010-06-24 Thread Markus Armbruster
Hao, Xudong xudong@intel.com writes: Work-around: -device pci-assign,host=00:19.1 OK, this new way can work when create guest with static assignment. But how to hot add a pci device to guest? the old hot add command pci_add pci_addr=auto host host=00:19.0 has the same parse error.

Re: [PATCH v2 3/4] KVM: cleanup: remove kvm_get_dirty_log()

2010-06-24 Thread Avi Kivity
On 06/24/2010 03:58 AM, Marcelo Tosatti wrote: Well yes, I expect that not using rcu_dereference() (and srcu_read_lock()) is a bug here. Marcelo? No because slots_lock is held which serializes with memslot updates. Right, I need to reread Documentation/kvm/locking.txt. -- error

[PATCH] kvm/ppc: fix build warning

2010-06-24 Thread Denis Kirjanov
Fix build warning: arch/powerpc/kvm/book3s_64_mmu.c: In function 'kvmppc_mmu_book3s_64_esid_to_vsid': arch/powerpc/kvm/book3s_64_mmu.c:446: warning: 'slb' may be used uninitialized in this function Signed-off-by: Denis Kirjanov dkirja...@kernel.org --- arch/powerpc/kvm/book3s_64_mmu.c |2 +-

Re: [PATCH] kvm/ppc: fix build warning

2010-06-24 Thread Alexander Graf
On 24.06.2010, at 21:44, Denis Kirjanov wrote: Fix build warning: arch/powerpc/kvm/book3s_64_mmu.c: In function 'kvmppc_mmu_book3s_64_esid_to_vsid': arch/powerpc/kvm/book3s_64_mmu.c:446: warning: 'slb' may be used uninitialized in this function Signed-off-by: Denis Kirjanov