Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 03:55:59AM +0800, Xiao Guangrong wrote: kvm_zap_obsolete_pages uses lock-break technique to zap pages, it will flush tlb every time when it does lock-break We can reload mmu on all vcpus after updating the generation number so that the obsolete pages are not used on

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 01:57 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:55:58AM +0800, Xiao Guangrong wrote: It is only used to zap the obsolete page. Since the obsolete page will not be used, we need not spend time to find its unsync children out. Also, we delete the page from shadow page

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Peter Lieven
On 22.05.2013 23:55, Paolo Bonzini wrote: Il 22/05/2013 09:32, Vadim Rozenfeld ha scritto: @@ -1827,6 +1829,29 @@ static int set_msr_hyperv_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data) if (__copy_to_user((void __user *)addr, instructions, 4)) return 1;

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 02:13:06PM +0800, Xiao Guangrong wrote: On 05/23/2013 01:57 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:55:58AM +0800, Xiao Guangrong wrote: It is only used to zap the obsolete page. Since the obsolete page will not be used, we need not spend time to find its

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Peter Lieven
On 22.05.2013 23:23, Marcelo Tosatti wrote: On Wed, May 22, 2013 at 03:22:55AM -0400, Vadim Rozenfeld wrote: - Original Message - From: Marcelo Tosatti mtosa...@redhat.com To: Vadim Rozenfeld vroze...@redhat.com Cc: kvm@vger.kernel.org, g...@redhat.com, p...@dlh.net Sent: Wednesday,

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 02:12 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:55:59AM +0800, Xiao Guangrong wrote: kvm_zap_obsolete_pages uses lock-break technique to zap pages, it will flush tlb every time when it does lock-break We can reload mmu on all vcpus after updating the generation number

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 02:18 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:13:06PM +0800, Xiao Guangrong wrote: On 05/23/2013 01:57 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:55:58AM +0800, Xiao Guangrong wrote: It is only used to zap the obsolete page. Since the obsolete page will not be

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 02:26:57PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:12 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:55:59AM +0800, Xiao Guangrong wrote: kvm_zap_obsolete_pages uses lock-break technique to zap pages, it will flush tlb every time when it does lock-break

Re: kvm tools: why SDL window does not exit on poweroff?

2013-05-23 Thread Pekka Enberg
Hello, On 04/15/2013 10:11 AM, Lin Ming wrote: On Mon, Apr 15, 2013 at 2:48 PM, Pekka Enberg penb...@kernel.org wrote: Hello, Hi, On Mon, Apr 15, 2013 at 5:27 AM, Lin Ming min...@gmail.com wrote: Will BIOS support be added in kvmtool in the future? Yes, I expect that to happen

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-23 Thread Michael S. Tsirkin
On Fri, May 17, 2013 at 09:12:39AM +0930, Rusty Russell wrote: Joe Perches j...@perches.com writes: On Thu, 2013-05-16 at 13:04 +0930, Rusty Russell wrote: Asias He as...@redhat.com writes: On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote: [] Other users are using

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 02:31:47PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:18 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:13:06PM +0800, Xiao Guangrong wrote: On 05/23/2013 01:57 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:55:58AM +0800, Xiao Guangrong wrote: It is

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 03:24 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:26:57PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:12 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:55:59AM +0800, Xiao Guangrong wrote: kvm_zap_obsolete_pages uses lock-break technique to zap pages, it will flush

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 03:37 PM, Xiao Guangrong wrote: On 05/23/2013 03:24 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:26:57PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:12 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:55:59AM +0800, Xiao Guangrong wrote: kvm_zap_obsolete_pages uses

Re: [PATCH] kvm: add detail error message when fail to add ioeventfd

2013-05-23 Thread Stefan Hajnoczi
On Wed, May 22, 2013 at 09:48:21PM +0800, Amos Kong wrote: On Wed, May 22, 2013 at 11:32:27AM +0200, Stefan Hajnoczi wrote: On Wed, May 22, 2013 at 12:57:35PM +0800, Amos Kong wrote: I try to hotplug 28 * 8 multiple-function devices to guest with old host kernel, ioeventfds in host kernel

Re: kvm tools: why SDL window does not exit on poweroff?

