Re: Device pass-through

2012-01-06 Thread André Weidemann
On 06.01.2012 08:25, Gordon Messmer wrote: On 01/05/2012 11:07 AM, Gordon Messmer wrote: I started with an update to seabios, from the bundled version 0.6.1.2-8.el6 to a rebuilt package from F16, 0.6.2-3.el6. That's enough to get the guest to boot with the pass-through video card. It doesn't

SPEC-file for making RPMs (with rpmbuild)

2012-01-06 Thread Guido Winkelmann
Hi, Is there a spec-file somewhere for creating RPMs from the newest qemu-kvm release? Regards, Guido -- 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: SPEC-file for making RPMs (with rpmbuild)

2012-01-06 Thread Daniel P. Berrange
On Fri, Jan 06, 2012 at 11:11:21AM +0100, Guido Winkelmann wrote: Hi, Is there a spec-file somewhere for creating RPMs from the newest qemu-kvm release? The current Fedora RPM specfiles are always a good bet to start off with:

Re: [PATCH v2] KVM: SVM: Add support for AMD's OSVW feature in guests

2012-01-06 Thread Marcelo Tosatti
On Thu, Jan 05, 2012 at 01:37:36PM -0500, Boris Ostrovsky wrote: On 01/05/12 06:20, Marcelo Tosatti wrote: On Tue, Jan 03, 2012 at 11:38:13PM -0500, Boris Ostrovsky wrote: diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index e32243e..b19769d 100644 --- a/arch/x86/kvm/svm.c +++

Re: qemu-ppc core dumps randomly on postgresql thread safety test

2012-01-06 Thread Marcelo Tosatti
This is a QEMU bug, please send the bug report to qemu-de...@nongnu.org. On Thu, Jan 05, 2012 at 05:26:26PM -0500, Rengert, Mark wrote: Hi - I am using scratchbox2 under Ubuntu 10.04 to build postgresql for ppc. About half the time the configuration test for thread safety fails with a

Re: kvm_steal_time_issue

2012-01-06 Thread Marcelo Tosatti
On Thu, Jan 05, 2012 at 04:12:54PM +0200, d...@il.ibm.com wrote: I am using k3.2.0-rc1 where the kvm steal time handling is included The .config file has :CONFIG_PARAVIRT_GUEST=y,CONFIG_PARAVIRT_TIME_ACCOUNTING=y. I have a host and 2 guests with that kernel and devised a scenario where one

Re: [Qemu-devel] [PATCH 1/3]use int64 when compare two time

2012-01-06 Thread Peter Maydell
On 6 January 2012 07:37, Zhang, Yang Z yang.z.zh...@intel.com wrote: use int64 when compare two time int32 only represent only 136 years when comparing two times based on second. It would be better to use int64. int32, int32_t and 'int' which happens to be 32 bit are all different types;

[PATCH] KVM: MMU: unnecessary NX state assignment

2012-01-06 Thread Davidlohr Bueso
From: Davidlohr Bueso d...@gnu.org We can remove the first -nx state assignment since it is assigned afterwards anyways. Signed-off-by: Davidlohr Bueso d...@gnu.org --- arch/x86/kvm/mmu.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/mmu.c

Re: [PATCH v3] kvm tool: Change kvm-ram_size to real mapped size.

2012-01-06 Thread Pekka Enberg
On Fri, Jan 6, 2012 at 4:06 AM, zanghongy...@huawei.com wrote: From: Hongyong Zang zanghongy...@huawei.com If a guest's ram_size exceeds KVM_32BIT_GAP_START, the corresponding kvm tool's virtual address size should be (ram_size + KVM_32BIT_GAP_SIZE), rather than ram_size. Use macro

Re: PCI passthrough in nested kvm

2012-01-06 Thread Alex Williamson
On Thu, 2012-01-05 at 23:50 -0500, Tian Fang wrote: Hi, Nested kvm is supported. Wondering if a PCI device is able to be passed through into the nested kvm. Could some experts share some insides? No, there's no iommu exposed to the L1 guest, so there's no way to program the iommu for the L2

[PATCH v2.1] KVM: SVM: Add support for AMD's OSVW feature in guests

2012-01-06 Thread Boris Ostrovsky
From: Boris Ostrovsky boris.ostrov...@amd.com In some cases guests should not provide workarounds for errata even when the physical processor is affected. For example, because of erratum 400 on family 10h processors a Linux guest will read an MSR (resulting in VMEXIT) before going to idle in

