Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Arnd Bergmann
On Wednesday 27 January 2010, Anthony Liguori wrote: Introducing something that is known to be problematic from a security perspective without any clear idea of what the use-case for it is is a bad idea IMHO. vepa on existing kernels is one use-case. Considering

Re: [Qemu-devel] [PATCH] Add definitions for current cpu models..

2010-01-28 Thread Arnd Bergmann
On Monday 25 January 2010, Dor Laor wrote: x86 qemu64 x86 phenom x86 core2duo x86kvm64 x86 qemu32 x86 coreduo x86 486 x86 pentium x86 pentium2 x86 pentium3 x86 athlon x86

Re: qemu-kvm: enable get/set vcpu events on reset and migration

2010-01-28 Thread Jan Kiszka
Marcelo Tosatti wrote: The last two hunks will cause the same !CONFIG_KVM breakages qemu-kvm's mpstate used to as well. You may either fix it up temporarily or wait for my refactoring that is now scheduled with highest priority (should be ready today or tomorrow). It needs to go in

[PATCH] uq/master: KVM: Request setting of nmi_pending and sipi_vector

2010-01-28 Thread Jan Kiszka
The final version of VCPU events in 2.6.33 will allow to skip nmi_pending and sipi_vector on KVM_SET_VCPU_EVENTS. For now let's write them unconditionally, which is unproblematic for upstream due to missing SMP support. Future version which enable SMP will write them only on reset. Signed-off-by:

Re: KVM problems with Xeon L5530

2010-01-28 Thread Matteo Ghezzi
2010/1/28 Brian Jackson i...@theiggy.com: What version of qemu-kvm? qemu-kvm 0.12.2-1 There was a similar thread a while back, maybe you could try some of the suggestions and/or info gathering tips from it. tried every suggestion form that thread... contacted the original poster and narrowed

Re: [Qemu-devel] [PATCH] Add definitions for current cpu models..

2010-01-28 Thread Alexander Graf
On 28.01.2010, at 09:19, Arnd Bergmann wrote: On Monday 25 January 2010, Dor Laor wrote: x86 qemu64 x86 phenom x86 core2duo x86kvm64 x86 qemu32 x86 coreduo x86 486 x86 pentium x86 pentium2 x86

Re: [RFC][PATCH] KVM: Introduce modification context for cpu_synchronize_state

2010-01-28 Thread Jan Kiszka
Marcelo Tosatti wrote: On Wed, Jan 27, 2010 at 03:54:08PM +0100, Jan Kiszka wrote: This patch originates in the mp_state writeback issue: During runtime and even on reset, we must not write the previously saved VCPU state back into the kernel in an uncontrolled fashion. E.g mp_state should

High availability VM

2010-01-28 Thread Pablo Mellado
Hi there, I would need a system running in a VM with high availability. My current version of KVM in Debian Lenny does not support to take snapshots of the VM while it is running. So I was wondering if I can migrate the VM and then make the snapshot on the source host. Once the snapshot is

Re: [Qemu-devel] [PATCH] Fix qemu-img can't create qcow image based on read-only image

2010-01-28 Thread Kevin Wolf
Am 28.01.2010 06:22, schrieb Sheng Yang: Commit 03cbdac7 Disable fall-back to read-only when cannot open drive's file for read-write result in read-only image can't be used as backed image in qemu-img. CC: Naphtali Sprei nsp...@redhat.com Signed-off-by: Sheng Yang sh...@linux.intel.com ---

Re: [Autotest] [Autotest PATCH] KVM-test: Add a subtest 'qemu_img'

2010-01-28 Thread Yolkfull Chow
On Tue, Jan 26, 2010 at 03:11:34PM -0200, Lucas Meneghel Rodrigues wrote: On Tue, 2010-01-26 at 11:25 +0800, Yolkfull Chow wrote: This is designed to test all subcommands of 'qemu-img' however so far 'commit' is not implemented. Hi Yolkful, this is very good! Seeing this test made me think

[ kvm-Bugs-2941537 ] rtl8139 (and others) emulation not working in OsX86

2010-01-28 Thread SourceForge.net
Bugs item #2941537, was opened at 2010-01-28 11:57 Message generated for change (Tracker Item Submitted) made by nebukadneza You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2941537group_id=180599 Please note that this message will contain a full copy of

Re: KVM problems with Xeon L5530