2013-05-23 Thread Asias He
On Thu, May 23, 2013 at 10:30:00AM +0300, Pekka Enberg wrote: Hello, On 04/15/2013 10:11 AM, Lin Ming wrote: On Mon, Apr 15, 2013 at 2:48 PM, Pekka Enberg penb...@kernel.org wrote: Hello, Hi, On Mon, Apr 15, 2013 at 5:27 AM, Lin Ming min...@gmail.com wrote: Will BIOS support be

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 03:37 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:31:47PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:18 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:13:06PM +0800, Xiao Guangrong wrote: On 05/23/2013 01:57 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 03:38:49PM +0800, Xiao Guangrong wrote: On 05/23/2013 03:37 PM, Xiao Guangrong wrote: On 05/23/2013 03:24 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:26:57PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:12 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 03:50:16PM +0800, Xiao Guangrong wrote: On 05/23/2013 03:37 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:31:47PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:18 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:13:06PM +0800, Xiao Guangrong wrote: On

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 04:09 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:50:16PM +0800, Xiao Guangrong wrote: On 05/23/2013 03:37 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:31:47PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:18 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at

updated: kvm networking todo wiki

2013-05-23 Thread Michael S. Tsirkin
Hey guys, I've updated the kvm networking todo wiki with current projects. Will try to keep it up to date more often. Original announcement below. I've put up a wiki page with a kvm networking todo list, mainly to avoid effort duplication, but also in the hope to draw attention to what I

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Gleb Natapov
On Wed, May 22, 2013 at 06:23:30PM -0300, Marcelo Tosatti wrote: On Wed, May 22, 2013 at 03:22:55AM -0400, Vadim Rozenfeld wrote: - Original Message - From: Marcelo Tosatti mtosa...@redhat.com To: Vadim Rozenfeld vroze...@redhat.com Cc: kvm@vger.kernel.org, g...@redhat.com,

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 08:18:55AM +0200, Peter Lieven wrote: On 22.05.2013 23:23, Marcelo Tosatti wrote: On Wed, May 22, 2013 at 03:22:55AM -0400, Vadim Rozenfeld wrote: - Original Message - From: Marcelo Tosatti mtosa...@redhat.com To: Vadim Rozenfeld vroze...@redhat.com Cc:

Re: I/O port permission bit inheritance between threads

2013-05-23 Thread Gleb Natapov
On Tue, May 21, 2013 at 08:27:09AM -0700, Stephen Hemminger wrote: On Tue, 21 May 2013 13:01:18 +0300 Gleb Natapov g...@redhat.com wrote: On Tue, May 21, 2013 at 11:50:30AM +0200, Joerg Roedel wrote: Hey Stephen, On Mon, May 20, 2013 at 02:24:31PM -0700, Stephen Hemminger wrote:

[PATCH] uio/uio_pci_generic: fix error return code in probe()