Re: [Qemu-devel] [PATCH 0/3] remove the periodic RTC update timer

2012-01-06 Thread Andreas Färber
Next time please thread your patch series together so that they can easily be reviewed and tested. git-send-email usually ensures that. Thanks, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg --

Re: [PATCH 3/3] stop the periodic RTC update timer

2012-01-06 Thread Jan Kiszka
On 2012-01-06 05:37, Zhang, Yang Z wrote: change the RTC update logic to use host time with offset to calculate RTC clock. There have no need to use two periodic timers to maintain an internal timer for RTC clock update and alarm check. Instead, we calculate the real RTC time by the

Re: [Qemu-devel] [PATCH 1/3]use int64 when compare two time

2012-01-06 Thread Andreas Färber
Am 06.01.2012 08:37, schrieb Zhang, Yang Z: use int64 when compare two time int32 only represent only 136 years when comparing two times based on second. It would be better to use int64. int32 and int64 are softfloat types and should not be used here. Do you have an actual use case that

Re: [PATCH 2/3] KVM: PPC: Add support for explicit HIOR setting

2012-01-06 Thread Scott Wood
On 01/05/2012 09:59 PM, Alexander Graf wrote: diff --git a/arch/powerpc/include/asm/kvm.h b/arch/powerpc/include/asm/kvm.h index 25964ee..7e9e24d 100644 --- a/arch/powerpc/include/asm/kvm.h +++ b/arch/powerpc/include/asm/kvm.h @@ -327,4 +327,6 @@ struct kvm_book3e_206_tlb_params {

Re: [PATCH] KVM: PPC: Add generic single register ioctls

2012-01-06 Thread Scott Wood
On 01/05/2012 10:15 PM, Alexander Graf wrote: Right now we transfer a static struct every time we want to get or set registers. Unfortunately, over time we realize that there are more of these than we thought of before and the extensibility and flexibility of transferring a full struct every

Re: [Autotest PATCH v2 0/4] Network performance regression

2012-01-06 Thread Lucas Meneghel Rodrigues
On 01/05/2012 01:05 AM, Amos Kong wrote: This patchset adds a new network perf testcase for Windows, refactors old netperf test, and support numa resource control. Process the raw results to a 'standard format' at the end of test, then we can analyze them with general module, compute average and

Re: [PATCH 08/50] KVM: PPC: Add support for explicit HIOR setting

2012-01-06 Thread Scott Wood
On 01/05/2012 08:35 PM, Alexander Graf wrote: Also we're already using KVM_REG for MMIO register identifiers. But I guess we can just reuse the namespace as long as we're careful to not overlap them later. #define KVM_REG_MASK0x001f #define KVM_REG_EXT_MASK0xffe0

[KVM-autotest]Cpuflags test

2012-01-06 Thread Jiří Župka
Pull-Request: https://github.com/autotest/autotest/pull/133 -- 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

[KVM-autotest][PATCH 1/2] Virt test:Add new instruction sets

2012-01-06 Thread Jiří Župka
fma4, sse4a, xop Signed-off-by: Jiří Župka jzu...@redhat.com --- client/virt/deps/test_cpu_flags/Makefile| 83 +++ client/virt/deps/test_cpu_flags/aes.c | 13 +++- client/virt/deps/test_cpu_flags/avx.c | 30 +

[KVM-autotest][PATCH 2/2] Kvm test: Split cpuflags test to variants.

2012-01-06 Thread Jiří Župka
Clean up cpuflags-test code. Repair some minor bugs which were been created by merging to upstream. Signed-off-by: Jiří Župka jzu...@redhat.com --- client/tests/kvm/tests/cpuflags.py | 71 +++ client/virt/deps/test_cpu_flags/cpuflags-test.c |2 -

Re: [PATCH] KVM: PPC: Add generic single register ioctls

2012-01-06 Thread Alexander Graf
On 06.01.2012, at 20:32, Scott Wood scottw...@freescale.com wrote: On 01/05/2012 10:15 PM, Alexander Graf wrote: Right now we transfer a static struct every time we want to get or set registers. Unfortunately, over time we realize that there are more of these than we thought of before and

Re: [PATCH 08/50] KVM: PPC: Add support for explicit HIOR setting

2012-01-06 Thread Alexander Graf
On 06.01.2012, at 22:12, Scott Wood wrote: On 01/05/2012 08:35 PM, Alexander Graf wrote: Also we're already using KVM_REG for MMIO register identifiers. But I guess we can just reuse the namespace as long as we're careful to not overlap them later. #define KVM_REG_MASK0x001f

[PATCH 0/4] GET/SET_ONE_REG and HIOR patches v3

2012-01-06 Thread Alexander Graf
This is a revised version of the ONE_REG interface. The main difference to v1 is that we now encode the register size in the constant, making it very unambiguous what size it is. That way we can just take a pointer from user space to write it to. Thanks a lot to Scott for reviewing the previous

[PATCH 1/4] KVM: PPC: Add generic single register ioctls

2012-01-06 Thread Alexander Graf
Right now we transfer a static struct every time we want to get or set registers. Unfortunately, over time we realize that there are more of these than we thought of before and the extensibility and flexibility of transferring a full struct every time is limited. So this is a new approach to the

[PATCH 2/4] KVM: PPC: Add support for explicit HIOR setting

2012-01-06 Thread Alexander Graf
Until now, we always set HIOR based on the PVR, but this is just wrong. Instead, we should be setting HIOR explicitly, so user space can decide what the initial HIOR value is - just like on real hardware. We keep the old PVR based way around for backwards compatibility, but once user space uses

[PATCH 3/4] KVM: PPC: Move kvm_vcpu_ioctl_[gs]et_one_reg down to platform-specific code

2012-01-06 Thread Alexander Graf
From: Paul Mackerras pau...@samba.org This moves the get/set_one_reg implementation down from powerpc.c into booke.c, book3s_pr.c and book3s_hv.c. This avoids #ifdefs in C code, but more importantly, it fixes a bug on Book3s HV where we were accessing beyond the end of the kvm_vcpu struct (via

[PATCH 4/4] KVM: PPC: Rename MMIO register identifiers

2012-01-06 Thread Alexander Graf
We need the KVM_REG namespace for generic register settings now, so let's rename the existing users to something different, enabling us to reuse the namespace for more visible interfaces. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/include/asm/kvm.h | 12 ++--

Re: Device pass-through

2012-01-06 Thread Gordon Messmer
On 01/06/2012 01:31 AM, André Weidemann wrote: On 06.01.2012 08:25, Gordon Messmer wrote: Well, I finally figured out that I have to enable the reading of roms from the device by writing 1 to the rom node in /sys/. Now the problem is that the rom is 64k, and only 32k are making it into the

[PATCH v7] kvm: make vcpu life cycle separated from kvm instance

2012-01-06 Thread Liu Ping Fan
From: Liu Ping Fan pingf...@linux.vnet.ibm.com Currently, vcpu will be destructed only after kvm instance is destroyed. This result to vcpu keep idle in kernel, but can not be freed when it is unplugged in guest. Change this to vcpu's destruction before kvm instance, so vcpu MUST and CAN be

Re: [PATCH] KVM: PPC: Add generic single register ioctls

2012-01-06 Thread Scott Wood
On 01/05/2012 10:15 PM, Alexander Graf wrote: Right now we transfer a static struct every time we want to get or set registers. Unfortunately, over time we realize that there are more of these than we thought of before and the extensibility and flexibility of transferring a full struct every

Re: [PATCH 08/50] KVM: PPC: Add support for explicit HIOR setting

2012-01-06 Thread Scott Wood
On 01/05/2012 08:35 PM, Alexander Graf wrote: Also we're already using KVM_REG for MMIO register identifiers. But I guess we can just reuse the namespace as long as we're careful to not overlap them later. #define KVM_REG_MASK0x001f #define KVM_REG_EXT_MASK0xffe0

[PATCH 0/4] GET/SET_ONE_REG and HIOR patches v3

2012-01-06 Thread Alexander Graf
This is a revised version of the ONE_REG interface. The main difference to v1 is that we now encode the register size in the constant, making it very unambiguous what size it is. That way we can just take a pointer from user space to write it to. Thanks a lot to Scott for reviewing the previous

[PATCH 1/4] KVM: PPC: Add generic single register ioctls

2012-01-06 Thread Alexander Graf
Right now we transfer a static struct every time we want to get or set registers. Unfortunately, over time we realize that there are more of these than we thought of before and the extensibility and flexibility of transferring a full struct every time is limited. So this is a new approach to the

[PATCH 4/4] KVM: PPC: Rename MMIO register identifiers

2012-01-06 Thread Alexander Graf
We need the KVM_REG namespace for generic register settings now, so let's rename the existing users to something different, enabling us to reuse the namespace for more visible interfaces. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/include/asm/kvm.h | 12 ++--