2010-01-28 Thread Matteo Ghezzi
Upgraded to 2.6.33-rc5, same qemu-kvm version, same hardware. The Vnc screen is still black and the virtual machine, but now I don't have anymore messages in the logs but directly at standard output: KVM internal error. Suberror: 2 extra data[0]: 8010 extra data[1]: 8b0d rax

RE: High availability VM

2010-01-28 Thread Martin Maurer
-Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Pablo Mellado Sent: Donnerstag, 28. Jänner 2010 09:55 To: kvm@vger.kernel.org Subject: High availability VM Hi there, I would need a system running in a VM with high availability.

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Or Gerlitz
Sridhar Samudrala wrote: On Wed, 2010-01-27 at 22:39 +0100, Arnd Bergmann wrote: we already have -net socket,fd and any user that passes an fd into that already knows what he wants to do with it. Making it work with raw sockets is just a natural extension to this Didn't realize that -net

[PATCH 01/11] iommu-api: Rename -{un}map function pointers to -{un}map_range

2010-01-28 Thread Joerg Roedel
The new function pointer names match better with the top-level functions of the iommu-api which are using them. Main intention of this change is to make the -{un}map pointer names free for two new mapping functions. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- arch/x86/kernel/amd_iommu.c

[PATCH 07/11] x86/amd-iommu: Make iommu_map_page and alloc_pte aware of page sizes

2010-01-28 Thread Joerg Roedel
This patch changes the old map_size parameter of alloc_pte to a page_size parameter which can be used more easily to alloc a pte for intermediate page sizes. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- arch/x86/include/asm/amd_iommu_types.h | 28 +

[PATCH 10/11] x86/amd-iommu: Implement -{un}map callbacks for iommu-api

2010-01-28 Thread Joerg Roedel
This patch implements the new callbacks for the IOMMU-API with functions that can handle different page sizes in the IOMMU page table. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- arch/x86/kernel/amd_iommu.c | 29 + 1 files changed, 29 insertions(+), 0

[PATCH 11/11] iommu-api: Remove iommu_{un}map_range functions

2010-01-28 Thread Joerg Roedel
These functions are not longer used and can be removed savely. There functionality is now provided by the iommu_{un}map functions which are also capable of multiple page sizes. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- arch/x86/kernel/amd_iommu.c | 48

[PATCH 0/11] Large Page Support for IOMMU-API and KVM

2010-01-28 Thread Joerg Roedel
Hi, here is a patch set which implements support for variable page sizes in the IOMMU-API and changes the KVM device passthrough code to map the guest physical memory with the best page sizes. With this code a guest with 1GB of memory mapped with a 1GB page will not use 4kb PTEs in the IO page

[PATCH 06/11] kvm: Change kvm_iommu_map_pages to map large pages

2010-01-28 Thread Joerg Roedel
This patch changes the implementation of of kvm_iommu_map_pages to map the pages with the host page size into the io virtual address space. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- virt/kvm/iommu.c | 106 ++--- 1 files changed, 84

[PATCH 02/11] iommu-api: Add iommu_map and iommu_unmap functions

2010-01-28 Thread Joerg Roedel
These two functions provide support for mapping and unmapping physical addresses to io virtual addresses. The difference to the iommu_(un)map_range() is that the new functions take a gfp_order parameter instead of a size. This allows the IOMMU backend implementations to detect easier if a given

[PATCH 09/11] x86/amd-iommu: Make amd_iommu_iova_to_phys aware of multiple page sizes

2010-01-28 Thread Joerg Roedel
This patch extends the amd_iommu_iova_to_phys() function to handle different page sizes correctly. It doesn't use fetch_pte() anymore because we don't know (or care about) the page_size used for mapping the given iova. Signed-off-by: Joerg Roedel joerg.roe...@amd.com ---

[PATCH 03/11] iommu-api: Add -{un}map callbacks to iommu_ops

2010-01-28 Thread Joerg Roedel
This patch adds new callbacks for mapping and unmapping pages to the iommu_ops structure. These callbacks are aware of page sizes which makes them different to the -{un}map_range callbacks. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- drivers/base/iommu.c |6 ++

[PATCH 08/11] x86/amd-iommu: Make iommu_unmap_page and fetch_pte aware of page sizes

2010-01-28 Thread Joerg Roedel
This patch extends the functionality of iommu_unmap_page and fetch_pte to support arbitrary page sizes. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- arch/x86/include/asm/amd_iommu_types.h |6 ++ arch/x86/kernel/amd_iommu.c| 90 +-- 2 files

[PATCH 04/11] VT-d: Change {un}map_range functions to implement {un}map interface