2013-05-23 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/uio/uio_pci_generic.c | 3 ++- 1 file changed, 2 insertions(+),

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 08:17, Peter Lieven ha scritto: On 22.05.2013 23:55, Paolo Bonzini wrote: Il 22/05/2013 09:32, Vadim Rozenfeld ha scritto: @@ -1827,6 +1829,29 @@ static int set_msr_hyperv_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data) if (__copy_to_user((void __user *)addr,

Re: [PATCH] uio/uio_pci_generic: fix error return code in probe()

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 05:36:53PM +0800, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn

Re: [PATCH v5 0/6] mips/kvm: Fix ABI for compatibility with 64-bit guests.

2013-05-23 Thread Gleb Natapov
On Wed, May 22, 2013 at 11:43:50AM -0700, David Daney wrote: From: David Daney david.da...@cavium.com Please regenerate against master. arch/mips/include/asm/kvm.h does not exists any more. The initial patch set implementing MIPS KVM does not handle 64-bit guests or use of the FPU. This

[GIT PULL] KVM fixes for 3.10-rc2

2013-05-23 Thread Gleb Natapov
Linus, Please pull from git://git.kernel.org/pub/scm/virt/kvm/kvm.git master To receive the following KVM bug fixes Paolo Bonzini (1): KVM: take over co-maintainership from Marcelo, fix MAINTAINERS entry Sanjay Lal (2): KVM/MIPS32: Move include/asm/kvm.h = include/uapi/asm/kvm.h

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Peter Lieven
On 23.05.2013 11:54, Paolo Bonzini wrote: Il 23/05/2013 08:17, Peter Lieven ha scritto: On 22.05.2013 23:55, Paolo Bonzini wrote: Il 22/05/2013 09:32, Vadim Rozenfeld ha scritto: @@ -1827,6 +1829,29 @@ static int set_msr_hyperv_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data) if

Re: [PATCH v4 22/32] arm64: KVM: define 32bit specific registers

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:50PM +0100, Marc Zyngier wrote: Define the 32bit specific registers (SPSRs, cp15...). Most CPU registers are directly mapped to a 64bit register (r0-x0...). Only the SPSRs have separate registers. cp15 registers are also mapped into their 64bit counterpart in

Re: [PATCH v4 23/32] arm64: KVM: 32bit GP register access

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:51PM +0100, Marc Zyngier wrote: Allow access to the 32bit register file through the usual API. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier marc.zyng...@arm.com Reviewed-by: Catalin Marinas catalin.mari...@arm.com -- To

Re: [PATCH v4 24/32] arm64: KVM: 32bit conditional execution emulation

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:52PM +0100, Marc Zyngier wrote: As conditional instructions can trap on AArch32, add the thinest possible emulation layer to keep 32bit guests happy. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier marc.zyng...@arm.com

Re: [PATCH v4 25/32] arm64: KVM: 32bit handling of coprocessor traps

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:53PM +0100, Marc Zyngier wrote: Provide the necessary infrastructure to trap coprocessor accesses that occur when running 32bit guests. Also wire SMC and HVC trapped in 32bit mode while were at it. Reviewed-by: Christopher Covington c...@codeaurora.org

Re: [PATCH v4 26/32] arm64: KVM: CPU specific 32bit coprocessor access

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:54PM +0100, Marc Zyngier wrote: Enable handling of CPU specific 32bit coprocessor access. Not much here either. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier marc.zyng...@arm.com Reviewed-by: Catalin Marinas

Re: [PATCH v4 27/32] arm64: KVM: 32bit specific register world switch

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:55PM +0100, Marc Zyngier wrote: Allow registers specific to 32bit guests to be saved/restored during the world switch. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier marc.zyng...@arm.com Reviewed-by: Catalin Marinas

Re: [PATCH v4 28/32] arm64: KVM: 32bit guest fault injection

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:56PM +0100, Marc Zyngier wrote: Add fault injection capability for 32bit guests. Reviewed-by: Christopher Covington c...@codeaurora.org Signed-off-by: Marc Zyngier marc.zyng...@arm.com Reviewed-by: Catalin Marinas catalin.mari...@arm.com -- To unsubscribe from

Re: [PATCH v4 29/32] arm64: KVM: enable initialization of a 32bit vcpu

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:57PM +0100, Marc Zyngier wrote: Wire the init of a 32bit vcpu by allowing 32bit modes in pstate, and providing sensible defaults out of reset state. This feature is of course conditioned by the presence of 32bit capability on the physical CPU, and is checked by

Re: [PATCH v4 32/32] arm64: KVM: document kernel object mappings in HYP

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:14:00PM +0100, Marc Zyngier wrote: HYP mode has access to some of the kernel pages. Document the memory mapping and the offset between kernel VA and HYP VA. Signed-off-by: Marc Zyngier marc.zyng...@arm.com Reviewed-by: Catalin Marinas catalin.mari...@arm.com -- To

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 04:09 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:50:16PM +0800, Xiao Guangrong wrote: On 05/23/2013 03:37 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:31:47PM +0800, Xiao Guangrong wrote: On 05/23/2013 02:18 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at

Re: [PATCH v4 30/32] arm64: KVM: userspace API documentation

2013-05-23 Thread Catalin Marinas
On Tue, May 14, 2013 at 03:13:58PM +0100, Marc Zyngier wrote: Unsurprisingly, the arm64 userspace API is extremely similar to the 32bit one, the only significant difference being the ONE_REG register mapping. Signed-off-by: Marc Zyngier marc.zyng...@arm.com Reviewed-by: Catalin Marinas

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Vadim Rozenfeld
- Original Message - From: Marcelo Tosatti mtosa...@redhat.com To: Vadim Rozenfeld vroze...@redhat.com Cc: kvm@vger.kernel.org, g...@redhat.com, p...@dlh.net Sent: Thursday, May 23, 2013 7:23:30 AM Subject: Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC On Wed, May 22,

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Vadim Rozenfeld
- Original Message - From: Peter Lieven p...@dlhnet.de To: Paolo Bonzini pbonz...@redhat.com Cc: Vadim Rozenfeld vroze...@redhat.com, Marcelo Tosatti mtosa...@redhat.com, kvm@vger.kernel.org, g...@redhat.com, p...@dlh.net Sent: Thursday, May 23, 2013 4:17:57 PM Subject: Re: [RFC PATCH

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Vadim Rozenfeld
- Original Message - From: Peter Lieven p...@dlhnet.de To: Marcelo Tosatti mtosa...@redhat.com Cc: Vadim Rozenfeld vroze...@redhat.com, kvm@vger.kernel.org, g...@redhat.com, p...@dlh.net Sent: Thursday, May 23, 2013 4:18:55 PM Subject: Re: [RFC PATCH v2 2/2] add support for Hyper-V

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 07:13:58PM +0800, Xiao Guangrong wrote: On 05/23/2013 04:09 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:50:16PM +0800, Xiao Guangrong wrote: On 05/23/2013 03:37 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 02:31:47PM +0800, Xiao Guangrong wrote: On

KVM call agenda for 2013-05-28

2013-05-23 Thread Michael S. Tsirkin
Juan is not available now, and Anthony asked for agenda to be sent early. So here comes: Agenda for the meeting Tue, May 28: - Generating acpi tables - Switching the call to a bi-weekly schedule Please, send any topic that you are interested in covering. Thanks, MST -- MST -- To unsubscribe

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Peter Lieven
On 23.05.2013 14:33, Vadim Rozenfeld wrote: - Original Message - From: Peter Lieven p...@dlhnet.de To: Marcelo Tosatti mtosa...@redhat.com Cc: Vadim Rozenfeld vroze...@redhat.com, kvm@vger.kernel.org, g...@redhat.com, p...@dlh.net Sent: Thursday, May 23, 2013 4:18:55 PM Subject: Re:

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 02:44:14PM +0200, Peter Lieven wrote: On 23.05.2013 14:33, Vadim Rozenfeld wrote: - Original Message - From: Peter Lieven p...@dlhnet.de To: Marcelo Tosatti mtosa...@redhat.com Cc: Vadim Rozenfeld vroze...@redhat.com, kvm@vger.kernel.org, g...@redhat.com,

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Vadim Rozenfeld
- Original Message - From: Peter Lieven p...@dlhnet.de To: Vadim Rozenfeld vroze...@redhat.com Cc: Marcelo Tosatti mtosa...@redhat.com, kvm@vger.kernel.org, g...@redhat.com, p...@dlh.net Sent: Thursday, May 23, 2013 10:44:14 PM Subject: Re: [RFC PATCH v2 2/2] add support for Hyper-V

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 08:39 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 07:13:58PM +0800, Xiao Guangrong wrote: On 05/23/2013 04:09 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:50:16PM +0800, Xiao Guangrong wrote: On 05/23/2013 03:37 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 14:25, Vadim Rozenfeld ha scritto: - Original Message - From: Peter Lieven p...@dlhnet.de To: Paolo Bonzini pbonz...@redhat.com Cc: Vadim Rozenfeld vroze...@redhat.com, Marcelo Tosatti mtosa...@redhat.com, kvm@vger.kernel.org, g...@redhat.com, p...@dlh.net Sent:

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Peter Lieven
On 23.05.2013 15:18, Paolo Bonzini wrote: Il 23/05/2013 14:25, Vadim Rozenfeld ha scritto: - Original Message - From: Peter Lieven p...@dlhnet.de To: Paolo Bonzini pbonz...@redhat.com Cc: Vadim Rozenfeld vroze...@redhat.com, Marcelo Tosatti mtosa...@redhat.com, kvm@vger.kernel.org,

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 15:20, Peter Lieven ha scritto: On 23.05.2013 15:18, Paolo Bonzini wrote: Il 23/05/2013 14:25, Vadim Rozenfeld ha scritto: - Original Message - From: Peter Lieven p...@dlhnet.de To: Paolo Bonzini pbonz...@redhat.com Cc: Vadim Rozenfeld vroze...@redhat.com, Marcelo

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Peter Lieven
On 23.05.2013 15:23, Paolo Bonzini wrote: Il 23/05/2013 15:20, Peter Lieven ha scritto: On 23.05.2013 15:18, Paolo Bonzini wrote: Il 23/05/2013 14:25, Vadim Rozenfeld ha scritto: - Original Message - From: Peter Lieven p...@dlhnet.de To: Paolo Bonzini pbonz...@redhat.com Cc: Vadim

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Marcelo Tosatti
On Thu, May 23, 2013 at 12:13:16PM +0300, Gleb Natapov wrote: Reference TSC during Save and Restore and Migration To address migration scenarios to physical platforms that do not support iTSC, the TscSequence field is used. In the event that a guest partition is migrated from an

Re: [RFC PATCH v2 1/2] add support for Hyper-V reference time counter

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 15:30, Peter Lieven ha scritto: So I would prefer to remove kvm-arch.hv_ref_count altogether. But only if the migration support is guaranteed. Migration support wouldn't work yet anyway, you need to recompute the scale and sequence. But that could be done by KVM_SET_CLOCK.

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Marcelo Tosatti
On Thu, May 23, 2013 at 08:21:29AM -0400, Vadim Rozenfeld wrote: @@ -1848,6 +1847,11 @@ static int set_msr_hyperv_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data) HV_X64_MSR_TSC_REFERENCE_ADDRESS_SHIFT); if (kvm_is_error_hva(addr))

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Marcelo Tosatti
On Thu, May 23, 2013 at 12:12:29PM +0300, Gleb Natapov wrote: To address migration scenarios to physical platforms that do not support iTSC, the TscSequence field is used. In the event that a guest partition is migrated from an iTSC capable host to a non-iTSC capable host, the hypervisor

