Biweekly KVM Test report, kernel 3efca44f... qemu a0bc8c31...

2012-03-22 Thread Ren, Yongjie
Hi All, This is KVM upstream test result against kvm.git 3efca44f37c21f2d50411b2b52617631fa1ba772 based on kernel 3.3.0, and qemu-kvm.git a0bc8c313ce7da8937e190b1e0cfd051a9ba243e. We found 1 new bug and 1 bug got fixed in the past two weeks. New issue(1): 1. one of the two assigned NICs

Re: [PATCH uq/master] kvm: Drop unused kvm_pit_in_kernel

2012-03-22 Thread Gleb Natapov
On Wed, Mar 21, 2012 at 02:49:09PM +0100, Jan Kiszka wrote: On 2012-03-21 14:41, Gleb Natapov wrote: On Wed, Mar 21, 2012 at 02:39:47PM +0100, Jan Kiszka wrote: On 2012-03-21 14:36, Avi Kivity wrote: On 03/21/2012 02:36 PM, Jan Kiszka wrote: This is now implied by kvm_irqchip_in_kernel.

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-22 Thread Gleb Natapov
On Wed, Mar 21, 2012 at 02:19:34PM -0500, Anthony Liguori wrote: On 03/21/2012 11:25 AM, Avi Kivity wrote: On 03/21/2012 06:18 PM, Corey Minyard wrote: Look at drivers/char/ipmi/ipmi_msghandler.c. It has code to send panic event over IMPI. The code is pretty complex. Of course if we a going

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-22 Thread Gleb Natapov
On Thu, Mar 22, 2012 at 09:05:12AM +0800, Wen Congyang wrote: At 03/22/2012 03:19 AM, Anthony Liguori Wrote: On 03/21/2012 11:25 AM, Avi Kivity wrote: On 03/21/2012 06:18 PM, Corey Minyard wrote: Look at drivers/char/ipmi/ipmi_msghandler.c. It has code to send panic event over IMPI. The

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-22 Thread Gleb Natapov
On Wed, Mar 21, 2012 at 02:04:34PM -0500, Anthony Liguori wrote: On 03/13/2012 05:47 AM, Avi Kivity wrote: On 03/13/2012 11:18 AM, Daniel P. Berrange wrote: On Mon, Mar 12, 2012 at 12:33:33PM +0200, Avi Kivity wrote: On 03/12/2012 11:04 AM, Wen Congyang wrote: Do you have any other comments

Re: performance trouble

2012-03-22 Thread Gleb Natapov
On Wed, Mar 21, 2012 at 06:31:02PM +0100, Peter Lieven wrote: On 21.03.2012 12:10, David Cure wrote: hello, Le Tue, Mar 20, 2012 at 02:38:22PM +0200, Gleb Natapov ecrivait : Try to addfeature policy='disable' name='hypervisor'/ to cpu definition in XML and check command line.

Re: performance trouble

2012-03-22 Thread Peter Lieven
On 22.03.2012 08:53, Gleb Natapov wrote: On Wed, Mar 21, 2012 at 06:31:02PM +0100, Peter Lieven wrote: On 21.03.2012 12:10, David Cure wrote: hello, Le Tue, Mar 20, 2012 at 02:38:22PM +0200, Gleb Natapov ecrivait : Try to addfeature policy='disable' name='hypervisor'/ to

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-22 Thread Wen Congyang
At 03/22/2012 03:28 PM, Gleb Natapov Wrote: On Wed, Mar 21, 2012 at 02:19:34PM -0500, Anthony Liguori wrote: On 03/21/2012 11:25 AM, Avi Kivity wrote: On 03/21/2012 06:18 PM, Corey Minyard wrote: Look at drivers/char/ipmi/ipmi_msghandler.c. It has code to send panic event over IMPI. The code

Re: [PULL] vhost-net/virtio: fixes for 3.4

