Re: [PATCH 5/9] mm: compaction: Acquire the zone-lru_lock as late as possible

2012-09-25 Thread Minchan Kim
Hi Mel, I have a question below. On Fri, Sep 21, 2012 at 11:46:19AM +0100, Mel Gorman wrote: Compactions migrate scanner acquires the zone-lru_lock when scanning a range of pages looking for LRU pages to acquire. It does this even if there are no LRU pages in the range. If multiple processes

Re: [PATCH 4/9] mm: compaction: Abort compaction loop if lock is contended or run too long

2012-09-25 Thread Minchan Kim
On Fri, Sep 21, 2012 at 11:46:18AM +0100, Mel Gorman wrote: From: Shaohua Li s...@fusionio.com Changelog since V2 o Fix BUG_ON triggered due to pages left on cc.migratepages o Make compact_zone_order() require non-NULL arg `contended' Changelog since V1 o only abort the compaction if

Re: [PATCH 6/9] mm: compaction: Acquire the zone-lock as late as possible

2012-09-25 Thread Minchan Kim
On Fri, Sep 21, 2012 at 11:46:20AM +0100, Mel Gorman wrote: Compactions free scanner acquires the zone-lock when checking for PageBuddy pages and isolating them. It does this even if there are no PageBuddy pages in the range. This patch defers acquiring the zone lock for as long as possible.

Re: [PATCH 6/9] mm: compaction: Acquire the zone-lock as late as possible

2012-09-25 Thread Minchan Kim
On Mon, Sep 24, 2012 at 09:52:38AM +0100, Mel Gorman wrote: On Fri, Sep 21, 2012 at 02:35:57PM -0700, Andrew Morton wrote: On Fri, 21 Sep 2012 11:46:20 +0100 Mel Gorman mgor...@suse.de wrote: Compactions free scanner acquires the zone-lock when checking for PageBuddy pages and

Re: [PATCH 7/9] Revert mm: have order 0 compaction start off where it left

2012-09-25 Thread Minchan Kim
On Fri, Sep 21, 2012 at 11:46:21AM +0100, Mel Gorman wrote: This reverts commit 7db8889a (mm: have order 0 compaction start off where it left) and commit de74f1cc (mm: have order 0 compaction start near a pageblock with free pages). These patches were a good idea and tests confirmed that

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-25 Thread Raghavendra K T
On 09/24/2012 09:11 PM, Avi Kivity wrote: On 09/21/2012 08:24 PM, Raghavendra K T wrote: On 09/21/2012 06:32 PM, Rik van Riel wrote: On 09/21/2012 08:00 AM, Raghavendra K T wrote: From: Raghavendra K Traghavendra...@linux.vnet.ibm.com When total number of VCPUs of system is less than or

Re: [PATCH] KVM: PPC: set IN_GUEST_MODE before checking requests

2012-09-25 Thread Alexander Graf
On 23.08.2012, at 03:03, Scott Wood wrote: Avoid a race as described in the code comment. Also remove a related smp_wmb() from booke's kvmppc_prepare_to_enter(). I can't see any reason for it, and the book3s_pr version doesn't have it. Signed-off-by: Scott Wood scottw...@freescale.com

Re: [PATCH 1/2] KVM: PPC: e500: fix allocation size error on g2h_tlb1_map

2012-09-25 Thread Alexander Graf
On 23.08.2012, at 03:04, Scott Wood wrote: We were only allocating half the bytes we need, which was made more obvious by a recent fix to the memset in clear_tlb1_bitmap(). Signed-off-by: Scott Wood scottw...@freescale.com Thanks, applied to kvm-ppc-next. Avi, Marcelo, this one should

Re: [PATCH 2/2] KVM: PPC: e500: MMU API: fix leak of shared_tlb_pages

2012-09-25 Thread Alexander Graf
On 23.08.2012, at 03:04, Scott Wood wrote: This was found by kmemleak. Signed-off-by: Scott Wood scottw...@freescale.com Thanks, applied to kvm-ppc-next. Alex --- arch/powerpc/kvm/e500_tlb.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kvm/e500_tlb.c

Re: [PATCH 5/9] mm: compaction: Acquire the zone-lru_lock as late as possible

2012-09-25 Thread Mel Gorman
On Tue, Sep 25, 2012 at 04:05:17PM +0900, Minchan Kim wrote: Hi Mel, I have a question below. On Fri, Sep 21, 2012 at 11:46:19AM +0100, Mel Gorman wrote: Compactions migrate scanner acquires the zone-lru_lock when scanning a range of pages looking for LRU pages to acquire. It does

Re: [PATCH 5/9] mm: compaction: Acquire the zone-lru_lock as late as possible

2012-09-25 Thread Minchan Kim
On Tue, Sep 25, 2012 at 08:51:05AM +0100, Mel Gorman wrote: On Tue, Sep 25, 2012 at 04:05:17PM +0900, Minchan Kim wrote: Hi Mel, I have a question below. On Fri, Sep 21, 2012 at 11:46:19AM +0100, Mel Gorman wrote: Compactions migrate scanner acquires the zone-lru_lock when scanning

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-25 Thread Raghavendra K T
On 09/24/2012 09:36 PM, Avi Kivity wrote: On 09/24/2012 05:41 PM, Avi Kivity wrote: case 2) rq1 : vcpu1-wait(lockA) (spinning) rq2 : vcpu3 (running) , vcpu2-holding(lockA) [scheduled out] I agree that checking rq1 length is not proper in this case, and as you rightly pointed out, we are in

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-25 Thread Avi Kivity
On 09/25/2012 09:36 AM, Raghavendra K T wrote: On 09/24/2012 09:11 PM, Avi Kivity wrote: On 09/21/2012 08:24 PM, Raghavendra K T wrote: On 09/21/2012 06:32 PM, Rik van Riel wrote: On 09/21/2012 08:00 AM, Raghavendra K T wrote: From: Raghavendra K Traghavendra...@linux.vnet.ibm.com When

Re: [PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU

2012-09-25 Thread Avi Kivity
On 09/25/2012 04:32 AM, Hao, Xudong wrote: btw, it is clear that long term the fpu will always be eagerly loaded, as hosts and guests (and hardware) are updated. At that time it will make sense to remove the lazy fpu code entirely. But maybe that time is here already, since exits are

[PATCH] fix compilation error of perf/core

2012-09-25 Thread Dong Hao
From: Dong Hao haod...@linux.vnet.ibm.com The newest branch of perf/core should have compilation error! Error log includes: builtin-test.c: In function ‘perf_evsel__test_field’: builtin-test.c:1216:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable] builtin-test.c: In

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-25 Thread Avi Kivity
On 09/25/2012 10:09 AM, Raghavendra K T wrote: On 09/24/2012 09:36 PM, Avi Kivity wrote: On 09/24/2012 05:41 PM, Avi Kivity wrote: case 2) rq1 : vcpu1-wait(lockA) (spinning) rq2 : vcpu3 (running) , vcpu2-holding(lockA) [scheduled out] I agree that checking rq1 length is not proper in

Re: [PATCH] fix compilation error of perf/core

2012-09-25 Thread Namhyung Kim
Hi Dong, On Tue, 25 Sep 2012 16:21:25 +0800, Dong Hao wrote: From: Dong Hao haod...@linux.vnet.ibm.com The newest branch of perf/core should have compilation error! Error log includes: builtin-test.c: In function ‘perf_evsel__test_field’: builtin-test.c:1216:6: error: variable ‘ret’ set

Re: [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated

2012-09-25 Thread Mel Gorman
On Mon, Sep 24, 2012 at 02:26:44PM -0700, Andrew Morton wrote: On Mon, 24 Sep 2012 10:39:38 +0100 Mel Gorman mgor...@suse.de wrote: On Fri, Sep 21, 2012 at 02:36:56PM -0700, Andrew Morton wrote: Also, what has to be done to avoid the polling altogether? eg/ie, zap a pageblock's

[PATCH 2/3] KVM: PPC: Book3S: Get/set guest FP regs using the GET/SET_ONE_REG interface

2012-09-25 Thread Paul Mackerras
This enables userspace to get and set all the guest floating-point state using the KVM_[GS]ET_ONE_REG ioctls. The floating-point state includes all of the traditional floating-point registers and the FPSCR (floating point status/control register), all the VMX/Altivec vector registers and the VSCR

[PATCH 3/3] KVM: PPC: Book3S HV: Provide a way for userspace to get/set per-vCPU areas

2012-09-25 Thread Paul Mackerras
The PAPR paravirtualization interface lets guests register three different types of per-vCPU buffer areas in its memory for communication with the hypervisor. These are called virtual processor areas (VPAs). Currently the hypercalls to register and unregister VPAs are handled by KVM in the

[PATCH v4 1/3] KVM: PPC: Book3S: Get/set guest SPRs using the GET/SET_ONE_REG interface

2012-09-25 Thread Paul Mackerras
This enables userspace to get and set various SPRs (special-purpose registers) using the KVM_[GS]ET_ONE_REG ioctls. With this, userspace can get and set all the SPRs that are part of the guest state, either through the KVM_[GS]ET_REGS ioctls, the KVM_[GS]ET_SREGS ioctls, or the KVM_[GS]ET_ONE_REG

Re: [libvirt] TSC scaling interface to management

2012-09-25 Thread Daniel P. Berrange
On Wed, Sep 12, 2012 at 12:39:39PM -0300, Marcelo Tosatti wrote: HW TSC scaling is a feature of AMD processors that allows a multiplier to be specified to the TSC frequency exposed to the guest. KVM also contains provision to trap TSC (KVM: Infrastructure for software and hardware based

Re: [PATCH RFC 2/2] kvm: Be courteous to other VMs in overcommitted scenario in PLE handler

2012-09-25 Thread Avi Kivity
On 09/24/2012 06:21 PM, Avi Kivity wrote: On 09/24/2012 06:13 PM, Peter Zijlstra wrote: On Mon, 2012-09-24 at 18:10 +0200, Avi Kivity wrote: Its also still a LAPIC write -- disguised as an MSR though :/ It's probably a whole lot faster though. I've been told its not, I haven't

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Jan Kiszka
On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at 00:56, Scott Wood wrote: On 09/06/2012 09:56 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, September 06, 2012 4:57 AM To: Bhushan Bharat-R65777 Cc:

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Alexander Graf
On 25.09.2012, at 12:38, Jan Kiszka wrote: On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at 00:56, Scott Wood wrote: On 09/06/2012 09:56 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, September 06, 2012 4:57 AM To:

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Jan Kiszka
On 2012-09-25 12:47, Alexander Graf wrote: On 25.09.2012, at 12:38, Jan Kiszka wrote: On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at 00:56, Scott Wood wrote: On 09/06/2012 09:56 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Wood Scott-B07421 Sent:

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Alexander Graf
On 25.09.2012, at 12:56, Jan Kiszka wrote: On 2012-09-25 12:47, Alexander Graf wrote: On 25.09.2012, at 12:38, Jan Kiszka wrote: On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at 00:56, Scott Wood wrote: On 09/06/2012 09:56 AM, Bhushan Bharat-R65777 wrote:

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Jan Kiszka
On 2012-09-25 12:58, Alexander Graf wrote: On 25.09.2012, at 12:56, Jan Kiszka wrote: On 2012-09-25 12:47, Alexander Graf wrote: On 25.09.2012, at 12:38, Jan Kiszka wrote: On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at 00:56, Scott Wood wrote: On 09/06/2012 09:56 AM,

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Alexander Graf
On 25.09.2012, at 13:06, Jan Kiszka wrote: On 2012-09-25 12:58, Alexander Graf wrote: On 25.09.2012, at 12:56, Jan Kiszka wrote: On 2012-09-25 12:47, Alexander Graf wrote: On 25.09.2012, at 12:38, Jan Kiszka wrote: On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at

RE: [PATCH 13/15] KVM: ARM: Handle guest faults in KVM

2012-09-25 Thread Min-gyu Kim
-Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Christoffer Dall Sent: Sunday, September 16, 2012 12:36 AM To: kvm@vger.kernel.org; linux-arm-ker...@lists.infradead.org; kvm...@lists.cs.columbia.edu Subject: [PATCH 13/15] KVM:

Re: KVM call agenda for September 25th

2012-09-25 Thread Richard W.M. Jones
On Mon, Sep 24, 2012 at 01:48:26PM +0200, Paolo Bonzini wrote: Il 24/09/2012 13:28, Juan Quintela ha scritto: Hi Please send in any agenda items you are interested in covering. URI parsing library for glusterfs: libxml2 vs. in-tree fork of the same code. I can't make this call, but

Re: [PATCH 13/15] KVM: ARM: Handle guest faults in KVM

2012-09-25 Thread Christoffer Dall
+ + /* + * If this is a write fault (think COW) we need to make sure the + * existing page, which other CPUs might still read, doesn't go away + * from under us, by calling gfn_to_pfn_prot(write_fault=true). + * Therefore, we call gfn_to_pfn_prot(write_fault=false),

Re: KVM call agenda for September 25th

2012-09-25 Thread Anthony Liguori
Paolo Bonzini pbonz...@redhat.com writes: Il 24/09/2012 13:28, Juan Quintela ha scritto: Hi Please send in any agenda items you are interested in covering. URI parsing library for glusterfs: libxml2 vs. in-tree fork of the same code. The call is a bit late for Bharata but I think copying

Re: qemu.git/qemu-kvm.git bugs during migrate + reboot

2012-09-25 Thread Anthony Liguori
Lucas Meneghel Rodrigues l...@redhat.com writes: Hi guys, We're seeing the following problem during upstream testing: qemu: VQ 0 size 0x80 Guest index 0x2d6 inconsistent with Host index 0x18: delta 0x2be qemu: warning: error while loading state for instance 0x0 of device

Re: KVM call agenda for September 25th

2012-09-25 Thread Richard W.M. Jones
On Tue, Sep 25, 2012 at 07:57:53AM -0500, Anthony Liguori wrote: Paolo Bonzini pbonz...@redhat.com writes: Il 24/09/2012 13:28, Juan Quintela ha scritto: Hi Please send in any agenda items you are interested in covering. URI parsing library for glusterfs: libxml2 vs. in-tree fork

Re: [PATCH v4 1/3] KVM: PPC: Book3S: Get/set guest SPRs using the GET/SET_ONE_REG interface

2012-09-25 Thread Alexander Graf
On 25.09.2012, at 11:44, Paul Mackerras wrote: This enables userspace to get and set various SPRs (special-purpose registers) using the KVM_[GS]ET_ONE_REG ioctls. With this, userspace can get and set all the SPRs that are part of the guest state, either through the KVM_[GS]ET_REGS ioctls,

Re: [Qemu-devel] KVM call agenda for September 25th

2012-09-25 Thread Luiz Capitulino
On Tue, 25 Sep 2012 07:57:53 -0500 Anthony Liguori anth...@codemonkey.ws wrote: Paolo Bonzini pbonz...@redhat.com writes: Il 24/09/2012 13:28, Juan Quintela ha scritto: Hi Please send in any agenda items you are interested in covering. URI parsing library for glusterfs: libxml2

Re: qemu.git/qemu-kvm.git bugs during migrate + reboot

2012-09-25 Thread Lucas Meneghel Rodrigues
On 09/25/2012 09:59 AM, Anthony Liguori wrote: Lucas Meneghel Rodrigues l...@redhat.com writes: Hi guys, We're seeing the following problem during upstream testing: qemu: VQ 0 size 0x80 Guest index 0x2d6 inconsistent with Host index 0x18: delta 0x2be qemu: warning: error while

Re: [Qemu-devel] KVM call agenda for September 25th

2012-09-25 Thread Luiz Capitulino
On Mon, 24 Sep 2012 13:48:26 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 24/09/2012 13:28, Juan Quintela ha scritto: Hi Please send in any agenda items you are interested in covering. URI parsing library for glusterfs: libxml2 vs. in-tree fork of the same code. Case we're going

Re: KVM call agenda for September 25th

2012-09-25 Thread Paolo Bonzini
Il 25/09/2012 14:57, Anthony Liguori ha scritto: The call is a bit late for Bharata but I think copying is the way to go. Something I've been thinking about since this discussion started though. Maybe we could standardize on using URIs as short-hand syntax for backends. For example:

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-09-25 Thread Raghavendra K T
On 09/24/2012 07:46 PM, Raghavendra K T wrote: On 09/24/2012 07:24 PM, Peter Zijlstra wrote: On Mon, 2012-09-24 at 18:59 +0530, Raghavendra K T wrote: However Rik had a genuine concern in the cases where runqueue is not equally distributed and lockholder might actually be on a different run

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-25 Thread Raghavendra K T
On 09/25/2012 02:24 PM, Avi Kivity wrote: On 09/25/2012 10:09 AM, Raghavendra K T wrote: On 09/24/2012 09:36 PM, Avi Kivity wrote: On 09/24/2012 05:41 PM, Avi Kivity wrote: case 2) rq1 : vcpu1-wait(lockA) (spinning) rq2 : vcpu3 (running) , vcpu2-holding(lockA) [scheduled out] I agree

Re: [Qemu-devel] Block Migration Assertion in qemu-kvm 1.2.0

2012-09-25 Thread Kevin Wolf
Am 19.09.2012 07:49, schrieb Peter Lieven: On 09/18/12 12:31, Kevin Wolf wrote: Am 18.09.2012 12:28, schrieb Peter Lieven: On 09/17/12 22:12, Peter Lieven wrote: On 09/17/12 10:41, Kevin Wolf wrote: Am 16.09.2012 12:13, schrieb Peter Lieven: Hi, when trying to block migrate a VM from one

Re: [PATCH] virtio-blk: Disable callback in virtblk_done()

2012-09-25 Thread Asias He
On 09/25/2012 10:36 AM, Asias He wrote: This reduces unnecessary interrupts that host could send to guest while guest is in the progress of irq handling. If one vcpu is handling the irq, while another interrupt comes, in handle_edge_irq(), the guest will mask the interrupt via mask_msi_irq()

KVM: injection failed, MSI lost (Operation not permitted)

2012-09-25 Thread Michael S. Tsirkin
Each time I kill qemu-kvm I get this error: KVM: injection failed, MSI lost (Operation not permitted) Jan, any idea? -- MST -- 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

Re: [PATCH RFC 1/2] kvm: Handle undercommitted guest case in PLE handler

2012-09-25 Thread Takuya Yoshikawa
On Tue, 25 Sep 2012 10:12:49 +0200 Avi Kivity a...@redhat.com wrote: It will. The tradeoff is between false-positive costs (undercommit) and true positive costs (overcommit). I think undercommit should perform well no matter what. If we utilize preempt notifiers to track overcommit

KVM Call minutes for 2012-09-25

2012-09-25 Thread Juan Quintela
Hi This are this week minutes: - URI parsing library for glusterfs: libxml2 vs. in-tree fork of the same code. (Paolo) * code hasn't changed in 2 years, it is really stable * anthony wants to copy the code - there are several commands that do blocking IO dump-guest-memory/screen-dump

Re: [Qemu-devel] KVM call agenda for September 25th

2012-09-25 Thread Kevin Wolf
Am 25.09.2012 14:57, schrieb Anthony Liguori: Paolo Bonzini pbonz...@redhat.com writes: Il 24/09/2012 13:28, Juan Quintela ha scritto: Hi Please send in any agenda items you are interested in covering. URI parsing library for glusterfs: libxml2 vs. in-tree fork of the same code. The

Re: KVM Call minutes for 2012-09-25

2012-09-25 Thread Markus Armbruster
Juan Quintela quint...@redhat.com writes: Hi This are this week minutes: - URI parsing library for glusterfs: libxml2 vs. in-tree fork of the same code. (Paolo) * code hasn't changed in 2 years, it is really stable * anthony wants to copy the code - there are several commands that do

Re: [PATCH RFC 0/2] kvm: Improving undercommit,overcommit scenarios in PLE handler

2012-09-25 Thread Dor Laor
On 09/24/2012 02:02 PM, Raghavendra K T wrote: On 09/24/2012 02:12 PM, Dor Laor wrote: In order to help PLE and pvticketlock converge I thought that a small test code should be developed to test this in a predictable, deterministic way. The idea is to have a guest kernel module that spawn a

Re: [PATCH 06/15] KVM: ARM: Initial skeleton to compile KVM support

2012-09-25 Thread Will Deacon
On Sat, Sep 15, 2012 at 04:35:08PM +0100, Christoffer Dall wrote: Targets KVM support for Cortex A-15 processors. Contains all the framework components, make files, header files, some tracing functionality, and basic user space API. Only supported core is Cortex-A15 for now. Most

Re: [PATCH] KVM: PPC: set IN_GUEST_MODE before checking requests

2012-09-25 Thread Scott Wood
On 09/25/2012 02:44:52 AM, Alexander Graf wrote: On 23.08.2012, at 03:03, Scott Wood wrote: Avoid a race as described in the code comment. Also remove a related smp_wmb() from booke's kvmppc_prepare_to_enter(). I can't see any reason for it, and the book3s_pr version doesn't have it.

Re: [Qemu-devel] KVM call agenda for September 25th

2012-09-25 Thread Bharata B Rao
On Tue, Sep 25, 2012 at 04:51:15PM +0200, Kevin Wolf wrote: Am 25.09.2012 14:57, schrieb Anthony Liguori: qemu -device \ isa-serial,index=0,chr=tcp://localhost:1025/?server=onwait=off Your examples kind of prove this: They aren't much shorter than what exists today, but they contain

Re: KVM: injection failed, MSI lost (Operation not permitted)

2012-09-25 Thread Jan Kiszka
On 2012-09-25 16:19, Michael S. Tsirkin wrote: Each time I kill qemu-kvm I get this error: KVM: injection failed, MSI lost (Operation not permitted) Jan, any idea? Race in shutting down resources? What do you do precisely? I never saw this. Jan -- Siemens AG, Corporate Technology, CT RTC

Re: [Qemu-devel] KVM call agenda for September 25th

2012-09-25 Thread Paolo Bonzini
Il 25/09/2012 17:33, Bharata B Rao ha scritto: qemu -device \ isa-serial,index=0,chr=tcp://localhost:1025/?server=onwait=off Your examples kind of prove this: They aren't much shorter than what exists today, but they contain ? and , which are nasty characters on the command

Re: [PATCH 09/15] KVM: ARM: Inject IRQs and FIQs from userspace

2012-09-25 Thread Will Deacon
On Sat, Sep 15, 2012 at 04:35:27PM +0100, Christoffer Dall wrote: diff --git a/arch/arm/include/asm/kvm.h b/arch/arm/include/asm/kvm.h index a13b582..131e632 100644 --- a/arch/arm/include/asm/kvm.h +++ b/arch/arm/include/asm/kvm.h @@ -22,6 +22,7 @@ #include asm/types.h #define

Re: [PATCH 10/15] KVM: ARM: World-switch implementation

2012-09-25 Thread Will Deacon
On Sat, Sep 15, 2012 at 04:35:33PM +0100, Christoffer Dall wrote: diff --git a/arch/arm/kernel/asm-offsets.c b/arch/arm/kernel/asm-offsets.c index 1429d89..cd8fc86 100644 --- a/arch/arm/kernel/asm-offsets.c +++ b/arch/arm/kernel/asm-offsets.c @@ -13,6 +13,7 @@ #include linux/sched.h

Re: [PATCH 15/15] KVM: ARM: Guest wait-for-interrupts (WFI) support

2012-09-25 Thread Will Deacon
On Sat, Sep 15, 2012 at 04:36:05PM +0100, Christoffer Dall wrote: From: Christoffer Dall cd...@cs.columbia.edu When the guest executes a WFI instruction the operation is trapped to KVM, which emulates the instruction in software. There is no correlation between a guest executing a WFI

Re: [kvmarm] [PATCH 10/15] KVM: ARM: World-switch implementation

2012-09-25 Thread Peter Maydell
On 25 September 2012 18:00, Will Deacon will.dea...@arm.com wrote: On Sat, Sep 15, 2012 at 04:35:33PM +0100, Christoffer Dall wrote: ENTRY(__kvm_tlb_flush_vmid) + hvc #0 @ Switch to Hyp mode + push{r2, r3} + + add r0, r0, #KVM_VTTBR +

Re: [kvmarm] [PATCH 10/15] KVM: ARM: World-switch implementation

2012-09-25 Thread Marc Zyngier
On Tue, 25 Sep 2012 18:15:50 +0100, Peter Maydell peter.mayd...@linaro.org wrote: On 25 September 2012 18:00, Will Deacon will.dea...@arm.com wrote: On Sat, Sep 15, 2012 at 04:35:33PM +0100, Christoffer Dall wrote: ENTRY(__kvm_tlb_flush_vmid) + hvc #0 @ Switch

Re: [Qemu-devel] KVM Call minutes for 2012-09-25

2012-09-25 Thread Luiz Capitulino
On Tue, 25 Sep 2012 16:59:00 +0200 Markus Armbruster arm...@redhat.com wrote: Juan Quintela quint...@redhat.com writes: Hi This are this week minutes: - URI parsing library for glusterfs: libxml2 vs. in-tree fork of the same code. (Paolo) * code hasn't changed in 2 years, it is

Re: [Qemu-devel] KVM call agenda for September 25th

2012-09-25 Thread Anthony Liguori
Kevin Wolf kw...@redhat.com writes: Am 25.09.2012 14:57, schrieb Anthony Liguori: Paolo Bonzini pbonz...@redhat.com writes: Il 24/09/2012 13:28, Juan Quintela ha scritto: Hi Please send in any agenda items you are interested in covering. URI parsing library for glusterfs: libxml2 vs.

Re: [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated

2012-09-25 Thread Andrew Morton
On Tue, 25 Sep 2012 10:12:07 +0100 Mel Gorman mgor...@suse.de wrote: First, we'd introduce a variant of get_pageblock_migratetype() that returns all the bits for the pageblock flags and then helpers to extract either the migratetype or the PG_migrate_skip. We already are incurring the cost of

Please confirm (conf#1a3d1e1c7cbd2de9d60bf0334e7cfe4b)

2012-09-25 Thread Cisco certification
Hi, You have tried to post to a GroupStudy.com certification mailing list. Because the server does not recognize you as a confirmed poster, you will be required to authenticate that you are using a valid e-mail address and are not a spammer. By confirming this e-mail you certify that you are not

Re: [Qemu-devel] KVM Call minutes for 2012-09-25

2012-09-25 Thread Anthony Liguori
Luiz Capitulino lcapitul...@redhat.com writes: On Tue, 25 Sep 2012 16:59:00 +0200 Markus Armbruster arm...@redhat.com wrote: Juan Quintela quint...@redhat.com writes: Hi This are this week minutes: - URI parsing library for glusterfs: libxml2 vs. in-tree fork of the same code.

Re: [PATCH 5/9] mm: compaction: Acquire the zone-lru_lock as late as possible

2012-09-25 Thread Andrew Morton
On Tue, 25 Sep 2012 17:13:27 +0900 Minchan Kim minc...@kernel.org wrote: I see. To me, your saying is better than current comment. I hope comment could be more explicit. diff --git a/mm/compaction.c b/mm/compaction.c index df01b4e..f1d2cc7 100644 --- a/mm/compaction.c +++

Re: [PATCH 5/9] mm: compaction: Acquire the zone-lru_lock as late as possible

2012-09-25 Thread Minchan Kim
On Tue, Sep 25, 2012 at 02:39:31PM -0700, Andrew Morton wrote: On Tue, 25 Sep 2012 17:13:27 +0900 Minchan Kim minc...@kernel.org wrote: I see. To me, your saying is better than current comment. I hope comment could be more explicit. diff --git a/mm/compaction.c b/mm/compaction.c

Re: [PATCH 8/9] mm: compaction: Cache if a pageblock was scanned and no pages were isolated

2012-09-25 Thread Minchan Kim
On Tue, Sep 25, 2012 at 10:12:07AM +0100, Mel Gorman wrote: On Mon, Sep 24, 2012 at 02:26:44PM -0700, Andrew Morton wrote: On Mon, 24 Sep 2012 10:39:38 +0100 Mel Gorman mgor...@suse.de wrote: On Fri, Sep 21, 2012 at 02:36:56PM -0700, Andrew Morton wrote: Also, what has to be

Re: [RFC PATCH] KVM: x86: Skip request checking branches in vcpu_enter_guest() more effectively

2012-09-25 Thread Takuya Yoshikawa
On Mon, 24 Sep 2012 16:50:13 +0200 Avi Kivity a...@redhat.com wrote: Afterwards, most exits are APIC and interrupt related, HLT, and MMIO. Of these, some are special (HLT, interrupt injection) and some are not (read/write most APIC registers). I don't think one group dominates the other. So

no sound in guests

2012-09-25 Thread Rilawich Ango
Hi, I found that there is no sound in guests of Win7, WinXP and even fedora. I searched the web to issue export QEMU_AUDIO_DRV=alsa before starting the guest but no use. Anyone can help to fix it? Host: CentOS 6.3 (64 bits) Guest: Windows 7 (32 bits)/WinXP (32 bits)/Fedora 17 (64 bits)

[RESEND PATCH v5 0/4] VFIO-based PCI device assignment

2012-09-25 Thread Alex Williamson
Only change is adding Michael's ack. Thanks, Alex --- Alex Williamson (4): vfio: Enable vfio-pci and mark supported vfio: vfio-pci device assignment driver Update Linux kernel headers Update kernel header script to include vfio MAINTAINERS |5

[RESEND PATCH v5 1/4] Update kernel header script to include vfio

2012-09-25 Thread Alex Williamson
Signed-off-by: Alex Williamson alex.william...@redhat.com Acked-by: Michael S. Tsirkin m...@redhat.com --- scripts/update-linux-headers.sh |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index

[RESEND PATCH v5 2/4] Update Linux kernel headers

2012-09-25 Thread Alex Williamson
Based on Linux as of 1a95620. Signed-off-by: Alex Williamson alex.william...@redhat.com Acked-by: Michael S. Tsirkin m...@redhat.com --- linux-headers/linux/vfio.h | 368 1 file changed, 368 insertions(+) create mode 100644

[RESEND PATCH v5 4/4] vfio: Enable vfio-pci and mark supported

2012-09-25 Thread Alex Williamson
Enabled for all softmmu guests supporting PCI on Linux hosts. Note that currently only x86 hosts have the kernel side VFIO IOMMU support for this. PPC (g3beige) is the only non-x86 guest known to work. ARM (veratile) hangs in firmware, others untested. Signed-off-by: Alex Williamson

RE: [PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU

2012-09-25 Thread Hao, Xudong
-Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Avi Kivity Sent: Tuesday, September 25, 2012 4:16 PM To: Hao, Xudong Cc: kvm@vger.kernel.org; Zhang, Xiantao Subject: Re: [PATCH v4] kvm/fpu: Enable fully eager restore kvm FPU On

Re: [PATCH] KVM: PPC: set IN_GUEST_MODE before checking requests

2012-09-25 Thread Alexander Graf
On 23.08.2012, at 03:03, Scott Wood wrote: Avoid a race as described in the code comment. Also remove a related smp_wmb() from booke's kvmppc_prepare_to_enter(). I can't see any reason for it, and the book3s_pr version doesn't have it. Signed-off-by: Scott Wood scottw...@freescale.com

Re: [PATCH 1/2] KVM: PPC: e500: fix allocation size error on g2h_tlb1_map

2012-09-25 Thread Alexander Graf
On 23.08.2012, at 03:04, Scott Wood wrote: We were only allocating half the bytes we need, which was made more obvious by a recent fix to the memset in clear_tlb1_bitmap(). Signed-off-by: Scott Wood scottw...@freescale.com Thanks, applied to kvm-ppc-next. Avi, Marcelo, this one should

Re: [PATCH 2/2] KVM: PPC: e500: MMU API: fix leak of shared_tlb_pages

2012-09-25 Thread Alexander Graf
On 23.08.2012, at 03:04, Scott Wood wrote: This was found by kmemleak. Signed-off-by: Scott Wood scottw...@freescale.com Thanks, applied to kvm-ppc-next. Alex --- arch/powerpc/kvm/e500_tlb.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kvm/e500_tlb.c

[PATCH 2/3] KVM: PPC: Book3S: Get/set guest FP regs using the GET/SET_ONE_REG interface

2012-09-25 Thread Paul Mackerras
This enables userspace to get and set all the guest floating-point state using the KVM_[GS]ET_ONE_REG ioctls. The floating-point state includes all of the traditional floating-point registers and the FPSCR (floating point status/control register), all the VMX/Altivec vector registers and the VSCR

[PATCH 3/3] KVM: PPC: Book3S HV: Provide a way for userspace to get/set per-vCPU areas

2012-09-25 Thread Paul Mackerras
The PAPR paravirtualization interface lets guests register three different types of per-vCPU buffer areas in its memory for communication with the hypervisor. These are called virtual processor areas (VPAs). Currently the hypercalls to register and unregister VPAs are handled by KVM in the

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Alexander Graf
On 25.09.2012, at 12:38, Jan Kiszka wrote: On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at 00:56, Scott Wood wrote: On 09/06/2012 09:56 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, September 06, 2012 4:57 AM To:

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Jan Kiszka
On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at 00:56, Scott Wood wrote: On 09/06/2012 09:56 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Wood Scott-B07421 Sent: Thursday, September 06, 2012 4:57 AM To: Bhushan Bharat-R65777 Cc:

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Jan Kiszka
On 2012-09-25 12:58, Alexander Graf wrote: On 25.09.2012, at 12:56, Jan Kiszka wrote: On 2012-09-25 12:47, Alexander Graf wrote: On 25.09.2012, at 12:38, Jan Kiszka wrote: On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at 00:56, Scott Wood wrote: On 09/06/2012 09:56 AM,

Re: [PATCH 6/6] KVM: booke/bookehv: Add debug stub support

2012-09-25 Thread Alexander Graf
On 25.09.2012, at 13:06, Jan Kiszka wrote: On 2012-09-25 12:58, Alexander Graf wrote: On 25.09.2012, at 12:56, Jan Kiszka wrote: On 2012-09-25 12:47, Alexander Graf wrote: On 25.09.2012, at 12:38, Jan Kiszka wrote: On 2012-09-24 16:46, Alexander Graf wrote: On 07.09.2012, at

Re: [PATCH v4 1/3] KVM: PPC: Book3S: Get/set guest SPRs using the GET/SET_ONE_REG interface

2012-09-25 Thread Alexander Graf
On 25.09.2012, at 11:44, Paul Mackerras wrote: This enables userspace to get and set various SPRs (special-purpose registers) using the KVM_[GS]ET_ONE_REG ioctls. With this, userspace can get and set all the SPRs that are part of the guest state, either through the KVM_[GS]ET_REGS ioctls,

Re: [PATCH] KVM: PPC: set IN_GUEST_MODE before checking requests

2012-09-25 Thread Scott Wood
On 09/25/2012 02:44:52 AM, Alexander Graf wrote: On 23.08.2012, at 03:03, Scott Wood wrote: Avoid a race as described in the code comment. Also remove a related smp_wmb() from booke's kvmppc_prepare_to_enter(). I can't see any reason for it, and the book3s_pr version doesn't have it.