RE: problems with windows xp 32 bit guest - mouse and network - SOLVED

2013-05-23 Thread Lentes, Bernd
Bernd wrote: Bernd wrote: Hi, i'm new to kvm. I managed to migrate a vm from VMWare Server 1.09 to kvm. I'm running kvm 0.15.1-0.23.1 on a SLES 11 SP2 64bit host. The vm is booting properly. But i can't configure a tablet, what is recommended for having a smooth mouse pointer.

Re: [Qemu-devel] updated: kvm networking todo wiki

2013-05-23 Thread Lucas Meneghel Rodrigues
On 23/05/13 05:50 AM, Michael S. Tsirkin wrote: Hey guys, I've updated the kvm networking todo wiki with current projects. Will try to keep it up to date more often. Original announcement below. I've put up a wiki page with a kvm networking todo list, mainly to avoid effort duplication,

Re: [PATCH 0/5 v2] VFIO PPC64: add VFIO support on POWERPC64

2013-05-23 Thread Alex Williamson
On Tue, 2013-05-21 at 13:33 +1000, Alexey Kardashevskiy wrote: The series adds support for VFIO on POWERPC in user space (such as QEMU). The in-kernel real mode IOMMU support is added by another series posted separately. As the first and main aim of this series is the POWERNV platform

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 10:35:59AM -0300, Marcelo Tosatti wrote: On Thu, May 23, 2013 at 12:13:16PM +0300, Gleb Natapov wrote: Reference TSC during Save and Restore and Migration To address migration scenarios to physical platforms that do not support iTSC, the TscSequence field

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 10:53:38AM -0300, Marcelo Tosatti wrote: On Thu, May 23, 2013 at 12:12:29PM +0300, Gleb Natapov wrote: To address migration scenarios to physical platforms that do not support iTSC, the TscSequence field is used. In the event that a guest partition is migrated

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 09:03:50PM +0800, Xiao Guangrong wrote: On 05/23/2013 08:39 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 07:13:58PM +0800, Xiao Guangrong wrote: On 05/23/2013 04:09 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 03:50:16PM +0800, Xiao Guangrong wrote: On