2010-01-28 Thread Joerg Roedel
This patch changes the iommu-api functions for mapping and unmapping page ranges to use the new page-size based interface. This allows to remove the range based functions later. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- drivers/pci/intel-iommu.c | 22 -- 1 files

Re: KVM problems with Xeon L5530

2010-01-28 Thread Kenni Lund
2010/1/28 Matteo Ghezzi tenyos...@gmail.com: SNIP I've tried starting the old vmachines on the new hardware but if I enable kvm acceleration in qemu I got a black screen via vnc, and the Enable kvm in qemu? KVM should always be enabled in Arch, when you run qemu-kvm. You're not running

Re: [Autotest] [Autotest PATCH] KVM-test: Add a subtest 'qemu_img'

2010-01-28 Thread Lucas Meneghel Rodrigues
On Thu, 2010-01-28 at 17:37 +0800, Yolkfull Chow wrote: On Tue, Jan 26, 2010 at 03:11:34PM -0200, Lucas Meneghel Rodrigues wrote: That said, I was wondering if we could consolidate all qemu-img tests to a single execution, instead of splitting it to several variants. We could keep a failure

[ kvm-Bugs-2941282 ] Ubuntu 10.04 installer fails due to I/O errors with virtio

2010-01-28 Thread SourceForge.net
Bugs item #2941282, was opened at 2010-01-27 17:19 Message generated for change (Comment added) made by sjolshagen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2941282group_id=180599 Please note that this message will contain a full copy of the comment

[PATCH 0/5] KVM: Cleanups: X86EMUL_* related.

2010-01-28 Thread Takuya Yoshikawa
Hi, Sorry for a bit noisy cleanups. But during this work, we noticed some buggy return value checks and determined to send this work as a patch series. Thanks, Takuya Yoshikawa -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org

[PATCH 1/5] KVM: Use X86EMUL_* to check the return value from read_std

2010-01-28 Thread Takuya Yoshikawa
read_std is one of the x86_emulate_ops. This patch fix the return value check to use the proper macro. Signed-off-by: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp --- arch/x86/kvm/emulate.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/emulate.c

Re: qemu-kvm: enable get/set vcpu events on reset and migration

2010-01-28 Thread Gleb Natapov
On Tue, Jan 26, 2010 at 10:26:22PM -0200, Marcelo Tosatti wrote: @@ -374,6 +375,7 @@ static int cpu_post_load(void *opaque, int version_id) kvm_load_tsc(env); kvm_load_mpstate(env); +kvm_put_vcpu_events(env); } It is confusing to call functions load/save for

[PATCH 3/5] KVM: Restrict rc values in x86_emulate_insn to X86EMUL_* values

2010-01-28 Thread Takuya Yoshikawa
This patch differentiate the X86EMUL_* values returned from X86EMUL_* type functions. Note: During this work, we noticed some buggy return value checks in x86_emulate_insn(). See FIXME in this patch. Signed-off-by: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp --- arch/x86/kvm/emulate.c |

[PATCH 4/5] KVM: load|save_guest_segment_descriptor() should return X86EMUL_* values

2010-01-28 Thread Takuya Yoshikawa
These two functions should return X86EMUL_* values. Signed-off-by: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp --- arch/x86/kvm/x86.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index ac8672f..78b8ddb 100644 ---

[PATCH 5/5] KVM: Fix the usage of X86EMUL_* values in x86.c

2010-01-28 Thread Takuya Yoshikawa
pio_copy_data() and load|save_guest_segment_descriptor() return X86EMUL_* values. Mixing up these values with 0, 1, ... may produce unpridictable bugs. Signed-off-by: Takuya Yoshikawa yoshikawa.tak...@oss.ntt.co.jp --- arch/x86/kvm/x86.c | 27 +++ 1 files changed, 15

Re: qemu-kvm: enable get/set vcpu events on reset and migration

2010-01-28 Thread Jan Kiszka
Gleb Natapov wrote: On Tue, Jan 26, 2010 at 10:26:22PM -0200, Marcelo Tosatti wrote: @@ -374,6 +375,7 @@ static int cpu_post_load(void *opaque, int version_id) kvm_load_tsc(env); kvm_load_mpstate(env); +kvm_put_vcpu_events(env); } It is confusing to call

Re: [Qemu-devel] [PATCH] Add definitions for current cpu models..