2012-03-22 Thread Michael S. Tsirkin
On Tue, Mar 20, 2012 at 04:50:41PM +0200, Michael S. Tsirkin wrote: The following changes since commit 5ffca28a4ac7abb8a254fafe6bd03b2f83667df7: Merge git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs (2012-02-27 07:59:33 -0800) are available in the git repository at:

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-22 Thread Wen Congyang
At 03/22/2012 03:12 AM, Anthony Liguori Wrote: On 03/15/2012 06:46 AM, Avi Kivity wrote: On 03/15/2012 01:25 PM, Jan Kiszka wrote: There was such vm exit (KVM_EXIT_HYPERCALL), but it was deemed to be a bad idea. BTW, this would help a lot in emulating hypercalls of other hypervisors (or of

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-22 Thread Wen Congyang
At 03/22/2012 03:31 PM, Gleb Natapov Wrote: On Thu, Mar 22, 2012 at 09:05:12AM +0800, Wen Congyang wrote: At 03/22/2012 03:19 AM, Anthony Liguori Wrote: On 03/21/2012 11:25 AM, Avi Kivity wrote: On 03/21/2012 06:18 PM, Corey Minyard wrote: Look at drivers/char/ipmi/ipmi_msghandler.c. It has

Re: performance trouble

2012-03-22 Thread David Cure
Le Thu, Mar 22, 2012 at 09:53:45AM +0200, Gleb Natapov ecrivait : All true. I asked to try -hypervisor only to verify where we loose performance. Since you get good result with it frequent access to PM timer is probably the reason. I do not recommend using -hypervisor for production!

Re: performance trouble

2012-03-22 Thread David Cure
hello, Le Thu, Mar 22, 2012 at 08:57:08AM +0100, Peter Lieven ecrivait : @avi, gleb: another option would be to revisit the old in-kernel pm-timer implementation and check if its feasible to use this as an alternative. it would also help non hyper-v aware systems (i

Re: performance trouble

2012-03-22 Thread David Cure
Le Wed, Mar 21, 2012 at 06:31:02PM +0100, Peter Lieven ecrivait : please keep in mind, that setting -hypervisor, disabling hpet and only one vcpu makes windows use tsc as clocksource. you have to make sure, that your vm is not switching between physical sockets on your system and that you

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-03-22 Thread Gleb Natapov
On Thu, Mar 22, 2012 at 03:44:45PM +0800, Wen Congyang wrote: At 03/22/2012 03:31 PM, Gleb Natapov Wrote: On Thu, Mar 22, 2012 at 09:05:12AM +0800, Wen Congyang wrote: At 03/22/2012 03:19 AM, Anthony Liguori Wrote: On 03/21/2012 11:25 AM, Avi Kivity wrote: On 03/21/2012 06:18 PM, Corey

Re: performance trouble

2012-03-22 Thread Peter Lieven
On 22.03.2012 09:31, David Cure wrote: Le Wed, Mar 21, 2012 at 06:31:02PM +0100, Peter Lieven ecrivait : please keep in mind, that setting -hypervisor, disabling hpet and only one vcpu makes windows use tsc as clocksource. you have to make sure, that your vm is not switching between physical

Re: performance trouble

2012-03-22 Thread Vadim Rozenfeld
On Thursday, March 22, 2012 09:53:45 AM Gleb Natapov wrote: On Wed, Mar 21, 2012 at 06:31:02PM +0100, Peter Lieven wrote: On 21.03.2012 12:10, David Cure wrote: hello, Le Tue, Mar 20, 2012 at 02:38:22PM +0200, Gleb Natapov ecrivait : Try to addfeature policy='disable'

[v2.6.32.y 1/2] KVM: x86: extend struct x86_emulate_ops with get_cpuid

2012-03-22 Thread Stefan Bader
From 0aa5ac57d2dcdca1e1c4ec37d6164063766831ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:03 +0100 Subject: [PATCH 1/2] KVM: x86: extend struct x86_emulate_ops with get_cpuid In order to be able to proceed checks

CVE-2012-0045 for 3.2.y, 3.0.y and 2.6.32.y (again)

2012-03-22 Thread Stefan Bader
Resubmitting with more of the proper maintainers subscribed (note that Marcelo is one of them)... --- The following patches fix a KVM guest hang/crash on 32bit guests which is present sicne 2.6.32. It was fixed upstream (v3.3) and for 3.2.y the upstream versions do apply. Moving back in history

[v3.2.y 1/2] KVM: x86: extend struct x86_emulate_ops with get_cpuid

2012-03-22 Thread Stefan Bader
From 993480c661c6a850fcb79ac06137208950415170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:03 +0100 Subject: [PATCH 09/10] KVM: x86: extend struct x86_emulate_ops with get_cpuid In order to be able to proceed checks

[v3.2.y 2/2] KVM: x86: fix missing checks in syscall emulation

2012-03-22 Thread Stefan Bader
From 0d9961104ca537ac1035cd84c6f7e321202b1381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:04 +0100 Subject: [PATCH 10/10] KVM: x86: fix missing checks in syscall emulation On hosts without this patch, 32bit guests

[v3.0.y 2/2] KVM: x86: fix missing checks in syscall emulation

2012-03-22 Thread Stefan Bader
From 30870b1a5d29c07b75843c0b667fa29a63d818a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:04 +0100 Subject: [PATCH 8/8] KVM: x86: fix missing checks in syscall emulation On hosts without this patch, 32bit guests

[v3.0.y 1/2] KVM: x86: extend struct x86_emulate_ops with get_cpuid

2012-03-22 Thread Stefan Bader
From eaee58e1433e1b16e686cfcdcbc207d4310a239f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:03 +0100 Subject: [PATCH 7/8] KVM: x86: extend struct x86_emulate_ops with get_cpuid In order to be able to proceed checks

[v2.6.32.y 2/2] KVM: x86: fix missing checks in syscall emulation

2012-03-22 Thread Stefan Bader
From 69712f0c7cbb6363f7b2170fba93945a72d77712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:04 +0100 Subject: [PATCH 2/2] KVM: x86: fix missing checks in syscall emulation On hosts without this patch, 32bit guests

Re: performance trouble

2012-03-22 Thread Peter Lieven
On 22.03.2012 09:33, David Cure wrote: Le Thu, Mar 22, 2012 at 09:53:45AM +0200, Gleb Natapov ecrivait : All true. I asked to try -hypervisor only to verify where we loose performance. Since you get good result with it frequent access to PM timer is probably the reason. I do not recommend using

Re: performance trouble

2012-03-22 Thread Peter Lieven
On 22.03.2012 09:48, Vadim Rozenfeld wrote: On Thursday, March 22, 2012 09:53:45 AM Gleb Natapov wrote: On Wed, Mar 21, 2012 at 06:31:02PM +0100, Peter Lieven wrote: On 21.03.2012 12:10, David Cure wrote: hello, Le Tue, Mar 20, 2012 at 02:38:22PM +0200, Gleb Natapov ecrivait

Re: [PULL] vhost-net/virtio: fixes for 3.4

2012-03-22 Thread David Miller
From: Michael S. Tsirkin m...@redhat.com Date: Thu, 22 Mar 2012 10:27:19 +0200 Dave, just checking - not sure I made it clear that this pull request is intended to go in through your tree. If you see any issues pls let me know so I can fix them. I missed it, sorry. For some reason patchwork

Re: performance trouble

2012-03-22 Thread Vadim Rozenfeld
On Thursday, March 22, 2012 10:52:42 AM Peter Lieven wrote: On 22.03.2012 09:48, Vadim Rozenfeld wrote: On Thursday, March 22, 2012 09:53:45 AM Gleb Natapov wrote: On Wed, Mar 21, 2012 at 06:31:02PM +0100, Peter Lieven wrote: On 21.03.2012 12:10, David Cure wrote: hello, Le

Re: x86: call restore_sched_clock_state after %gs is initialized

2012-03-22 Thread Avi Kivity
On 03/21/2012 04:11 AM, Marcelo Tosatti wrote: restore_sched_clock_state methods use percpu data, therefore they must run after %gs is initialized, but before mtrr_bp_restore (due to lockstat using sched_clock). Move it to the correct place. Applied, thanks. -- error compiling

Re: vhost question

2012-03-22 Thread Stefan Hajnoczi
On Thu, Mar 22, 2012 at 1:48 AM, Steve Glass stevie.gl...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just some further information concerning my earlier question concerning vhost and virtio. I'm using virtio to implement an emulated mac80211 device in the guest. A

RE: [Qemu-devel] [PATCH v4 5/7] RTC:Add RTC update-ended interrupt support

2012-03-22 Thread Stefano Stabellini
On Thu, 22 Mar 2012, Zhang, Yang Z wrote: -Original Message- From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] Sent: Wednesday, March 21, 2012 2:04 AM On Mon, 19 Mar 2012, Zhang, Yang Z wrote: Use a timer to emulate update cycle. When update cycle ended and

Re: [Qemu-devel] [PATCH v4 5/7] RTC:Add RTC update-ended interrupt support

2012-03-22 Thread Stefano Stabellini
On Wed, 21 Mar 2012, Paolo Bonzini wrote: Il 21/03/2012 17:54, Stefano Stabellini ha scritto: No, you need to set UF in case the code observes it without actually enabling interrupt delivery on the ISA bus. Well, if it is just about updating UF, can we do it only when the user

Re: [Qemu-devel] [PATCH v4 5/7] RTC:Add RTC update-ended interrupt support

2012-03-22 Thread Paolo Bonzini
Il 22/03/2012 11:29, Stefano Stabellini ha scritto: The purpose of using two timer is trying to keep the UF, AF and UIP synchronous. User can poll UIP to check UF and AF bit. If we use timer for UF/AF bit track and check UIP by another way, since the timer will be fired with delay, then the

Re: [PATCH RFC V6 2/11] x86/ticketlock: don't inline _spin_unlock when using paravirt spinlocks

2012-03-22 Thread Raghavendra K T
On 03/21/2012 10:43 PM, Linus Torvalds wrote: On Wed, Mar 21, 2012 at 3:21 AM, Raghavendra K T raghavendra...@linux.vnet.ibm.com wrote: From: Jeremy Fitzhardingejeremy.fitzhardi...@citrix.com The code size expands somewhat, and its probably better to just call a function rather than inline

[PATCH 0/2] Emulate MMX MOVQ

2012-03-22 Thread Avi Kivity
This patchset emulates two instructions: MOVQ mm, mm/m64 MOVQ mm/m64, mm Needed by https://bugzilla.kernel.org/show_bug.cgi?id=42779. Changes from v1: - fix spurious traps propgated into the guest - delay loading mmx register state until after we're sure it won't trap Avi Kivity (2):

[PATCH 1/2] KVM: x86 emulator: MMX support

2012-03-22 Thread Avi Kivity
General support for the MMX instruction set. Special care is taken to trap pending x87 exceptions so that they are properly reflected to the guest. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h |4 +- arch/x86/kvm/emulate.c | 103

[PATCH 2/2] KVM: x86 emulator: implement MMX MOVQ (opcodes 0f 6f, 0f 7f)

2012-03-22 Thread Avi Kivity
Needed by some framebuffer drivers. See https://bugzilla.kernel.org/show_bug.cgi?id=42779 Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/emulate.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index

[PATCH kvm-unit-tests] emulator: test mmx movq

2012-03-22 Thread Avi Kivity
Signed-off-by: Avi Kivity a...@redhat.com --- x86/emulator.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/x86/emulator.c b/x86/emulator.c index b584122..6590618 100644 --- a/x86/emulator.c +++ b/x86/emulator.c @@ -606,6 +606,20 @@ static void

Re: [PATCH uq/master] kvm: Drop unused kvm_pit_in_kernel

2012-03-22 Thread Jan Kiszka
On 2012-03-22 08:18, Gleb Natapov wrote: On Wed, Mar 21, 2012 at 02:49:09PM +0100, Jan Kiszka wrote: On 2012-03-21 14:41, Gleb Natapov wrote: On Wed, Mar 21, 2012 at 02:39:47PM +0100, Jan Kiszka wrote: On 2012-03-21 14:36, Avi Kivity wrote: On 03/21/2012 02:36 PM, Jan Kiszka wrote: This is

Re: [PATCH uq/master] kvm: Drop unused kvm_pit_in_kernel

2012-03-22 Thread Gleb Natapov
On Thu, Mar 22, 2012 at 01:41:18PM +0100, Jan Kiszka wrote: On 2012-03-22 08:18, Gleb Natapov wrote: On Wed, Mar 21, 2012 at 02:49:09PM +0100, Jan Kiszka wrote: On 2012-03-21 14:41, Gleb Natapov wrote: On Wed, Mar 21, 2012 at 02:39:47PM +0100, Jan Kiszka wrote: On 2012-03-21 14:36, Avi

Re: [PATCH uq/master] kvm: Drop unused kvm_pit_in_kernel

2012-03-22 Thread Jan Kiszka
On 2012-03-22 13:52, Gleb Natapov wrote: On Thu, Mar 22, 2012 at 01:41:18PM +0100, Jan Kiszka wrote: On 2012-03-22 08:18, Gleb Natapov wrote: On Wed, Mar 21, 2012 at 02:49:09PM +0100, Jan Kiszka wrote: On 2012-03-21 14:41, Gleb Natapov wrote: On Wed, Mar 21, 2012 at 02:39:47PM +0100, Jan

Re: CVE-2012-0045 for 3.2.y, 3.0.y and 2.6.32.y (again)

2012-03-22 Thread Greg KH
On Thu, Mar 22, 2012 at 09:50:40AM +0100, Stefan Bader wrote: Resubmitting with more of the proper maintainers subscribed (note that Marcelo is one of them)... Again, for the others on the cc:, I can't take these in the stable tree(s) until I get an ack from the maintainers of the code.

[PATCH] KVM: x86: emulate movdqa

2012-03-22 Thread Stefan Hajnoczi
An Ubuntu 9.10 Karmic Koala guest is unable to boot or install due to missing movdqa emulation: kvm_exit: reason EXCEPTION_NMI rip 0x7fef3e025a7b info 7fef3e799000 8b0e kvm_page_fault: address 7fef3e799000 error_code f kvm_emulate_insn: 0:7fef3e025a7b: 66 0f 7f 07 (prot64) movdqa

Re: [PULL] vhost-net/virtio: fixes for 3.4

2012-03-22 Thread David Miller
From: Michael S. Tsirkin m...@redhat.com Date: Thu, 22 Mar 2012 10:27:19 +0200 On Tue, Mar 20, 2012 at 04:50:41PM +0200, Michael S. Tsirkin wrote: The following changes since commit 5ffca28a4ac7abb8a254fafe6bd03b2f83667df7: Merge git://git.kernel.org/pub/scm/linux/kernel/git/aia21/ntfs

[Bug 42980] New: BUG in gfn_to_pfn_prot

2012-03-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42980 Summary: BUG in gfn_to_pfn_prot Product: Virtualization Version: unspecified Kernel Version: 3.2.2-gentoo Platform: All OS/Version: Linux Tree: Mainline Status: NEW

Re: [PULL] vhost-net/virtio: fixes for 3.4

2012-03-22 Thread Michael S. Tsirkin
On Thu, Mar 22, 2012 at 04:56:49PM -0400, David Miller wrote: From: Michael S. Tsirkin m...@redhat.com Date: Thu, 22 Mar 2012 10:27:19 +0200 On Tue, Mar 20, 2012 at 04:50:41PM +0200, Michael S. Tsirkin wrote: The following changes since commit 5ffca28a4ac7abb8a254fafe6bd03b2f83667df7:

Re: [PULL] vhost-net/virtio: fixes for 3.4

2012-03-22 Thread David Miller
From: Michael S. Tsirkin m...@redhat.com Date: Fri, 23 Mar 2012 00:12:28 +0200 OK, sorry about that. Can't fix right now as I'm not at the box that has the key but this works for me with an old git: Please fix it up so I can pull properly. -- To unsubscribe from this list: send the line

[RFC PATCH 0/1] NUMA aware scheduling per vhost thread patch

2012-03-22 Thread Shirley Ma
Sorry for being late to submit this patch. I have spent lots of time trying to find the best approach. This effort is still going on... This patch is built against net-next tree. This is an experimental RFC patch. The purpose of this patch is to address KVM networking scalability and NUMA

[RFC PATCH 1/1] NUMA aware scheduling per cpu vhost thread

2012-03-22 Thread Shirley Ma
Signed-off-by: Shirley Ma x...@us.ibm.com Signed-off-by: Krishna Kumar krkum...@in.ibm.com Tested-by: Tom Lendacky t...@us.ibm.com --- drivers/vhost/net.c | 26 ++- drivers/vhost/vhost.c| 300 -- drivers/vhost/vhost.h

Re: [GIT PULL] KVM updates for the 3.4 merge window

2012-03-22 Thread Benjamin Herrenschmidt
On Tue, 2012-03-20 at 16:08 +0200, Avi Kivity wrote: Linus, please pull from ra.kernel.org:/pub/scm/virt/kvm/kvm.git kvm-updates/3.4 (ssh URL as git.kernel.org is down at the moment) to receive the KVM updates for the 3.4 merge window. Changes include timekeeping improvements, support

Re: [v2.6.32.y 2/2] KVM: x86: fix missing checks in syscall emulation

2012-03-22 Thread Marcelo Tosatti
On Thu, Mar 22, 2012 at 09:50:42AM +0100, Stefan Bader wrote: From 69712f0c7cbb6363f7b2170fba93945a72d77712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=A4rwolf?= stephan.baerw...@tu-ilmenau.de Date: Thu, 12 Jan 2012 16:43:04 +0100 Subject: [PATCH 2/2] KVM: x86: fix missing checks

Re: [RFC PATCH 1/1] NUMA aware scheduling per cpu vhost thread

2012-03-22 Thread Shirley Ma
Resubmit it with the right format. Signed-off-by: Shirley Ma x...@us.ibm.com Signed-off-by: Krishna Kumar krkum...@in.ibm.com Tested-by: Tom Lendacky t...@us.ibm.com --- drivers/vhost/net.c | 26 ++- drivers/vhost/vhost.c| 300

Re: [PATCH v7 08/12] ARM: KVM: World-switch implementation

2012-03-22 Thread Rusty Russell
On Mon, 12 Mar 2012 02:52:41 -0400, Christoffer Dall c.d...@virtualopensystems.com wrote: @@ -236,6 +237,24 @@ int kvm_cpu_has_pending_timer(struct kvm_vcpu *vcpu) int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) { + unsigned long cpsr; + unsigned long sctlr; + + + /* Init

[PATCH] ARM: KVM: Remove l2ctlr write.

2012-03-22 Thread Rusty Russell
Current guests don't do this, and it's not clear what we should do if they try to turn on ECC or set various RAM latencies. When someone does this, we'll have a better idea of what we should do about it. Signed-off-by: Rusty Russell rusty.russ...@linaro.org diff --git a/arch/arm/kvm/emulate.c

[PATCH] ARM: KVM: Check the cpuid we're being asked to emulate.

2012-03-22 Thread Rusty Russell
As our emulation gets more sophisticated, we need to know what CPU model we're dealing with. Particularly for some of the nastier workarounds. Let's start with Cortex A-15. We can then test the MIDR elsewhere in the code, knowing that it's one of a finite set of allowed values. Signed-off-by:

[PATCH] ARM: KVM: Emulate ID_DFR0 to say we don't support anything.

2012-03-22 Thread Rusty Russell
The guest should be checking this before trying to use performance monitors, for example. Signed-off-by: Rusty Russell rusty.russ...@linaro.org diff --git a/arch/arm/kvm/emulate.c b/arch/arm/kvm/emulate.c index e356d1c..c07eb2b 100644 --- a/arch/arm/kvm/emulate.c +++ b/arch/arm/kvm/emulate.c @@

Re: CVE-2012-0045 for 3.2.y, 3.0.y and 2.6.32.y (again)

2012-03-22 Thread Marcelo Tosatti
v3.0.y and v3.2.y patches are OK, i'll ACK individually once they're autotested. On Thu, Mar 22, 2012 at 09:50:40AM +0100, Stefan Bader wrote: Resubmitting with more of the proper maintainers subscribed (note that Marcelo is one of them)... --- The following patches fix a KVM guest

RE: [PATCH v2] intel-iommu: Add device info into list before doing context mapping

2012-03-22 Thread Hao, Xudong
Hi, David Any other comments for this patch? Or can you check-in it in your iommu tree? Thanks, -Xudong -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Hao, Xudong Sent: Thursday, December 22, 2011 5:18 PM To: Chris Wright Cc:

Re: [GIT PULL] KVM updates for the 3.4 merge window

2012-03-22 Thread Linus Torvalds
On Thu, Mar 22, 2012 at 5:10 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: That means that everything gets constantly rebased, and it makes life very much harder for us working with this. Ben, thanks for pointing this out. I will not be pulling this tree at all. It's pure and

RE: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-22 Thread Liu, Jinsong
Eduardo Habkost wrote: On Tue, Mar 20, 2012 at 12:53:57PM +, Liu, Jinsong wrote: Rik van Riel wrote: On 03/09/2012 01:27 PM, Liu, Jinsong wrote: As for 'tsc deadline' feature exposing, my patch (as attached) just obey qemu general cpuid exposing method, and also satisfied your target I

[PATCH v5] KVM: Use minimum and maximum address mapped by TLB1

2012-03-22 Thread Bharat Bhushan
Keep track of minimum and maximum address mapped by tlb1. This helps in TLBMISS handling in KVM to quick check whether the address lies in mapped range. If address does not lies in this range then no need to look in each tlb1 entry of tlb1 array. Signed-off-by: Bharat Bhushan

[PATCH v5] KVM: Use minimum and maximum address mapped by TLB1

2012-03-22 Thread Bharat Bhushan
Keep track of minimum and maximum address mapped by tlb1. This helps in TLBMISS handling in KVM to quick check whether the address lies in mapped range. If address does not lies in this range then no need to look in each tlb1 entry of tlb1 array. Signed-off-by: Bharat Bhushan