Re: [GIT PULL] KVM fixes for 3.10-rc2

2013-05-23 Thread Linus Torvalds
On Thu, May 23, 2013 at 3:41 AM, Gleb Natapov g...@redhat.com wrote: MAINTAINERS |7 ++-- arch/mips/include/asm/kvm.h | 55 --- arch/mips/include/uapi/asm/kvm.h | 55 +++

Re: [RFC PATCH v2 2/2] add support for Hyper-V invariant TSC

2013-05-23 Thread Paolo Bonzini
Il 19/05/2013 09:06, Vadim Rozenfeld ha scritto: The following patch allows to activate a partition reference time enlightenment that is based on the host platform's support for an Invariant Time Stamp Counter (iTSC). NOTE: This code will survive migration due to lack of VM stop/resume

[PATCH v6 6/6] mips/kvm: Use ENOIOCTLCMD to indicate unimplemented ioctls.

2013-05-23 Thread David Daney
From: David Daney david.da...@cavium.com The Linux Way is to return -ENOIOCTLCMD to the vfs when an unimplemented ioctl is requested. Do this in kvm_mips instead of a random mixture of -ENOTSUPP and -EINVAL. Signed-off-by: David Daney david.da...@cavium.com Acked-by: Sanjay Lal

[PATCH v6 5/6] mips/kvm: Fix ABI by moving manipulation of CP0 registers to KVM_{G,S}ET_ONE_REG

