From mboxrd@z Thu Jan 1 00:00:00 1970 From: Umesh Deshpande Subject: [RFC PATCH v3 0/4] Separate thread for VM migration Date: Thu, 11 Aug 2011 11:32:40 -0400 Message-ID: Cc: quintela@redhat.com, mtosatti@redhat.com, pbonzini@redhat.com, Umesh Deshpande To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46571 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752536Ab1HKPc4 (ORCPT ); Thu, 11 Aug 2011 11:32:56 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7BFWuqZ012590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Aug 2011 11:32:56 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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. 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(-) -- 1.7.4.1