From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hollis Blanchard Subject: [PATCH 0 of 2] Refactor vcpu creation path. Date: Wed, 31 Oct 2007 17:57:27 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, kvm-ppc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Avi Kivity Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org These patches are not simple code movement, and I haven't yet tested them so I'm just putting them out for comment. Basically we're expanding the VCPU creation path to add an "arch" layer between main.c and svm/vmx.c. Since there is one call in each direction (main.c -> svm/vmx.c, svm/vmx.c -> main.c) we end up with two new architecture functions in the middle. 5 files changed, 108 insertions(+), 59 deletions(-) drivers/kvm/kvm.h | 6 +++ drivers/kvm/kvm_main.c | 59 +++---------------------------- drivers/kvm/svm.c | 6 +-- drivers/kvm/vmx.c | 6 +-- drivers/kvm/x86.c | 90 ++++++++++++++++++++++++++++++++++++++++++++++++ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/