2013-05-23 Thread David Daney
From: David Daney david.da...@cavium.com Because not all 256 CP0 registers are ever implemented, we need a different method of manipulating them. Use the KVM_SET_ONE_REG/KVM_GET_ONE_REG mechanism. Now unused code and definitions are removed. Signed-off-by: David Daney david.da...@cavium.com

[PATCH v6 0/6] mips/kvm: Fix ABI for compatibility with 64-bit guests.

2013-05-23 Thread David Daney
From: David Daney david.da...@cavium.com The initial patch set implementing MIPS KVM does not handle 64-bit guests or use of the FPU. This patch set corrects these ABI issues, and does some very minor clean up. Changes from v5: Adjust for kvm.h moving to uapi/asm. Code formatting

[PATCH v6 2/6] mips/kvm: Fix ABI for use of 64-bit registers.

2013-05-23 Thread David Daney
From: David Daney david.da...@cavium.com All registers are 64-bits wide, 32-bit guests use the least significant portion of the register storage fields. Signed-off-by: David Daney david.da...@cavium.com Acked-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/include/uapi/asm/kvm.h | 16

[PATCH v6 4/6] mips/kvm: Use ARRAY_SIZE() instead of hardcoded constants in kvm_arch_vcpu_ioctl_{s,g}et_regs

2013-05-23 Thread David Daney
From: David Daney david.da...@cavium.com Also we cannot set special zero register, so force it to zero. Signed-off-by: David Daney david.da...@cavium.com Acked-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/kvm/kvm_mips.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v6 3/6] mips/kvm: Fix name of gpr field in struct kvm_regs.

2013-05-23 Thread David Daney
From: David Daney david.da...@cavium.com Signed-off-by: David Daney david.da...@cavium.com Acked-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/include/uapi/asm/kvm.h | 3 ++- arch/mips/kvm/kvm_mips.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v6 1/6] mips/kvm: Fix ABI for use of FPU.

2013-05-23 Thread David Daney
From: David Daney david.da...@cavium.com Define a non-empty struct kvm_fpu. Signed-off-by: David Daney david.da...@cavium.com Acked-by: Sanjay Lal sanj...@kymasys.com --- arch/mips/include/uapi/asm/kvm.h | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff

Re: [PATCH v5 0/6] mips/kvm: Fix ABI for compatibility with 64-bit guests.

2013-05-23 Thread David Daney
On 05/23/2013 03:28 AM, Gleb Natapov wrote: On Wed, May 22, 2013 at 11:43:50AM -0700, David Daney wrote: From: David Daney david.da...@cavium.com Please regenerate against master. arch/mips/include/asm/kvm.h does not exists any more. New patch sent. I gather from this message, that you

Re: [PATCH v5 0/6] mips/kvm: Fix ABI for compatibility with 64-bit guests.

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 09:58:00AM -0700, David Daney wrote: On 05/23/2013 03:28 AM, Gleb Natapov wrote: On Wed, May 22, 2013 at 11:43:50AM -0700, David Daney wrote: From: David Daney david.da...@cavium.com Please regenerate against master. arch/mips/include/asm/kvm.h does not exists any

