From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [RFC PATCH v3 0/4] Separate thread for VM migration Date: Thu, 11 Aug 2011 13:25:30 -0500 Message-ID: <4E441E9A.4060300@codemonkey.ws> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, quintela@redhat.com, mtosatti@redhat.com, pbonzini@redhat.com To: Umesh Deshpande Return-path: Received: from mail-gx0-f174.google.com ([209.85.161.174]:57589 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741Ab1HKSZc (ORCPT ); Thu, 11 Aug 2011 14:25:32 -0400 Received: by gxk21 with SMTP id 21so1501879gxk.19 for ; Thu, 11 Aug 2011 11:25:32 -0700 (PDT) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 08/11/2011 10:32 AM, Umesh Deshpande wrote: > Following patch series deals with VCPU and iothread starvation during the > migration of > a guest. Currently the iothread is responsible for performing the guest > migration. It holds qemu_mutex during the migration and doesn't allow VCPU to > enter the qemu mode and delays its return to the guest. The guest migration, > executed as an iohandler also delays the execution of other iohandlers. > In the following patch series, > > The migration has been moved to a separate thread to > reduce the qemu_mutex contention and iohandler starvation. This needs to go to qemu-devel. Regards, Anthony Liguori > > Umesh Deshpande (4): > separate thread for VM migration > synchronous migrate_cancel > lock to protect memslots > separate migration bitmap > > arch_init.c | 26 ++++++++++---- > buffered_file.c | 100 +++++++++++++++++++++++++++++++++------------------ > buffered_file.h | 4 ++ > cpu-all.h | 39 ++++++++++++++++++++ > cpus.c | 12 ++++++ > exec.c | 74 +++++++++++++++++++++++++++++++++++++ > hw/hw.h | 5 ++- > migration.c | 50 ++++++++++++-------------- > migration.h | 6 +++ > qemu-common.h | 2 + > qemu-thread-posix.c | 10 +++++ > qemu-thread.h | 1 + > savevm.c | 31 +++++++++++----- > 13 files changed, 280 insertions(+), 80 deletions(-) >