From mboxrd@z Thu Jan 1 00:00:00 1970 From: Umesh Deshpande Subject: [PATCH 0/5] Separate thread for VM migration Date: Sat, 27 Aug 2011 14:09:43 -0400 Message-ID: Cc: Umesh Deshpande To: kvm@vger.kernel.org, qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45301 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752087Ab1H0SL6 (ORCPT ); Sat, 27 Aug 2011 14:11:58 -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 (5): vm_stop from non-io threads MRU ram block list migration thread mutex separate migration bitmap separate migration thread arch_init.c | 38 +++++++++++++---- buffered_file.c | 76 ++++++++++++++++++--------------- cpu-all.h | 42 ++++++++++++++++++ cpus.c | 4 +- exec.c | 97 ++++++++++++++++++++++++++++++++++++++++-- migration.c | 117 ++++++++++++++++++++++++++++++++------------------- migration.h | 9 ++++ qemu-common.h | 2 + qemu-thread-posix.c | 10 ++++ qemu-thread.h | 1 + 10 files changed, 302 insertions(+), 94 deletions(-) -- 1.7.4.1