2010-01-28 Thread Anthony Liguori
On 01/28/2010 02:43 AM, Alexander Graf wrote: On 28.01.2010, at 09:19, Arnd Bergmann wrote: On Monday 25 January 2010, Dor Laor wrote: x86 qemu64 x86 phenom x86 core2duo x86kvm64 x86 qemu32 x86 coreduo x86 486

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Anthony Liguori
On 01/28/2010 07:56 AM, Michael S. Tsirkin wrote: Now, the most important use case I see for the raw socket interface in qemu is to get vhost-net and the qemu user implementation to support the same feature set. If you ask for a network setup involving a raw socket and vhost-net and the kernel

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Anthony Liguori
On 01/28/2010 08:13 AM, Anthony Liguori wrote: On 01/28/2010 07:56 AM, Michael S. Tsirkin wrote: Now, the most important use case I see for the raw socket interface in qemu is to get vhost-net and the qemu user implementation to support the same feature set. If you ask for a network setup

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Michael S. Tsirkin
On Thu, Jan 28, 2010 at 08:13:53AM -0600, Anthony Liguori wrote: On 01/28/2010 07:56 AM, Michael S. Tsirkin wrote: Now, the most important use case I see for the raw socket interface in qemu is to get vhost-net and the qemu user implementation to support the same feature set. If you ask for a

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Anthony Liguori
On 01/28/2010 08:52 AM, Michael S. Tsirkin wrote: On Thu, Jan 28, 2010 at 08:13:53AM -0600, Anthony Liguori wrote: On 01/28/2010 07:56 AM, Michael S. Tsirkin wrote: Now, the most important use case I see for the raw socket interface in qemu is to get vhost-net and the qemu user

[ kvm-Bugs-2941282 ] Ubuntu 10.04 installer fails due to I/O errors with virtio

2010-01-28 Thread SourceForge.net
Bugs item #2941282, was opened at 2010-01-27 17:19 Message generated for change (Comment added) made by sjolshagen You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2941282group_id=180599 Please note that this message will contain a full copy of the comment

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Michael S. Tsirkin
On Thu, Jan 28, 2010 at 09:05:45AM -0600, Anthony Liguori wrote: On 01/28/2010 08:52 AM, Michael S. Tsirkin wrote: On Thu, Jan 28, 2010 at 08:13:53AM -0600, Anthony Liguori wrote: On 01/28/2010 07:56 AM, Michael S. Tsirkin wrote: Now, the most important use case I see for the raw

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Jens Osterkamp
On Thursday 28 January 2010, Arnd Bergmann wrote: On Wednesday 27 January 2010, Sridhar Samudrala wrote: On Wed, 2010-01-27 at 22:39 +0100, Arnd Bergmann wrote: On Wednesday 27 January 2010, Anthony Liguori wrote: I think -net socket,fd should just be (trivially) extended to work

[ kvm-Bugs-2930756 ] sdl window intermittently scales instead of resizing

2010-01-28 Thread SourceForge.net
Bugs item #2930756, was opened at 2010-01-12 11:20 Message generated for change (Comment added) made by jamincollins You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2930756group_id=180599 Please note that this message will contain a full copy of the

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Anthony Liguori
On 01/28/2010 10:37 AM, Michael S. Tsirkin wrote: So actually, this is an interesting argument in favor of turning disablenetwork from per-process as it is now to per-file. Yup. I think we really need a file-based restriction mechanism and so far, neither disablenetwork or network

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Michael S. Tsirkin
On Thu, Jan 28, 2010 at 11:58:48AM -0600, Anthony Liguori wrote: On 01/28/2010 10:37 AM, Michael S. Tsirkin wrote: So actually, this is an interesting argument in favor of turning disablenetwork from per-process as it is now to per-file. Yup. I think we really need a file-based

[patch 1/3] KVM: x86: add ioctls to get/set PIO state

2010-01-28 Thread Marcelo Tosatti
A vcpu can be stopped after handling IO in userspace, but before returning to kernel to finish processing. Add ioctls to get/set the PIO state. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com diff --git a/arch/x86/include/asm/kvm.h b/arch/x86/include/asm/kvm.h index f46b79f..c1b2b8c 100644

[patch 2/3] uqmaster: save/restore pio state

2010-01-28 Thread Marcelo Tosatti
Save/restore in-kernel KVM PIO state. This is necessary to allow migration with in-progress PIO operation. FIXME: adjust CPUState and VMState version. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Index: qemu-kvm/target-i386/cpu.h

[patch 0/3] save/restore in-progress PIO

2010-01-28 Thread Marcelo Tosatti
qemu patches against uq/master. MMIO suffers from the same problem. -- 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