Re: [GIT PULL] KVM fixes for 3.10-rc2

2013-05-23 Thread Gleb Natapov
On Thu, May 23, 2013 at 09:20:22AM -0700, Linus Torvalds wrote: On Thu, May 23, 2013 at 3:41 AM, Gleb Natapov g...@redhat.com wrote: MAINTAINERS |7 ++-- arch/mips/include/asm/kvm.h | 55 ---

Re: [PATCH] qemu-kvm: fix unmatched RAM alloction/free

2013-05-23 Thread Paolo Bonzini
mmap is used in qemu_vmalloc function instead of qemu_memalign(commit 7dda5dc8), so it should change qemu_vfree to munmap to fix a unmatched issue. This issue appears when a PCI device is being assigned to KVM guest, failure to read PCI rom file will bring RAM free, then the incorrect

Re: [GIT PULL] KVM fixes for 3.10-rc2

2013-05-23 Thread Linus Torvalds
On Thu, May 23, 2013 at 10:13 AM, Gleb Natapov g...@redhat.com wrote: Ugh, yes -M and --summary were missing. I updated the script now. Thanks! Should I regenerate pull request? No, I pulled, Linus -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a

RE: [PATCH] qemu-kvm: fix unmatched RAM alloction/free

2013-05-23 Thread Hao, Xudong
-Original Message- From: Paolo Bonzini [mailto:pbonz...@redhat.com] Sent: Friday, May 24, 2013 1:13 AM To: Hao, Xudong Cc: kvm@vger.kernel.org; g...@redhat.com; qemu-de...@nongnu.org Subject: Re: [PATCH] qemu-kvm: fix unmatched RAM alloction/free mmap is used in qemu_vmalloc

[PATCH] KVM: PPC: Book3S: Add support for H_IPOLL and H_XIRR_X in XICS emulation

2013-05-23 Thread Paul Mackerras
This adds the remaining two hypercalls defined by PAPR for manipulating the XICS interrupt controller, H_IPOLL and H_XIRR_X. H_IPOLL returns information about the priority and pending interrupts for a virtual cpu, without changing any state. H_XIRR_X is like H_XIRR in that it reads and

Re: [SeaBIOS] KVM call agenda for 2013-05-28

2013-05-23 Thread li guang
在 2013-05-23四的 15:41 +0300,Michael S. Tsirkin写道: Juan is not available now, and Anthony asked for agenda to be sent early. So here comes: Agenda for the meeting Tue, May 28: - Generating acpi tables - Switching the call to a bi-weekly schedule Please, send any topic that you are

Re: [PATCH 0/5 v2] VFIO PPC64: add VFIO support on POWERPC64

2013-05-23 Thread Alexey Kardashevskiy
On 05/24/2013 12:56 AM, Alex Williamson wrote: On Tue, 2013-05-21 at 13:33 +1000, Alexey Kardashevskiy wrote: The series adds support for VFIO on POWERPC in user space (such as QEMU). The in-kernel real mode IOMMU support is added by another series posted separately. As the first and main

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Xiao Guangrong
On 05/23/2013 11:57 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 09:03:50PM +0800, Xiao Guangrong wrote: On 05/23/2013 08:39 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at 07:13:58PM +0800, Xiao Guangrong wrote: On 05/23/2013 04:09 PM, Gleb Natapov wrote: On Thu, May 23, 2013 at

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-23 Thread Xiao Guangrong
On 05/24/2013 01:39 PM, Xiao Guangrong wrote: if (kvm_mmu_prepare_zap_page(sp, list)) hlist_del(sp-hlist); Or, i missed your suggestion? My assumption is that we can leave obsolete shadow pages on hashtable till commit_zap time. Ah, i see. Yes, i agree with your idea. I think we

[PATCH] KVM: PPC: Book3S: Add support for H_IPOLL and H_XIRR_X in XICS emulation

2013-05-23 Thread Paul Mackerras
This adds the remaining two hypercalls defined by PAPR for manipulating the XICS interrupt controller, H_IPOLL and H_XIRR_X. H_IPOLL returns information about the priority and pending interrupts for a virtual cpu, without changing any state. H_XIRR_X is like H_XIRR in that it reads and