[PATCH] KVM test: Improvements and cleanups to build subtest

2010-01-28 Thread Lucas Meneghel Rodrigues
1) Make git build of only the userspace bits 2) If kernel module build fails (kvm-kmod bug), issue a warning and proceed with test. 3) Cleanup usage of private methods using name mangling (_ instead of __ prepended to the name of the methods). This is in preparation to new distros and a future

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Anthony Liguori
On 01/28/2010 12:04 PM, Michael S. Tsirkin wrote: On Thu, Jan 28, 2010 at 11:58:48AM -0600, Anthony Liguori wrote: On 01/28/2010 10:37 AM, Michael S. Tsirkin wrote: So actually, this is an interesting argument in favor of turning disablenetwork from per-process as it is now to

Re: [patch 3/3] uqmaster: save/restore PIO page

2010-01-28 Thread Anthony Liguori
On 01/28/2010 01:03 PM, Marcelo Tosatti wrote: KVM uses a page mapped by userspace as a buffer for PIO. Save/restore it. Signed-off-by: Marcelo Tosattimtosa...@redhat.com Index: qemu-kvm/target-i386/cpu.h === ---

Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

2010-01-28 Thread Arnd Bergmann
On Thursday 28 January 2010, Anthony Liguori wrote: normal user uses libvirt to launch custom qemu instance. libvirt passes an fd of a raw socket to qemu and puts the qemu process in a restricted network namespace. user has another program running listening on a unix domain socket and

Re: [PATCH 04/11] VT-d: Change {un}map_range functions to implement {un}map interface

2010-01-28 Thread David Woodhouse
On Thu, 2010-01-28 at 12:37 +0100, Joerg Roedel wrote: This patch changes the iommu-api functions for mapping and unmapping page ranges to use the new page-size based interface. This allows to remove the range based functions later. + size = 0x1000UL gfp_order; Um, that's not a

Re: [PATCH] uq/master: KVM: Request setting of nmi_pending and sipi_vector

2010-01-28 Thread Marcelo Tosatti
On Thu, Jan 28, 2010 at 09:30:51AM +0100, Jan Kiszka wrote: The final version of VCPU events in 2.6.33 will allow to skip nmi_pending and sipi_vector on KVM_SET_VCPU_EVENTS. For now let's write them unconditionally, which is unproblematic for upstream due to missing SMP support. Future version

Avoiding the page cache?

2010-01-28 Thread Marek Olszewski
Hello, I'm trying to start using kvm to do some research here at MIT. I would like to try out some interesting page mapping ideas we have that would be easier to try out in a hypervisor than inside the linux kernel. However, I would like to start hacking a simple version of kvm that

Re: [PATCH 06/11] kvm: Change kvm_iommu_map_pages to map large pages

2010-01-28 Thread Marcelo Tosatti
On Thu, Jan 28, 2010 at 12:37:57PM +0100, Joerg Roedel wrote: This patch changes the implementation of of kvm_iommu_map_pages to map the pages with the host page size into the io virtual address space. Signed-off-by: Joerg Roedel joerg.roe...@amd.com --- virt/kvm/iommu.c | 106

Re: [Qemu-devel] [PATCH] Fix qemu-img can't create qcow image based on read-only image

2010-01-28 Thread Sheng Yang
On Thursday 28 January 2010 17:17:22 Kevin Wolf wrote: Am 28.01.2010 06:22, schrieb Sheng Yang: Commit 03cbdac7 Disable fall-back to read-only when cannot open drive's file for read-write result in read-only image can't be used as backed image in qemu-img. CC: Naphtali Sprei

[PATCH v2] qemu-img: Fix qemu-img can't create qcow image based on read-only image

2010-01-28 Thread Sheng Yang
Commit 03cbdac7 Disable fall-back to read-only when cannot open drive's file for read-write result in read-only image can't be used as backed image in qemu-img. Cc: Naphtali Sprei nsp...@redhat.com Signed-off-by: Sheng Yang sh...@linux.intel.com --- qemu-img.c | 15 ++- 1 files

Re: Unable to single-step in kvm, always results in a resume

2010-01-28 Thread Nicholas Amon
Jan Kiszka wrote: Nicholas Amon wrote: So now I can step instruction but my breakpoints do not work. I have verified that disabling kvm restores the breakpoint functionality. Any suggestions? What kind of breakpoints, hardware-assisted or normal BPs? Are you trying to break into

[PATCH] KVM test: Fixing sha/md5 deprecation messages

2010-01-28 Thread Lucas Meneghel Rodrigues
When using python 2.4, use the recommended hashlib. When using python 2.4, fall back to the md5 and sha modules. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/kvm_utils.py | 18 ++ client/tests/kvm/ppm_utils.py | 12 +---

[PATCH 2/6] KVM test: Define defaults for KVM test

2010-01-28 Thread Lucas Meneghel Rodrigues
Define reasonable defaults for the kvm test, to make it easier to start using KVM autotest and encourage people to play with it. The defaults are: * qemu and qemu-kvm are expected to be found under /usr/bin. * The auxiliary directories are expected to be found under

[PATCH 3/6] KVM test: Make sure reset and shutdown are the last ones

2010-01-28 Thread Lucas Meneghel Rodrigues
system_reset, system_powerdown and shutdown *must* be the last ones defined, since the effect of such tests can leave the VM on a bad state. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/tests_base.cfg.sample | 35 +-- 1 files changed,

[PATCH 4/6] KVM test: Moving KvmLogging utility class to kvm_utils

2010-01-28 Thread Lucas Meneghel Rodrigues
Some of the auxiliary kvm test programs need to use logging configuration, we ended up duplicating code across the test. Move the duplicated instances to a single one living in kvm_utils.py. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/cd_hash.py|7 +--

[PATCH 5/6] KVM test: Getting rid of annoying deprecation message

2010-01-28 Thread Lucas Meneghel Rodrigues
When using python 2.5, use the recommended hashlib. When using python 2.4, fall back to the md5 and sha modules. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- client/tests/kvm/kvm_utils.py | 18 ++ client/tests/kvm/ppm_utils.py | 12 +---

[PATCH 6/6] KVM test: Add a get_started.py script

2010-01-28 Thread Lucas Meneghel Rodrigues
In order to make it easier to get started with KVM testing, add a script that helps with setting up directories, paths and iso files for the default test configuration (Fedora 12 guest install, boot test, shutdown). Once the first idea of how things work is formed, one may start to tinker with

[PATCH] enable PCI multiple-segments for pass-through device

2010-01-28 Thread Zhai, Edwin
These 2 patches enable optional parameter(default 0) - PCI segment(or domain) besides BDF, when assigning PCI device to guest. Signed-off-by: Zhai Edwin edwin.z...@intel.com -- best rgds, edwin Index: linux-2.6/virt/kvm/assigned-dev.c

[Autotest PATCH] KVM-test: Add a subtest 'qemu_img'

2010-01-28 Thread Yolkfull Chow
This is designed to test all subcommands of 'qemu-img' however so far 'commit' is not implemented. * For 'check' subcommand test, it will 'dd' to create a file with specified size and see whether it's supported to be checked. Then convert it to be supported formats ('qcow2' and 'raw' so far) to

Re: [Autotest PATCH] KVM-test: Add a subtest 'qemu_img'

2010-01-28 Thread Yolkfull Chow
On Fri, Jan 29, 2010 at 03:00:09PM +0800, Yolkfull Chow wrote: This is designed to test all subcommands of 'qemu-img' however so far 'commit' is not implemented. * For 'check' subcommand test, it will 'dd' to create a file with specified size and see whether it's supported to be checked.

Re: [Qemu-devel] [PATCH v2] qemu-img: Fix qemu-img can't create qcow image based on read-only image

2010-01-28 Thread Kevin Wolf
Am 29.01.2010 03:15, schrieb Sheng Yang: Commit 03cbdac7 Disable fall-back to read-only when cannot open drive's file for read-write result in read-only image can't be used as backed image in qemu-img. Cc: Naphtali Sprei nsp...@redhat.com Signed-off-by: Sheng Yang sh...@linux.intel.com

[PATCH] KVM: Remove redundant check in vm_need_virtualize_apic_accesses()

2010-01-28 Thread Gui Jianfeng
flexpriority_enabled implies cpu_has_vmx_virtualize_apic_accesses() returning true, so we don't need this check here. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com --- arch/x86/kvm/vmx.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/arch/x86/kvm/vmx.c

Re: [PATCH] KVM: Remove redundant check in vm_need_virtualize_apic_accesses()

2010-01-28 Thread Sheng Yang
On Friday 29 January 2010 15:36:59 Gui Jianfeng wrote: flexpriority_enabled implies cpu_has_vmx_virtualize_apic_accesses() returning true, so we don't need this check here. Looks fine to me. -- regards Yang, Sheng Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com ---